import { type GatewayPaths } from './paths.js'; type Component = { status: 'included'; path: string; size: number; sha256: string; } | { status: 'missing'; }; export type ResetBackupManifest = { version: number; phase: 'validated'; createdAt: string; sourcePaths: { database: string; config: string; session: string; }; schemaVersion: number | null; components: { database: Component; config: Component; session: Component; }; }; export type ResetBackupBundle = { path: string; manifest: ResetBackupManifest; }; /** * Creates a durable, validated pre-reset bundle. It deliberately does not * rename or otherwise alter active application state. */ export declare function createResetBackupBundle(options?: { paths?: GatewayPaths; configPath?: string; now?: () => Date; /** Caller already holds the gateway lock. */ lockHeld?: boolean; /** Test-only failure seam at each source mutation/publication/write/fsync boundary. */ afterStep?: (step: string) => void; }): Promise; export {};