/** * @nahisaho/musubix-codegraph - Indexer * * Repository and directory indexing * * @see REQ-CG-IDX-001 - Repository indexing * @see REQ-CG-IDX-002 - Incremental indexing * @see DES-CG-004 * @see TSK-CG-030 */ import type { IndexResult, IndexerOptions, IndexProgress } from '../types.js'; import type { ASTParser } from '../parser/index.js'; import type { GraphEngine } from '../graph/index.js'; /** * Progress callback type */ export type ProgressCallback = (progress: IndexProgress) => void; /** * Indexer for code repositories * * Scans directories, parses files, and builds the code graph. */ export declare class Indexer { private parser; private graph; private options; private progressCallback; constructor(parser: ASTParser, graph: GraphEngine, options?: Partial); /** * Set progress callback */ onProgress(callback: ProgressCallback): void; /** * Index a repository or directory */ indexRepository(repoPath: string): Promise; /** * Index a single file */ indexFile(filePath: string): Promise; /** * Discover all parseable files in directory */ private discoverFiles; /** * Recursively walk directory */ private walkDirectory; /** * Check if path should be excluded */ private shouldExclude; /** * Simple glob matching */ private matchGlob; } //# sourceMappingURL=indexer.d.ts.map