import type { ContentStorage } from './common'; /** Document record */ export interface Document { id: string; type: string; title: string; path: string | null; content_hash: string | null; content_storage: ContentStorage; metadata: string; created_at: string; updated_at: string; } /** Document content record */ export interface DocumentContent { document_id: string; content: string; content_hash: string; updated_at: string; } /** Document detail (with content) */ export interface DocumentDetail extends Document { content: string | null; } /** Document registration options */ export interface DocumentRegisterOptions { path?: string; contentStorage?: ContentStorage; metadata?: Record; contentFile?: string; content?: string; } /** Document update fields */ export interface DocumentUpdateFields { title?: string; type?: string; metadata?: Record; content?: string; contentFile?: string; content_storage?: ContentStorage; } /** FTS search result */ export interface SearchResult { documentId: string; title: string; type: string; rank: number; snippet?: string; } /** Pagination, sorting, and counting options for doc list */ export interface ListOptions { /** Filter by document type */ type?: string; /** Maximum number of results */ limit?: number; /** Skip N results before returning */ offset?: number; /** Sort by field: id, type, title, created, updated. Prefix + for asc (default), - for desc */ orderBy?: string; /** Return only the total count instead of rows */ countOnly?: boolean; } /** Pagination, sorting, and counting options for doc search */ export interface SearchOptions { /** Filter by document type */ type?: string; /** Maximum number of results */ limit?: number; /** Skip N results before returning */ offset?: number; /** Sort by field: id, type, title, created, updated. Overrides FTS5 BM25 ranking. Prefix + for asc (default), - for desc */ orderBy?: string; /** Return only the total hit count instead of rows */ countOnly?: boolean; } /** Vault scan result (deprecated — doc scan subcommand removed per FR-URD-012-0011) */ export interface ScanResult { added: string[]; modified: string[]; removed: string[]; unchanged: number; } /** Content reference returned after storing content */ export interface ContentRef { documentId: string; contentHash: string; storage: ContentStorage; } //# sourceMappingURL=document.d.ts.map