/** * Replay a recorded snapshot as if it had just been observed (#1266, #1279). * * Shared by `chant search --at` and `chant graph --at`. A snapshot already holds * what an observation is — resources with their physical ids and attributes, * and since #1266 the relationships between them — so turning it back into * `LiveObservation[]` lets a replay rejoin the live path at `buildLiveGraphIr`. * Every fold, overlay and edge reconstruction below that point is shared, and * nothing downstream needs to know which source it got. * * That sharing is the reason this is a module rather than a helper inside one * command: `graph` had no `--at` at all, so anyone wanting the raw IR of a * recorded estate had to reach for the live endpoint, and a snapshot could * answer most questions but never all of them. */ import type { LiveObservation } from "../graph-ir.js"; /** * Rebuild observations from a recorded snapshot (#1266). * * A snapshot already holds what an observation is: resources with their * physical ids and attributes, and — since #1266 — the relationships between * them. Turning it back into `LiveObservation[]` means the replay rejoins the * live path at `buildLiveGraphIr`, and every fold, overlay and query below that * is shared. Nothing downstream needs to know which source it got. * * `latest` is the only ref for now. A specific commit is the natural extension * and the storage already supports it (`readSnapshotAt`), but "answer from what * is recorded" is the question worth settling first. */ /** * Whether this environment has a recording, without reading one. * * Used to turn "the estate could not be read" into "the estate could not be * read, and you already have a recording of it". Cheap and best-effort: a * failure here means the caller says the plain version of the message, never * that the command fails. */ export declare function hasSnapshot(environment: string): Promise; export declare function replaySnapshots(environment: string, ref: string, scopedStacks: Set): Promise<{ observations: LiveObservation[]; commit: string; timestamp: string; } | { error: string; hint?: string; }>; //# sourceMappingURL=replay.d.ts.map