/** * Workflow Executor * * Executes a parsed Arazzo workflow at runtime with: * * 1. **Dynamic token passing** — Captures access tokens from grant steps * and automatically injects them as Authorization headers in subsequent * resource server calls. * * 2. **Interactive grant handling** — When a step returns an interact.redirect, * the executor pauses and calls the user-provided InteractionHandler to * obtain consent, then resumes the grant continuation. * * 3. **Dynamic server URL resolution** — When a wallet address resolution step * returns authServer/resourceServer URLs, the executor dynamically updates * the server URL map for subsequent steps. */ import type { WorkflowObject } from '../parser/types.js'; import type { WorkflowExecutionOptions, WorkflowResult } from './types.js'; export declare class WorkflowExecutionError extends Error { workflowId: string; stepId?: string | undefined; constructor(message: string, workflowId: string, stepId?: string | undefined); } /** * Execute an Arazzo workflow. * * @param workflow - The parsed workflow object * @param options - Execution options including inputs, server URLs, and auth * @returns The workflow result with all outputs and step details */ export declare function executeWorkflow(workflow: WorkflowObject, options: WorkflowExecutionOptions): Promise; //# sourceMappingURL=workflow-executor.d.ts.map