export interface TranscriptSearchResult { filename: string; session_at: string; snippet: string; rank: number; } export interface ReindexResult { indexed: number; skipped: number; } export declare class TranscriptIndex { private readonly indexDir; private readonly transcriptsDir; private readonly db; constructor(indexDir?: string, transcriptsDir?: string); reindex(): ReindexResult; search(query: string, limit?: number): TranscriptSearchResult[]; count(): number; close(): void; } export declare function withTranscriptIndex(fn: (idx: TranscriptIndex) => T, indexDir?: string, transcriptsDir?: string): T;