import type { ContextOperationRequest } from '../context.ts'; import type { WorkerOutboundMessage, WorkflowState } from '../types.ts'; import type { EngineInternals } from './internals.ts'; import { type LifecycleCallbacks } from './lifecycle.ts'; import { type TerminationCallbacks } from './termination.ts'; export type ParkedWorkflowResumeDisposition = 'resumable' | 'terminal-or-missing' | 'corrupt'; export type InlineParkingCallbacks = { createLifecycleCallbacks: () => LifecycleCallbacks; createTerminationCallbacks: () => TerminationCallbacks; evaluateConstraints: (workflowId: string) => Promise; getParkedWorkflowResumeDisposition: (workflowId: string) => Promise; hasBufferedSignal: (workflowId: string, signalName: string) => Promise; loadWorkflowState: (workflowId: string) => Promise; parkInlineWorkflowAfterCheckpoint: (workflowId: string, operation: ContextOperationRequest) => Promise; persistCheckpoint: (workflowId: string, operation: ContextOperationRequest, workerCheckpointBytes?: ArrayBuffer) => Promise; processOperation: (workflowId: string, operation: ContextOperationRequest) => Promise; readCheckpointBytes: (workflowId: string) => Promise; resumeParkedInlineWorkflow: (workflowId: string) => Promise; runSerializedWorkflowStateWrite: (workflowId: string, writeOperation: () => Promise) => Promise; translateOperationRequest: (operationRequest: unknown) => ContextOperationRequest; validateDevelopmentCheckpoint: (workflowId: string) => void; }; export declare function parkInlineWorkflowAfterCheckpoint(internals: EngineInternals, workflowId: string, operation: ContextOperationRequest, callbacks: InlineParkingCallbacks): Promise; export declare function resumeParkedInlineWorkflow(internals: EngineInternals, workflowId: string, callbacks: InlineParkingCallbacks): Promise; export declare function getParkedWorkflowResumeDisposition(internals: EngineInternals, workflowId: string, callbacks: InlineParkingCallbacks): Promise; export declare function handleStrategyMessage(internals: EngineInternals, message: WorkerOutboundMessage, callbacks: InlineParkingCallbacks): Promise;