import type { NodeAttempt, NodeAttemptId, WorkflowDefinition, WorkflowDiagnostic, WorkflowErrorSummary, WorkflowEventEmitter, WorkflowRegistry, WorkflowRun, WorkflowRuntimeEvent, WorkflowValue } from "../types/index.js"; import type { WorkflowRunStore } from "../store/index.js"; import type { AgentProfileResolver, OneNodeAgentExecutor, OneNodeAgentExecutorResult } from "./pibo-routing.js"; export type WorkflowAgentNodeDispatchOptions = { registry?: Pick; now?: () => Date | string; createNodeAttemptId?: () => NodeAttemptId; store?: WorkflowRunStore; emitEvent?: WorkflowEventEmitter; profileResolver?: AgentProfileResolver; agentExecutor: OneNodeAgentExecutor; edgePayloads?: Record; }; export type WorkflowAgentNodeDispatchSuccess = { ok: true; run: WorkflowRun; nodeAttempt: NodeAttempt; events: WorkflowRuntimeEvent[]; output: WorkflowValue; result: OneNodeAgentExecutorResult; }; export type WorkflowAgentNodeDispatchFailure = { ok: false; run: WorkflowRun; nodeAttempt?: NodeAttempt; events: WorkflowRuntimeEvent[]; diagnostics: WorkflowDiagnostic[]; error: WorkflowErrorSummary; }; export type WorkflowAgentNodeDispatchResult = WorkflowAgentNodeDispatchSuccess | WorkflowAgentNodeDispatchFailure; export declare function dispatchWorkflowAgentNode(definition: WorkflowDefinition, run: WorkflowRun, nodeId: string, input: WorkflowValue, options: WorkflowAgentNodeDispatchOptions): Promise; //# sourceMappingURL=agent-node.d.ts.map