/** * Repo Map - Repository structure visualization and symbol extraction */ export interface RepoMapConfig { rootPath: string; maxDepth?: number; ignorePatterns?: string[]; includeSymbols?: boolean; maxFiles?: number; } export interface FileInfo { path: string; relativePath: string; size: number; isDirectory: boolean; children?: FileInfo[]; symbols?: SymbolInfo[]; } export interface SymbolInfo { name: string; type: 'function' | 'class' | 'method' | 'variable' | 'interface' | 'type' | 'export'; line: number; exported?: boolean; } export interface RepoMapResult { root: string; tree: FileInfo; totalFiles: number; totalDirectories: number; symbols: SymbolInfo[]; summary: string; } /** * Default ignore patterns */ export declare const DEFAULT_IGNORE_PATTERNS: string[]; /** * RepoMap class for repository analysis */ export declare class RepoMap { private config; private fs; private path; constructor(config: RepoMapConfig); /** * Generate repository map */ generate(): Promise; /** * Scan a directory recursively */ private scanDirectory; /** * Check if path should be ignored */ private shouldIgnore; /** * Check if file is a code file */ private isCodeFile; /** * Extract symbols from a file */ private extractSymbols; /** * Extract symbols from JavaScript/TypeScript */ private extractJSSymbols; /** * Extract symbols from Python */ private extractPythonSymbols; /** * Count files and directories */ private countItems; /** * Collect all symbols from tree */ private collectSymbols; /** * Generate text summary */ private generateSummary; /** * Render tree as text */ private renderTree; /** * Get tree as simple text format */ getTreeText(): Promise; } /** * Create a repo map instance */ export declare function createRepoMap(config: RepoMapConfig): RepoMap; /** * Quick function to get repo tree */ export declare function getRepoTree(rootPath: string, maxDepth?: number): Promise;