import { SupervisorInput } from "../contracts/supervisor/supervisor-input.type.mjs"; import { SupervisorSnapshot, SupervisorSnapshotStatus } from "../contracts/supervisor/supervisor-snapshot.type.mjs"; import { SupervisorResumeOptions } from "../contracts/supervisor/supervisor-execute-options.type.mjs"; import { SupervisorConfig } from "../contracts/supervisor/supervisor-config.type.mjs"; import { IterationSnapshot } from "../contracts/supervisor/iteration-snapshot.type.mjs"; //#region ../ai/src/supervisor/snapshot.d.ts type PersistParams = { config: SupervisorConfig; signature: string; runId: string; input: SupervisorInput; startedAt: string; iteration: number; snapshots: IterationSnapshot[]; status: SupervisorSnapshotStatus; }; type PersistOutcome = { ok: true; } | { ok: false; error: unknown; }; /** * Write the current run state to the resolved snapshot store. No-op * (ok) when neither the supervisor's `snapshotStore` nor the global * `defaultStore` is configured. Failures are returned as * `{ ok: false }` rather than thrown so the engine can surface them * via events/logs without aborting the run — callers decide whether * a failed checkpoint is fatal. */ declare function persistSupervisorSnapshot(params: PersistParams): Promise; /** * Load a persisted snapshot for `resume()` and run the drift check. * Throws `SupervisorFailedError` when no store is configured or when * the run is missing; throws `SupervisorDriftError` when the stored * signature doesn't match the current definition (unless `force` is * set). */ declare function loadSnapshotForResume(params: { config: SupervisorConfig; signature: string; runId: string; options?: SupervisorResumeOptions; }): Promise; //#endregion export { loadSnapshotForResume, persistSupervisorSnapshot }; //# sourceMappingURL=snapshot.d.mts.map