import type { OpenAIStreamEventLike } from "../../../../adapters/openai/index.js"; /** * Workaround for a Yandex Responses-compatible backend that assigns an mcp_call item * a temporary id (prefixed `000_…`) during streaming, then swaps it for a different * permanent id in `response.output_item.done`. Without this rewrite, the downstream * tool-card lookup misses the existing part and renders a duplicate card. The * `output_index` field stays stable across the item's lifecycle, so it serves as the * canonical identity used to remap the done event's id back to the first-seen one. */ export declare function normalizeMcpCallIds(source: AsyncIterable): AsyncIterable;