import { type Message } from 'ai'; export interface Chat extends Record { id: string; title: string; createdAt: Date; userId: string; path: string; messages: Message[]; sharePath?: string; } export type ServerActionResult = Promise< | Result | { error: string; } >; export type DatasetImageEntity = { url: string; selected: boolean; name: string; };