import type { MessageStreamEvent } from "#protocol/message.js"; import type { RuntimeHookRegistry } from "#runtime/hooks/registry.js"; import type { ContextContainer } from "./container.js"; /** * Fans one runtime stream event out to every matching subscriber. * Authored handler failures are logged independently. Caller must hold an * active ALS scope so hooks see the same context as the rest of the step. */ export declare function dispatchStreamEventHooks(input: { readonly ctx: ContextContainer; readonly registry: RuntimeHookRegistry; readonly event: MessageStreamEvent; /** Stops the running turn for `ctx.cancel()`; `undefined` when this event cannot stop one. */ readonly cancelTurn: (() => void) | undefined; }): Promise;