/** * Code Analysis High-Level API * Provides easy-to-use functions for common analysis tasks * * Features: * - Structural indexing with caching for faster subsequent runs * - Dependency graph for cross-file analysis * - Large file chunking to avoid missing important code * - Smart analysis ordering based on file clusters */ import type { CodeAnalysisOptions, CodeAnalysisResult, StructuralIndex } from './types.js'; /** Default maximum file size in bytes (100KB) */ export declare const DEFAULT_MAX_FILE_SIZE = 100000; /** Default analysis type when not specified */ export declare const DEFAULT_ANALYSIS_TYPE: "summary"; /** * Load files from a directory (legacy function for backward compatibility) */ export declare function loadFiles(directory: string, options?: { include?: string[]; exclude?: string[]; maxFileSize?: number; }): Record; /** * Load files using structural index with large file handling * Returns both the files and the structural index for dependency information */ export declare function loadFilesWithIndex(directory: string, options?: { include?: string[]; exclude?: string[]; maxFileSize?: number; useCache?: boolean; verbose?: boolean; }): Promise<{ files: Record; index: StructuralIndex; largeFiles: string[]; }>; /** * Analyze a codebase with custom query * Now uses structural indexing for: * - Faster subsequent runs (cached file index) * - Better analysis ordering (entry points first) * - Large file handling (chunking with summaries) * - Dependency information for cross-file analysis */ export declare function analyzeCodebase(options: CodeAnalysisOptions): Promise; /** * Clear the structural index cache for a directory */ export declare function clearIndexCache(directory: string): void; /** * Analyze architecture */ export declare function analyzeArchitecture(directory: string, options?: Partial): Promise; /** * Analyze dependencies */ export declare function analyzeDependencies(directory: string, options?: Partial): Promise; /** * Analyze security * Optionally uses web grounding to verify package version recommendations */ export declare function analyzeSecurity(directory: string, options?: Partial): Promise; /** * Analyze performance */ export declare function analyzePerformance(directory: string, options?: Partial): Promise; /** * Analyze refactoring opportunities */ export declare function analyzeRefactoring(directory: string, options?: Partial): Promise; /** * Get codebase summary */ export declare function summarizeCodebase(directory: string, options?: Partial): Promise; /** * Find usages of a symbol */ export declare function findUsages(directory: string, symbolName: string, options?: Partial): Promise; /** * Explain a specific file */ export declare function explainFile(filePath: string, options?: Partial): Promise; /** * Ask a custom question about the codebase */ export declare function askQuestion(directory: string, question: string, options?: Partial): Promise; //# sourceMappingURL=analyzer.d.ts.map