import type { WorkflowDefinition, WorkflowMeta, WorkflowRun, WorkflowRunResult, StepEvent, TelemetryRun, IDataProvider, DevFlowPlugin, WorkflowRejection } from "@devflow-tools/sdk"; import type { HostActionRecord, StepHandler, WorkflowEngineOptions, WorkflowRunExecutionOptions } from "./types.js"; export declare class WorkflowEngine { private definitions; private runs; private runtimes; private advancing; private resolver; private eventListeners; private data?; private options; private truthfulWorkflow; private worktreeWorkers; private pluginStepHandlers; constructor(data?: IDataProvider, options?: WorkflowEngineOptions); private now; private resolveStepRefs; register(definition: WorkflowDefinition): void; registerStepHandler(id: string, handler: StepHandler): void; registerPlugin(plugin: DevFlowPlugin): void; runPluginWorkflow(pluginName: string, templateName: string, input: Record, execution?: WorkflowRunExecutionOptions): Promise; private pluginWorkflowName; list(): Promise; getDefinition(name: string): WorkflowDefinition | undefined; run(name: string, input: Record, execution?: WorkflowRunExecutionOptions): Promise; advanceRun(runId: string): Promise; private advanceRunInternal; private skipFailedDescendants; private executeStep; private isManualStep; private prepareManualStep; private invokeStep; private executeStateful; private validateSuccessfulOutput; private requestHostAction; private requestIsolatedWorker; private validateRequestedRecord; resumeHostAction(record: HostActionRecord): Promise; reconcileTimedOutActions(now?: number): Promise; approve(runId: string, stepId: string): Promise; reject(runId: string, stepId: string, rejection: WorkflowRejection | string): Promise; renderPlan(run: TelemetryRun, template: WorkflowDefinition): string; getRun(runId: string): WorkflowRun | undefined; listRuns(): Promise; private publicRun; private stepContext; private stepState; private recomputeRunStatus; private setRunFailure; private runResult; private persistRun; private finishLogIfTerminal; onEvent(runId: string, listener: (event: StepEvent) => void): void; private emit; private registerDefaults; } //# sourceMappingURL=workflow-engine.d.ts.map