import { SafeEventEmitter } from "../safeEventEmitter.js"; import { JRPCEngineV2 } from "./jrpcEngineV2.js"; import { Duplex } from "readable-stream"; /** * Creates a Duplex object stream for an engine (JRPCEngineV2) + a separate notification emitter. * * Replaces V1's createEngineStream by decoupling notification forwarding from * the engine itself. Notifications are routed through a SafeEventEmitter that * pushes onto the same stream, so the engine no longer needs to be an EventEmitter. */ export declare function createEngineStreamV2({ engine, notificationEmitter }: { engine: JRPCEngineV2; notificationEmitter?: SafeEventEmitter; }): Duplex;