import type { Checkpoint, WorkflowState } from '../../types.ts'; import { type WorkflowVersionDiff, type WorkflowVersionTuple } from '../../workflow-version-tuple.ts'; import type { EngineInternals } from '../internals.ts'; import { type LifecycleCallbacks, type RegistrationEntry } from './shared.ts'; /** Build a {@link WorkflowVersionTuple} from a {@link RegistrationEntry}. */ export declare function createWorkflowVersionTuple(_internals: EngineInternals, registration: RegistrationEntry, _callbacks: LifecycleCallbacks): WorkflowVersionTuple; export declare function workflowVersionTupleFromState(_internals: EngineInternals, state: WorkflowState, _callbacks: LifecycleCallbacks): WorkflowVersionTuple; export declare function workflowStateWithVersionTuple(internals: EngineInternals, state: WorkflowState, versionTuple: WorkflowVersionTuple, _callbacks: LifecycleCallbacks): WorkflowState; export declare function derivePreparedExecutionState(internals: EngineInternals, workflowId: string, state: WorkflowState, checkpoint: Checkpoint, registration: RegistrationEntry, callbacks: LifecycleCallbacks): { state: WorkflowState; checkpoint: Checkpoint; versionTuple: WorkflowVersionTuple; shouldPersistPreparedState: boolean; }; export declare function prepareResumeState(internals: EngineInternals, workflowId: string, state: WorkflowState, checkpoint: Checkpoint, checkpointBytes: Uint8Array, registration: RegistrationEntry, callbacks: LifecycleCallbacks): Promise<{ state: WorkflowState; checkpoint: Checkpoint; serializedCheckpoint: Uint8Array; versionTuple: WorkflowVersionTuple; }>; /** Throws a {@link VersionMismatchError} with a full version diff. Never returns. */ export declare function throwVersionMismatch(_internals: EngineInternals, workflowId: string, state: WorkflowState, registration: RegistrationEntry, versionDiff: WorkflowVersionDiff, _callbacks: LifecycleCallbacks): never;