import { FExecutionContext } from '@freemework/common'; import { NativeActivity } from './activities/index.js'; import { WorkflowVirtualMachine } from './WorkflowVirtualMachine.js'; export declare class WorkflowInvoker { private readonly _wvm; private _state; static run(executionContext: FExecutionContext, workflowId: string, activity: NativeActivity): Promise; get currentExecutionContext(): WorkflowVirtualMachine.Context; invoke(executionContext: FExecutionContext): Promise; /** * Executes virtual machine till pause or completion * @param cancellationToken */ step(executionContext: FExecutionContext): Promise; resumeBreakpoint(breakpointName: string): void; private constructor(); static create(_executionContext: FExecutionContext, _workflowId: string, activity: NativeActivity): WorkflowInvoker; } export declare namespace WorkflowInvoker { const enum State { NEW = "New", WORKING = "Working", SLEEPING = "Sleeping", CRASHED = "Crashed", COMPLETED = "Completed" } interface WorkflowInvokerState { state: State; } }