import type { ChannelDriver } from '../types/channel.js'; import type { Flow, FlowNode } from '../types/flow.js'; import type { RunContext } from '../types/run-context.js'; import type { RunState } from '../runtime/durable/types.js'; type DegradedFlowResult = { kind: 'ended'; reason: string; } | { kind: 'handoff'; to: string; reason?: string; }; export declare const SAFE_DEGRADED_MESSAGE = "I'm sorry \u2014 something went wrong on my side. Let me try to help you another way."; export declare function findEscalateNode(registry: Map): FlowNode | undefined; export declare function appendSafeAssistantMessage(run: RunState, ctx: RunContext, text?: string): void; export declare function degradeFlowError(flow: Flow, registry: Map, run: RunState, driver: ChannelDriver, ctx: RunContext, dispatchNode: (node: FlowNode, run: RunState, driver: ChannelDriver, ctx: RunContext) => Promise): Promise; export {};