export interface EnvBackupResult { success: boolean; backupPath?: string; error?: string; } export interface EnvRestoreResult { success: boolean; mergedVariables?: number; error?: string; } /** * Creates a timestamped backup of the .env file */ export declare const backupEnvFile: () => Promise; /** * Formats env variables back to .env file format */ export declare const formatEnvContent: (envMap: Map) => string; /** * Merges user env variables with template variables, preferring user values */ export declare const mergeEnvFiles: (userBackupPath: string, templatePath: string) => Promise>; /** * Restores .env file from backup, merging with any new template variables */ export declare const restoreEnvFile: (backupPath?: string) => Promise; /** * Lists all .env backup files */ export declare const listEnvBackups: () => Promise; /** * Cleans up old .env backup files (keeps last 5) */ export declare const cleanupOldBackups: () => Promise;