/** * Backup System * Handles timestamped backups of config files with automatic cleanup */ export interface BackupResult { success: boolean; backupPath: string | null; error?: string; } export interface BackupInfo { path: string; timestamp: number; date: Date; filename: string; } /** * Create a backup of a config file */ export declare function createBackup(configPath: string): BackupResult; /** * List all backups for a config file */ export declare function listBackups(configPath: string): BackupInfo[]; /** * Get the most recent backup */ export declare function getLatestBackup(configPath: string): BackupInfo | null; /** * Cleanup old backups, keeping only MAX_BACKUPS most recent */ export declare function cleanupOldBackups(configPath: string): number; /** * Restore from a backup */ export declare function restoreBackup(backupPath: string, targetPath: string): BackupResult; /** * Restore from the most recent backup */ export declare function restoreLatestBackup(configPath: string): BackupResult; /** * Format backup info for display */ export declare function formatBackupInfo(backup: BackupInfo): string; /** * Delete all backups for a config file */ export declare function deleteAllBackups(configPath: string): number; //# sourceMappingURL=backup.d.ts.map