/** * Per-namespace JSON manifest for incremental `logosdb_index_file`: * maps absolute file path → last indexed mtime/size/chunk_size and row ids for deletion on change. */ export declare const MANIFEST_VERSION: 1; export type FileIndexEntry = { mtimeMs: number; size: number; chunkSize: number; /** Chunking strategy used when this file was indexed ("auto" | "line" | "section" | "legacy"). */ chunkMode?: string; ids: number[]; }; export type FileIndexManifest = { version: typeof MANIFEST_VERSION; files: Record; }; export declare function manifestPath(logosdbPath: string, namespace: string): string; export declare function loadManifest(filePath: string): FileIndexManifest; export declare function saveManifest(filePath: string, manifest: FileIndexManifest): void; /** True if `file` is `root` or a file inside directory `root` (both absolute, real paths). */ export declare function isUnderRoot(file: string, root: string): boolean; export interface LogosDbLike { delete(id: number): void; } /** * Remove manifest entries (and delete stored rows) for paths under `rootDir` that are not in `currentFiles`. */ export declare function pruneRemovedPaths(rootDir: string, currentFiles: Set, manifest: FileIndexManifest, db: LogosDbLike): number; //# sourceMappingURL=file-index-manifest.d.ts.map