import type { IWorldBackupPort, WorldBackupError, WorldBackupPushOutcome } from '../ports/outbound/IWorldBackupPort.js'; /** How long an auto-backup waits for another backup operation (same as `backup push --auto`). */ export declare const AUTO_BACKUP_LOCK_WAIT_MS = 600000; /** * How long mcctl-api's close waits for running auto-backups. The backup's * finally re-enables auto-save (save-on) on servers it flushed; shutdown * must not cut that off, so close aborts a backup still running near the end * of this wait and waits for its save-on. */ export declare const AUTO_BACKUP_CLOSE_WAIT_MS = 120000; /** PM2 kill_timeout for mcctl-api: the close wait plus a margin, so PM2 does not SIGKILL it first. */ export declare const API_PM2_KILL_TIMEOUT_MS: number; export type AutoBackupOnStopResult = { status: 'skipped'; } | { status: 'done'; outcome: WorldBackupPushOutcome; } | { status: 'failed'; error: WorldBackupError; }; /** * Back up the worlds after `server` stopped, when BACKUP_AUTO_ON_STOP=true and * the backup is configured (#734; was `mcctl.sh stop`). Waits for the backup * lock, never consents to dropping worlds, never rejects: the caller reports a * failure without failing the stop (#732 B-Q9). */ export declare function autoBackupOnStop(backup: IWorldBackupPort, server: string, options?: { signal?: AbortSignal; }): Promise; //# sourceMappingURL=autoBackupOnStop.d.ts.map