import type { EventBus } from "../../core/event-bus.ts"; import { type IntercomRpcCommand, type IntercomRpcEvent } from "../../core/intercom-rpc.ts"; import type { RpcResponse } from "./rpc-types.ts"; /** One listener pair per bound session; replacement rejects pending calls and ignores stale results. */ export declare class RpcIntercomBridge { private disposed; private readonly unsubscribe; private readonly pending; private readonly scope; private readonly bus; constructor(bus: EventBus | undefined, output: (event: IntercomRpcEvent) => void, sessionId: string, epoch?: string); request(command: IntercomRpcCommand): Promise; dispose(): void; }