import type { DatabaseSync } from 'node:sqlite'; import type { FileMeta, IndexStats } from './schema.js'; type Statement = ReturnType; type PrepareStatement = (sql: string) => Statement; export declare function getAllIndexableWithStatement(stmt: PrepareStatement): Array<{ id: number; text: string; }>; export declare function getMaxSymbolIdWithStatement(stmt: PrepareStatement): number; export declare function getStatsWithStatement(stmt: PrepareStatement, indexDir: string): IndexStats; export declare function getMetadataWithStatement(stmt: PrepareStatement, key: string): string | undefined; /** * P2.5: minimal index summary for search responses. Carries exactly the two * fields the search tool's zero-hit heuristic consumes (`totalFiles`, * `lastIndexed`) — NOT the full IndexStats — so a zero-hit query answers * "is there a persisted index at all?" without a second stats IPC round trip. */ export interface IndexSummary { totalFiles: number; lastIndexed: number | null; } export declare function getIndexSummaryWithStatement(stmt: PrepareStatement): IndexSummary; export declare function getFileMetaWithStatement(stmt: PrepareStatement, file: string): FileMeta | null; export declare function getAllFileMetasWithStatement(stmt: PrepareStatement): FileMeta[]; export {}; //# sourceMappingURL=writer-admin.d.ts.map