import type { ContextOperationRequest } from '../context.ts'; import type { EngineInternals } from './internals.ts'; import type { OperationWithCallerStack } from './operations-router.ts'; type StateReadOperation = Extract; type StateCommitOperation = Extract; export type StateOperationCallbacks = { runOperationWithResult: (workflowId: string, operation: OperationWithCallerStack, execute: () => Promise) => Promise; ensureTerminalCleanupTracked: (workflowId: string) => Promise; }; export declare function processStateReadOperation(internals: EngineInternals, workflowId: string, operation: StateReadOperation, callbacks: StateOperationCallbacks): Promise; export declare function processStateCommitOperation(internals: EngineInternals, workflowId: string, operation: StateCommitOperation, callbacks: StateOperationCallbacks): Promise; export {};