/** * Complexity Heatmap * Ranks files and functions by cyclomatic/cognitive complexity. */ export interface ComplexityEntry { file: string; symbol?: string; line?: number; metrics: { cyclomatic: number; cognitive: number; nesting: number; loc: number; params?: number; }; score: number; grade: 'A' | 'B' | 'C' | 'D' | 'F'; } export interface HeatmapResult { hotspots: ComplexityEntry[]; fileScores: { file: string; score: number; grade: string; loc: number; }[]; summary: { totalFiles: number; averageScore: number; criticalCount: number; healthyCount: number; }; } /** * Generate a complexity heatmap for source files and functions. * @param cwd - The working directory to scan. * @param options - Configuration options. * @param options.directory - The directory to analyze. * @param options.fileGlob - Glob pattern for files to analyze. * @param options.top - Number of top results to return. * @param options.granularity - Analysis granularity level. * @returns The heatmap result with hotspots and file scores. */ export declare function generateHeatmap(cwd: string, options?: { directory?: string; fileGlob?: string; top?: number; granularity?: 'file' | 'function'; }): Promise; //# sourceMappingURL=complexity-heatmap.d.ts.map