export interface Chunk {
    file: string;
    symbol: string;
    text: string;
    /** 1-based line number where the declaration starts (for `file:line` headers). */
    startLine: number;
}
export declare function chunkFile(rel: string, source: string): Chunk[];
export declare function tokenize(s: string): string[];
export declare function bm25Rank(query: string, chunks: Chunk[], k: number): Chunk[];
/** Whole-file baseline: rank files by BM25 over their full text, take top-k. */
export declare function rankFiles(query: string, files: Map<string, string>, k: number): string[];
//# sourceMappingURL=code-retrieval.d.ts.map