import path from "node:path";
import fs from "node:fs/promises";
interface Document {
    sessionId: string;
    startedAt: string;
    text: string;
    tokens: string[];
    tokenSet: Set<string>;
    termFreq: Map<string, number>;
}
interface Index {
    docs: Document[];
    idf: Map<string, number>;
}
/** Drop the cached index (test hook / explicit invalidation). */
export declare function clearIndexCache(): void;
export declare function buildIndex(opts?: {
    cache?: boolean;
}): Promise<Index>;
export interface SearchHit {
    sessionId: string;
    startedAt: string;
    score: number;
    excerpt: string;
}
export declare function search(index: Index, query: string, k?: number): SearchHit[];
export declare const _unused_for_typecheck: typeof path | typeof fs | undefined;
export {};
//# sourceMappingURL=vector.d.ts.map