import { type DialectRefusalSignal } from "./tool-dialects.js"; /** * Wrap an Anthropic SSE stream so a tool-call envelope arriving as TEXT becomes real `tool_use` * blocks. `schemas` types the recovered parameters; without it they stay strings and the validator * reports the type error, which is the correct visible failure rather than a silent coercion. */ export declare function recoverDialectInStream(upstream: ReadableStream, schemas: Map; }>, isDestructive: (name: string) => boolean, refusalSignal?: DialectRefusalSignal): ReadableStream;