/** * File Change Tracker - Tracks file modifications for revert functionality * * This module stores original file content before modifications so users * can revert all changes made during a run with /revert command. */ export interface FileChangeRecord { /** Original content before modification (null if file was created) */ originalContent: string | null; /** Whether file existed before this run */ existedBefore: boolean; /** Timestamp of first modification */ firstModified: number; /** Number of times modified this run */ modifyCount: number; } /** * Start a new run - clears previous change tracking */ export declare function startNewRun(): void; /** * Record original content before a file is modified * Only records the FIRST state - subsequent edits don't overwrite */ export declare function recordFileChange(filePath: string): void; /** * Get all changed files in the current run */ export declare function getChangedFiles(): Map; /** * Check if there are any changes to revert */ export declare function hasChangesToRevert(): boolean; /** * Revert all changes made during the current run * Returns a summary of what was reverted */ export declare function revertAllChanges(workingDir: string): string; /** * Get a summary of pending changes that can be reverted */ export declare function getRevertSummary(workingDir: string): string; /** * Clear change tracking (for testing or manual reset) */ export declare function clearChangeTracking(): void; //# sourceMappingURL=fileChangeTracker.d.ts.map