export interface FileState { source: string; file_path: string; file_mtime: string | null; file_size: number | null; status: string | null; } export declare function getFileState(source: string, filePath: string): FileState | null; export declare function listFileStates(source: string): FileState[]; export declare function setFileState(source: string, filePath: string, mtime: string | null, size: number | null, status: string, errorMessage?: string): void; /** Recompute the ingestion_stats rollup for a source from the live tables. */ export declare function updateIngestionStats(source: string): void; export interface IngestionStats { source: string; session_count: number; message_count: number; tool_call_count: number; total_tokens: number; last_ingested_at: string | null; } export declare function getIngestionStats(): IngestionStats[]; //# sourceMappingURL=ingestion.d.ts.map