import type { DocState } from './state.js'; export interface Snapshot { format: number; run: string; seq: number; offset: number; head_hash: string; state: DocState; } export declare function writeSnapshot(path: string, snap: Snapshot): void; export type SnapshotCheck = { ok: true; snapshot: Snapshot; } | { ok: false; reason: string; }; /** Read the snapshot at `path` and check it against the log bytes it claims to describe. */ export declare function loadSnapshot(path: string, run: string, log: Buffer): SnapshotCheck; //# sourceMappingURL=snapshot.d.ts.map