UNPKG

ccguard

Version:

Automated enforcement of net-negative LOC, complexity constraints, and quality standards for Claude code

37 lines 907 B
import { ProjectSnapshot } from './types'; export declare class RevertManager { private rootDir; constructor(rootDir: string); /** * Revert files to their state in the given snapshot */ revertToSnapshot(affectedFiles: string[], snapshot: ProjectSnapshot): Promise<{ success: boolean; error?: string; }>; /** * Check if we're in a git repository */ isGitRepo(): boolean; /** * Check if a file is tracked by git */ private isFileTracked; /** * Create a backup of files before reverting */ private createBackup; /** * Restore files from backup */ private restoreBackup; /** * Clean up backup (no-op for in-memory backup) */ private cleanupBackup; /** * Get git status for diagnostics */ getGitStatus(): string; } //# sourceMappingURL=RevertManager.d.ts.map