import { type BackupKind } from "../backup/archive.js"; import type { Profile } from "../profiles/types.js"; export interface RunBackupOptions { profile: Profile; /** ‎auto‎ للجدولة الليلية، و‎manual‎ لضغطة المالك. */ kind: BackupKind; includeLogs?: boolean; /** سطرٌ لمن يقرأ السجلّ بعد أن يقع شيء. لا علاقة له بالشريط. */ onLine?: (line: string) => void; } export type BackupOutcome = { ok: true; file: string; bytes: number; } | { ok: false; reason: string; }; /** * AR: ينسخ ويكتب تقدّمه. **لا يرمي على فشلٍ متوقَّع**: مُناديه عمليةٌ بلا إنسانٍ أمامها، تكتب * الجواب في ملفٍّ ثمّ تخرج. * EN: Backs up and writes its progress. **It does not throw on an expected failure**: its caller is a * process with nobody in front of it, which writes the answer into a file and exits. */ export declare function runBackup(options: RunBackupOptions): Promise; //# sourceMappingURL=run-backup.d.ts.map