import { WorkflowExecution, LoggerAdapter, PersistenceAdapter, IWorkflowPlugin, WorkflowMetadataConfig } from '../types'; import { ConcurrencyManager } from './concurrency-manager'; export interface ExecutionOptions = Record> { data: TData; groupId?: string; executionId?: string; } export declare enum ResumeStrategy { RETRY = "retry", SKIP = "skip", GOTO = "goto" } export interface ResumeOptions = Record> { data?: Partial; strategy?: ResumeStrategy; targetState?: string; } export declare class WorkflowExecutor = Record, TOutputs extends Record = Record> { private readonly workflowInstance; private readonly metadata; private readonly persistence?; private readonly concurrencyManager?; private readonly logger?; private readonly plugins; private stateExecutor; private pluginsInitialized; private readonly executorId; private readonly transitionsByState; private readonly conditionalTransitionsByState; private readonly stateOrder; private readonly stateHandlers; constructor(workflowInstance: any, metadata: WorkflowMetadataConfig, persistence?: PersistenceAdapter | undefined, concurrencyManager?: ConcurrencyManager | undefined, logger?: LoggerAdapter | undefined, plugins?: IWorkflowPlugin[]); execute(options: ExecutionOptions): Promise>; resume(executionId: string, options?: ResumeOptions): Promise>; private executeWorkflow; private getNextState; private resolveState; private canTransition; private getGroupId; private callWorkflowLifecycleHook; private initializePlugins; private callPluginHook; private handleErrorWithHandler; private processErrorDecision; /** * Execute state with automatic retry on failure based on @Retry decorator configuration */ private executeStateWithRetry; private extendContextWithPlugins; private applyVirtualOutputs; private generateExecutionId; } //# sourceMappingURL=workflow-executor.d.ts.map