export declare const BACKUP_META = ".badmfck-backup.json"; export declare const MAX_BACKUPS = 10; export type TBackupSlot = "blue" | "green" | null; export interface IBackupMeta { version: 1; project: string; slot: TBackupSlot; createdAt: number; user: string; reason: "deploy" | "pre-restore"; appVersion: string | null; } export interface IBackupInfo extends IBackupMeta { name: string; sizeKb: number | null; } export declare class BackupManager { static fileSafe(s: string): string; static stamp(d?: Date): string; static isValidName(name: string): boolean; private static hasContent; private static readMeta; private static readAppVersion; private static assertSafeRoot; static create(target: string, project: string, slot: TBackupSlot, user: string, reason: IBackupMeta["reason"]): Promise; static list(root: string, project: string, withSize?: boolean): Promise; static prune(root: string, project: string, keep?: number, protect?: string[]): Promise; static resolve(root: string, project: string, name: string): { dir: string; meta: IBackupMeta; } | null; static restoreInto(backupDir: string, target: string): Promise; }