import type { WorkflowRunStore } from "../store/index.js"; import type { JsonValue, NodeAttempt, NodeAttemptId, NodeId, ValidationResult, WorkflowDefinition, WorkflowDiagnostic, WorkflowErrorSummary, WorkflowEventEmitter, WorkflowRegistry, WorkflowRun, WorkflowRunId, WorkflowRuntimeEvent, WorkflowValue } from "../types/index.js"; import type { AgentProfileResolver, OneNodeAgentExecutor } from "./pibo-routing.js"; export type OneNodeAgentWorkflowOptions = { registry?: Pick; initialGlobalState?: Record; initialLocalState?: Record>; now?: () => Date | string; createRunId?: () => WorkflowRunId; createNodeAttemptId?: () => NodeAttemptId; store?: WorkflowRunStore; emitEvent?: WorkflowEventEmitter; profileResolver?: AgentProfileResolver; agentExecutor: OneNodeAgentExecutor; }; export type OneNodeAgentWorkflowSuccess = { ok: true; run: WorkflowRun; nodeAttempt: NodeAttempt; events: WorkflowRuntimeEvent[]; output: WorkflowValue; }; export type OneNodeAgentWorkflowFailure = { ok: false; run?: WorkflowRun; nodeAttempt?: NodeAttempt; events: WorkflowRuntimeEvent[]; diagnostics: WorkflowDiagnostic[]; error: WorkflowErrorSummary; }; export type OneNodeAgentWorkflowResult = OneNodeAgentWorkflowSuccess | OneNodeAgentWorkflowFailure; export declare function validateOneNodeAgentWorkflowPath(definition: WorkflowDefinition): ValidationResult; export declare function runOneNodeAgentWorkflow(definition: WorkflowDefinition, input: WorkflowValue, options: OneNodeAgentWorkflowOptions): Promise; //# sourceMappingURL=one-node-agent.d.ts.map