import type { CheckpointStore, SerializableAgentState } from '../../types'; export declare class StaleResumeError extends Error { readonly level = "warning"; constructor(message: string); } export declare class RunStateManager { private store; constructor(storage?: 'memory' | CheckpointStore); suspend(runId: string, state: SerializableAgentState): Promise; checkpointStep(runId: string, state: SerializableAgentState): Promise; loadForCrashResume(runId: string): Promise; resume(runId: string): Promise; claimResume(runId: string, state: SerializableAgentState): Promise; complete(runId: string): Promise; cancel(runId: string): Promise; } export declare function generateRunId(): string;