/** * Codebase Indexer for RAG (v2.0.0) * * Takes a directory path, walks all relevant source lines, chunks them via ASTChunker, * embeds them, and saves them to the configured StorageBackend. */ import type { EmbeddingPipeline } from '../embeddingPipeline.js'; import type { StorageBackend } from '../storage/interface.js'; export interface IndexerOptions { /** Directory to index. Defaults to current working directory. */ rootDir?: string; /** Glob patterns to exclude (e.g. node_modules, dist, .git) */ excludePatterns?: string[]; /** Glob patterns to include (e.g. *.ts, *.js, *.py) - defaults to all text-like if omitted */ includePatterns?: string[]; } export declare class CodebaseIndexer { private pipeline; private storage; private chunker; constructor(pipeline: EmbeddingPipeline, storage: StorageBackend); /** * Recursively index a local directory */ indexDirectory(opts?: IndexerOptions): Promise; private walkDir; } //# sourceMappingURL=codebaseIndexer.d.ts.map