/** * Change Detector - Identifies content changes between page versions * * Useful for: * - Detecting when government websites update their content * - Flagging stale knowledge base entries * - Tracking regulatory changes */ export interface ContentFingerprint { hash: string; textLength: number; wordCount: number; structureHash: string; timestamp: number; } export interface ContentChange { type: 'added' | 'removed' | 'modified'; section?: string; oldValue?: string; newValue?: string; significance: 'low' | 'medium' | 'high'; } export interface ChangeReport { hasChanges: boolean; overallSignificance: 'none' | 'low' | 'medium' | 'high'; changes: ContentChange[]; oldFingerprint: ContentFingerprint; newFingerprint: ContentFingerprint; summary: string; } /** * Create a fingerprint of content for comparison */ export declare function createFingerprint(content: string): ContentFingerprint; /** * Compare two fingerprints for quick change detection */ export declare function hasContentChanged(oldFingerprint: ContentFingerprint, newFingerprint: ContentFingerprint): boolean; /** * Get significance of changes based on fingerprint comparison */ export declare function getChangeSignificance(oldFingerprint: ContentFingerprint, newFingerprint: ContentFingerprint): 'none' | 'low' | 'medium' | 'high'; /** * Detailed comparison between two content versions */ export declare function compareContent(oldContent: string, newContent: string): ChangeReport; /** * Extract key numbers/values from content for comparison * Useful for detecting threshold changes */ export declare function extractKeyValues(content: string): Map; /** * Compare key values between two versions */ export declare function compareKeyValues(oldContent: string, newContent: string): { changed: boolean; differences: { type: string; old: string; new: string; }[]; }; //# sourceMappingURL=change-detector.d.ts.map