import type { ContextOperationRequest } from '../context.ts'; import type { HumanReviewOptions } from '../review/index.ts'; import { type ChildWorkflowOperationCallbacks } from './child-workflow.ts'; import type { EngineInternals } from './internals.ts'; import { type ActivityOperationCallbacks } from './operations-activity.ts'; import { type CoordinationOperationCallbacks } from './operations-coordination.ts'; import type { OperationWithCallerStack } from './operations-router.ts'; import type { StateOperationCallbacks } from './operations-state.ts'; import type { SpeculativeExecutionState } from './speculative-execution-state.ts'; type SubOperationCallbacks = { createActivityOperationCallbacks: () => ActivityOperationCallbacks; createChildWorkflowOperationCallbacks: () => ChildWorkflowOperationCallbacks; createCoordinationOperationCallbacks: () => CoordinationOperationCallbacks; createStateOperationCallbacks: () => StateOperationCallbacks; }; type WaitReviewOperationCallbacks = { runOperationWithoutResult: (workflowId: string, operation: OperationWithCallerStack, execute: () => Promise) => Promise; processReviewOperation: (workflowId: string, options: HumanReviewOptions) => Promise; }; export declare function processWaitReviewOperation(_internals: EngineInternals, workflowId: string, operation: Extract, callbacks: WaitReviewOperationCallbacks): Promise; export declare function executeSubOperation(internals: EngineInternals, workflowId: string, operation: ContextOperationRequest, callbacks: SubOperationCallbacks, signal?: AbortSignal, speculativeState?: SpeculativeExecutionState): Promise; export {};