export interface Document { id: string; title: string; content?: string; folderId: string | null; folderName: string; categoryId?: string | null; tags: string[]; createdAt: string; updatedAt: string; excerpt: string; } export interface Folder { id: string; name: string; parentId: string | null; categoryId?: string | null; order: number; documentCount: number; subfolderCount: number; children: Folder[]; documents: Document[]; createdAt: string; updatedAt: string; } export interface Tag { id: string; name: string; color: string; } export type ViewMode = "grid" | "list"; export type SortOption = "name" | "updated" | "created"; export type SortDirection = "asc" | "desc";