export interface DocumentTagDto { id: string; name: string; color: string; } export interface DocumentDto { id: string; title: string; content: string; contentJson?: unknown; folderId?: string | null; folderName?: string; categoryId?: string | null; tags?: DocumentTagDto[]; excerpt?: string; createdAt: string; updatedAt: string; } export type Document = DocumentDto; export interface DocumentListResponse { items: DocumentDto[]; total: number; page: number; limit: number; } export interface UpdateDocumentInput { title?: string; content?: string; folderId?: string | null; categoryId?: string | null; contentJson?: unknown; expectedUpdatedAt?: string; } export interface ImportResult { filename: string; status: "ok" | "error"; document?: DocumentDto; error?: string; } export interface ImportResponse { items: ImportResult[]; imported: number; failed: number; } export declare function listDocuments(params?: { folderId?: string; tag?: string; page?: number; limit?: number }, fetcher?: typeof fetch): Promise; export declare function getDocument(id: string, fetcher?: typeof fetch): Promise; export declare function createDocument(data: { title: string; content?: string; folderId?: string; categoryId?: string }, fetcher?: typeof fetch): Promise; export declare function updateDocument(id: string, data: UpdateDocumentInput): Promise; export declare function deleteDocument(id: string): Promise; export declare function importDocument(file: File, folderId?: string): Promise; export declare function importDocuments(files: File[], folderId?: string): Promise; export declare function clearDocumentsCache(...args: readonly unknown[]): void;