/** * Line-scanning symbol chunkers for the languages without an AST on hand. * * TS/JS is chunked from a real TypeScript AST (see `code-retrieval.ts`). * Everything else is chunked here by declaration patterns plus brace or * indentation tracking. That is deliberately dependency-free: a parser per * language would cost five more dependencies and a startup penalty on every * search, to sharpen boundaries that BM25 ranking is already tolerant of. */ import type { Chunk } from "./code-retrieval.js"; export type BraceLanguage = "go" | "rust" | "java" | "csharp"; /** * Chunk a brace-delimited language. * * Declarations are recognised only at the current top level, where "top level" * follows container blocks inward: a type inside a C# namespace is top level, a * method inside that type is not — it belongs to its type's chunk, exactly as * the TS chunker treats class members. */ export declare function chunkByBraces(rel: string, source: string, language: BraceLanguage): Chunk[]; /** * Chunk Python by indentation: a top-level declaration owns every following * line indented past column 0, plus any decorators stacked directly above it * (a decorator belongs to its declaration, not to a chunk of its own). */ export declare function chunkByIndentation(rel: string, source: string): Chunk[]; //# sourceMappingURL=code-retrieval-chunkers.d.ts.map