/** * Cache-aware wrappers for expensive analysis functions. * Used by composite tools (repo_health, file_risk_profile, review_prep) * to avoid redundant git subprocess calls within a session. */ import { AnalysisCache } from "./cache.js"; import { type CombinedAnalysisOptions } from "./combined-log-analysis.js"; import { type ContributorsOptions } from "./contributors.js"; import { type KnowledgeLossRiskOptions, type KnowledgeLossRiskResult } from "./knowledge-loss-risk.js"; import { type TrendAnalysisOptions, type TrendResult } from "./trend-analysis.js"; import { type RefAnalysisOptions, type RefMetrics } from "./ref-comparison.js"; import { type KnowledgeMapOptions, type DirectoryKnowledge } from "./knowledge-map.js"; import { type ExpertiseDecayOptions, type ExpertiseDecayResult } from "./expertise-decay.js"; import type { CombinedNumstatResult } from "../git/parsers.js"; import type { ContributorStats } from "../git/types.js"; export declare function cachedAnalyzeKnowledgeMap(cache: AnalysisCache, repoPath: string, options?: KnowledgeMapOptions): Promise; export declare function cachedAnalyzeHotspotsAndChurn(cache: AnalysisCache, repoPath: string, options?: CombinedAnalysisOptions): Promise; export declare function cachedAnalyzeContributors(cache: AnalysisCache, repoPath: string, options?: ContributorsOptions): Promise<{ stats: ContributorStats[]; totalCommits: number; }>; export declare function cachedAnalyzeKnowledgeLossRisk(cache: AnalysisCache, repoPath: string, options?: KnowledgeLossRiskOptions): Promise; export declare function cachedAnalyzeExpertiseDecay(cache: AnalysisCache, repoPath: string, options?: ExpertiseDecayOptions): Promise; export declare function cachedAnalyzeAtRef(cache: AnalysisCache, repoPath: string, ref: string, options?: RefAnalysisOptions): Promise; export declare function cachedAnalyzeTrend(cache: AnalysisCache, repoPath: string, options: TrendAnalysisOptions): Promise;