import type { Finding } from '../types.js'; export interface ScanHistoryEntry { timestamp: string; date: string; complianceScore: number; severity: { critical: number; high: number; medium: number; low: number; }; failedRuleIds: string[]; totalFilesScanned: number; } export interface ScanComparison { previousScan?: ScanHistoryEntry; scoreChange: number; severityChanges: { critical: number; high: number; medium: number; low: number; }; newIssues: string[]; resolvedIssues: string[]; } /** * Get the history directory path for a project */ export declare function getHistoryDir(projectPath: string): string; /** * Ensure the history directory exists */ export declare function ensureHistoryDir(projectPath: string): Promise; /** * Generate filename for a scan history entry */ export declare function generateHistoryFilename(): string; /** * Save scan results to history */ export declare function saveScanHistory(projectPath: string, score: number, findings: Finding[], scannedFiles: number): Promise; /** * Get the most recent scan history entry */ export declare function getMostRecentScan(projectPath: string): Promise; /** * Get all scan history entries */ export declare function getAllScans(projectPath: string): Promise; /** * Compare current scan with previous scan */ export declare function compareScan(currentScore: number, currentFindings: Finding[], previousScan: ScanHistoryEntry | null): ScanComparison; /** * Format a date string from history filename format */ export declare function formatHistoryDate(dateStr: string): string; //# sourceMappingURL=scan-history.d.ts.map