export interface FileSnapshot { filePath: string; previousContent: string | null; newContent: string | null; timestamp: number; type: 'create' | 'edit' | 'delete'; } export declare class DiffManager { private static snapshots; /** * Records a snapshot before and after file modification */ static recordChange(filePath: string, previousContent: string | null, newContent: string | null, type: 'create' | 'edit' | 'delete'): void; /** * Returns all recorded snapshots in current session */ static getSnapshots(): FileSnapshot[]; /** * Computes a colored git-style diff text between two string contents */ static formatColoredDiff(filePath: string, oldStr: string | null, newStr: string | null): string; /** * Displays the session or git diff in the console */ static showDiff(targetFile?: string): Promise; /** * Reverts changes made to files in this session */ static revert(targetFile?: string): Promise<{ success: boolean; revertedFiles: string[]; }>; private static colorizeGitDiff; } //# sourceMappingURL=diffManager.d.ts.map