import type { Agent } from "../../agent/types.js"; import type { Tool } from "../../tool/types.js"; import type { BaseNodeConfig, RetryConfig, WorkflowContext, WorkflowNode } from "../types.js"; /** Options accepted by step. */ export interface StepOptions extends Omit { agent?: string | Agent; tool?: string | Tool; input?: string | Record | ((context: WorkflowContext) => unknown); checkpoint?: boolean; retry?: RetryConfig; timeout?: string | number; skip?: (context: WorkflowContext) => boolean | Promise; } /** Create a workflow step definition. */ export declare function step(id: string, options: StepOptions): WorkflowNode; /** Create a workflow step that runs an agent. */ export declare function agentStep(id: string, agent: string | Agent, options?: Omit): WorkflowNode; /** Create a workflow step that runs a tool. */ export declare function toolStep(id: string, tool: string | Tool, options?: Omit): WorkflowNode; //# sourceMappingURL=step.d.ts.map