import { AnalysisResult } from './types'; export interface HistoryEntry { timestamp: string; score: number; totalIssues: number; criticalIssues: number; highIssues: number; layerViolations: number; cycles: number; totalNodes: number; totalEdges: number; issues: { ruleId: string; nodeId: string; severity: string; message: string; }[]; } export interface HistoryDiff { previous: HistoryEntry; current: HistoryEntry; scoreDelta: number; newIssues: { ruleId: string; nodeId: string; severity: string; message: string; }[]; resolvedIssues: { ruleId: string; nodeId: string; severity: string; message: string; }[]; trend: 'improved' | 'regressed' | 'stable'; } /** * Manages architecture analysis history for tracking evolution. */ export declare class AnalysisHistory { private rootDir; private historyDir; private maxEntries; constructor(rootDir: string, historyDir?: string, maxEntries?: number); private get absDir(); /** * Save a snapshot of the current analysis. */ save(analysis: AnalysisResult): Promise; /** * List all history entries sorted by timestamp (newest first). */ list(): Promise; /** * Get the most recent entry. */ latest(): Promise; /** * Diff current analysis against the previous snapshot. */ diff(current: AnalysisResult): Promise; private prune; } //# sourceMappingURL=AnalysisHistory.d.ts.map