import { JsonRpcHandler } from '../types'; import { Flow } from '../index'; /** * Example implementation of a JsonRpcHandler with AbortSignal support */ export declare const exampleJsonRpcHandler: JsonRpcHandler; /** * Example flow with global and step-level timeouts */ export declare const exampleFlow: Flow; /** * Usage notes: * * 1. The Flow Executor will create an AbortController internally based on the timeout configuration. * 2. For each step execution, the AbortController's signal is passed to the JsonRpcHandler. * 3. The RequestStepExecutor handles AbortError exceptions automatically. * 4. End users only need to: * - Configure timeouts at flow and/or step level * - Optionally provide fallback values for timeout cases * - Implement a JsonRpcHandler that respects the AbortSignal * * The FlowExecutor takes care of the rest, including: * - Creating and managing AbortController lifecycle * - Ensuring signal propagation to handlers * - Proper error handling and timeouts */