import { type BackupManifest } from "./manifest.js"; export interface RestoreOptions { snapshot: string; home: string; /** Required to write into a home that already has something in it. */ force?: boolean; } export interface RestoreResult { home: string; manifest: BackupManifest; restoredRegistry: boolean; } /** * Rebuilds a home from a snapshot. * * The manifest is verified before anything is extracted, so a corrupt or * truncated archive is refused while the target home is still untouched. A * restore that discovers the damage halfway through has already destroyed the * thing it was asked to replace. */ export declare function restoreSnapshot(options: RestoreOptions): Promise; //# sourceMappingURL=restore.d.ts.map