import { JRPCRequest, Json } from "../interfaces.js"; import { SafeEventEmitter } from "../safeEventEmitter.js"; import { JRPCMiddlewareV2 } from "./v2interfaces.js"; import { Duplex } from "readable-stream"; /** * Creates a V2-compatible client-side stream middleware for the dapp ↔ iframe * transport layer. * * Replaces V1's `createStreamMiddleware` by providing: * - A terminal middleware that sends outbound requests through the stream and * resolves when the matching response arrives. * - A Duplex object stream to pump through the ObjectMultiplex channel. * - Inbound notification routing via the supplied `notificationEmitter`. */ export declare function createClientStreamMiddlewareV2({ notificationEmitter }?: { notificationEmitter?: SafeEventEmitter; }): { middleware: JRPCMiddlewareV2, Json>; stream: Duplex; };