export interface Chunk { file: string; symbol: string; text: string; /** 1-based line number where the declaration starts (for `file:line` headers). */ startLine: number; } /** Languages with a symbol chunker. Everything else is skipped by the caller. */ export type ChunkLanguage = "tsjs" | "python" | "go" | "rust" | "java" | "csharp"; /** Which chunker handles a path, or undefined when none does. */ export declare function languageForFile(rel: string): ChunkLanguage | undefined; /** Every extension `code_search` can index, without leading dots. */ export declare const CHUNKABLE_EXTENSIONS: readonly string[]; 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, k: number): string[]; //# sourceMappingURL=code-retrieval.d.ts.map