import type { Item, NodeDef, RunRecord, StepEvent, WorkflowDef } from './types.js'; export declare class DagError extends Error { constructor(message: string); } export declare function buildDag(wf: WorkflowDef): string[]; export interface RunOptions { items?: Item[]; params?: Record; signal?: AbortSignal; onEvent?: (event: StepEvent) => void; executeNode?: NodeExecutor; } export type NodeExecutor = (node: NodeDef, items: Item[], nodeOutputs: Record, params: Record, signal?: AbortSignal) => Promise; export declare function runWorkflow(wf: WorkflowDef, options?: RunOptions): Promise; //# sourceMappingURL=engine.d.ts.map