export type Note = { id: string; title: string; content: string; color: string; date: Date; images: ImageAttachment[]; files: FileAttachment[]; }; export type ImageAttachment = NoteAttachment & { kind: "image" }; export type FileAttachment = NoteAttachment & { kind: "file" }; interface NoteAttachment { id: string; name: string; size: number; mimeType: string; previewUrl?: string; }