import type { DeliverPayload, SessionAuthContext } from "#channel/types.js"; import type { DurableSessionState } from "#execution/durable-session-store.js"; import { type RoutedDeliverResult } from "#execution/workflow-steps.js"; /** * Coalesces inbound deliver payloads and routes any descendant-bound input * responses down to the owning child. A descendant session-limit Stop is * returned as parent-owned turn control after the child consumes the answer. * * Short-circuits via `hasProxyInputRequests` so the common no-active-descendant * path skips a durable step boundary. Lives in its own non-step module so both * the driver and the active turn can share it (a `"use step"` module cannot * re-export plain helpers into a workflow body). */ export declare function routeDeliverToChildren(input: { readonly auth?: SessionAuthContext | null; readonly parentWritable: WritableStream; readonly payloads: readonly DeliverPayload[]; readonly sessionState: DurableSessionState; }): Promise;