import type { NodeName, ONICheckpointer, ONICheckpoint, ChannelSchema } from "../types.js"; import type { PregelContext, PendingSend } from "./types.js"; export declare function saveCheckpoint>(ctx: PregelContext, threadId: string, step: number, state: S, nextNodes: NodeName[], pendingSends: PendingSend[], agentId?: string, metadata?: Record, pendingWrites?: Array<{ nodeId: string; writes: Record; }>): Promise; export declare function getState>(checkpointer: ONICheckpointer | null, threadId: string): Promise; export declare function updateState>(checkpointer: ONICheckpointer | null, channels: ChannelSchema, threadId: string, update: Partial): Promise; export declare function getStateAt>(checkpointer: ONICheckpointer | null, threadId: string, step: number): Promise; export declare function getHistory>(checkpointer: ONICheckpointer | null, threadId: string): Promise[]>; export declare function forkFrom>(checkpointer: ONICheckpointer | null, threadId: string, step: number, newThreadId: string): Promise; //# sourceMappingURL=checkpointing.d.ts.map