import { ConfigService } from '@nestjs/config';
export declare class BackupService {
    private configService;
    private readonly logger;
    private readonly backupDir;
    private readonly maxBackupAge;
    constructor(configService: ConfigService);
    createBackupForDownload(): Promise<{
        filePath: string;
        fileName: string;
        database: string;
        size: number;
        createdAt: string;
    }>;
    createAndDownloadBackup(): Promise<{
        success: boolean;
        message: string;
        database: string;
        backup_file: string;
        download_url: string;
        size: string;
        created_at: string;
        expires_in: string;
    }>;
    listBackups(): Promise<{
        file_name: string;
        size: string;
        created_at: Date;
        last_modified: Date;
        download_url: string;
        expires_in: string;
    }[]>;
    downloadBackup(fileName: string): Promise<{
        filePath: string;
        fileName: string;
        size: number;
        shouldDeleteAfterDownload: boolean;
    }>;
    private getTimeUntilExpiry;
    private cleanupDumpDir;
    private cleanupOldBackups;
}
