import type { SafeJSSnapshot } from "../restore.js"; export type Snapshot = SafeJSSnapshot; export interface SnapshotBackend { read(): Promise; write(snapshot: Snapshot): Promise; remove(): Promise; } export type FileSnapshotBackendOptions = { writeMaxAttempts?: number; writeRetryDelayMs?: number; }; export declare class FileSnapshotBackend implements SnapshotBackend { #private; readonly path: string; constructor(path: string, options?: FileSnapshotBackendOptions); read(): Promise; write(snapshot: Snapshot): Promise; remove(): Promise; }