import type { Schema } from "../../extensions/schema/index.js"; import type { BaseNodeConfig, RetryConfig, WorkflowContext, WorkflowNode } from "../types.js"; /** Options accepted by wait for approval. */ export interface WaitForApprovalOptions extends Omit { message?: string; payload?: unknown | ((context: WorkflowContext) => unknown); timeout?: string | number; approvers?: string[]; retry?: RetryConfig; skip?: (context: WorkflowContext) => boolean | Promise; /** * Shape the approver's structured answer must satisfy. Submitting a * non-conformant answer is refused instead of persisted. */ responseSchema?: Schema; } /** Create a wait-for-approval node. Pauses until human approves/rejects. */ export declare function waitForApproval(id: string, options?: WaitForApprovalOptions): WorkflowNode; /** Options accepted by wait for event. */ export interface WaitForEventOptions extends Omit { eventName: string; timeout?: string | number; retry?: RetryConfig; skip?: (context: WorkflowContext) => boolean | Promise; } /** Create a wait-for-event node. Pauses until external event is received. */ export declare function waitForEvent(id: string, options: WaitForEventOptions): WorkflowNode; /** Create a simple delay/sleep node. */ export declare function delay(id: string, duration: string | number): WorkflowNode; //# sourceMappingURL=wait.d.ts.map