import { WorkflowExecution, ExecutionFilter, PersistenceAdapter, LockAdapter, LoggerAdapter, IWorkflowPlugin } from '../types'; import { ExecutionOptions, ResumeOptions } from './workflow-executor'; import { WorkflowGraph, ExecutionGraph } from '../types/graph.types'; export interface WorkflowEngineConfig { persistence?: PersistenceAdapter; lockAdapter?: LockAdapter; logger?: LoggerAdapter; plugins?: IWorkflowPlugin[]; instanceFactory?: (classType: new (...args: any[]) => T) => T; } export declare class WorkflowEngine { private readonly config; private concurrencyManager?; private executors; constructor(config?: WorkflowEngineConfig); registerWorkflow(workflowClass: new (...args: any[]) => any): void; execute = Record>(workflowClass: new (...args: any[]) => any, options: ExecutionOptions): Promise>; resume = Record>(workflowClass: new (...args: any[]) => any, executionId: string, options?: ResumeOptions): Promise>; getExecution(executionId: string): Promise; findExecutions(filter: ExecutionFilter): Promise; forceReleaseGroupLock(workflowClass: new (...args: any[]) => any, groupId: string): Promise<{ workflowName: string; groupId: string; clearedExecutions: string[]; hadHardLock: boolean; }>; getRegisteredWorkflows(): string[]; clearRegistry(): void; /** * Get a static graph showing all possible states and transitions for a workflow * @param workflowClass - The workflow class decorated with @Workflow * @returns WorkflowGraph with nodes (states) and edges (transitions) */ getWorkflowGraph(workflowClass: new (...args: any[]) => any): WorkflowGraph; /** * Get an execution graph showing the actual execution path with statuses * @param executionId - The ID of the workflow execution * @returns ExecutionGraph with nodes (states with statuses) and edges (actual transitions) */ getExecutionGraph(executionId: string): Promise; } //# sourceMappingURL=workflow-engine.d.ts.map