import type { HostSettings } from "../host/host.js"; import type { Checkpoint } from "./state/checkpointStore.js"; import type { CheckpointEdit, StopAt } from "./state/checkpointPatch/index.js"; import { RuntimeContext } from "./state/context.js"; import { type InvocationOptions } from "./invocationOptions.js"; import type { GraphState } from "./types.js"; /** Write `overrides` into the checkpoint's last frame in place, re-signing * it under `settings` when it was signed. A caller outside any run, such * as a host editing a checkpoint it holds, gets the platform's default * host. */ export declare function applyOverrides(checkpoint: Checkpoint, overrides: Record, settings?: HostSettings): void; /** Replay from `checkpoint` with `overrides` written into its last frame. * Like a resume, the result carries the run's `usage` and `traceId`, the * caller's cancel and pause signals reach the replay, and an attached * debugger answers the replay's debug stops before it returns * (`settleStops`). */ export declare function rewindFrom(args: { ctx: RuntimeContext; checkpoint: Checkpoint; overrides: Record; /** Edits proper, applied after the overrides, so an edit wins. */ edits?: CheckpointEdit[]; /** The stop the edits are made at, for a caller with a stop record. */ at?: StopAt; metadata?: Record; /** The root policy and per-invocation config of the run being replayed, * with the same contract as a resume: the caller that started the run * with them passes them again, and the restore installs them. */ invocation?: InvocationOptions; abortSignal?: AbortSignal; pauseSignal?: AbortSignal; }): Promise;