import { type ArchiveCodec } from "./codec.js"; import type { BackupTarget } from "./targets.js"; export declare const REGISTRY_DB_FILE = "registry.db"; /** One target's outcome, and the shape `--json` hands the alerting job. */ export interface SnapshotReport { name: string; status: "ok" | "failed"; bytes: number; path: string; error?: string; } export declare function snapshotDateStamp(when: Date): string; /** A dated directory name, and nothing else, is a snapshot. */ export declare const SNAPSHOT_DIR_PATTERN: RegExp; /** * Writes one target's snapshot under `//`, building it in a * sibling temp directory and renaming only once it has verified - so a run that * dies halfway leaves no directory that looks like a usable backup. */ export declare function createSnapshot(target: BackupTarget, root: string, createdAt: Date, codec?: ArchiveCodec): Promise; //# sourceMappingURL=snapshot.d.ts.map