import type { AttachJsonRpcTransport, AttachMessageTransport, DebugCallback, RaceCancellation } from "../types"; /** * Creates a AttachJsonRpcTransport function from the specified * AttachMessageTransport function. * * This just handles the JSON RPC part of adapting the message transport. * * It does not support all of JSON RPC, only whats needed for the DevTools API. * The client can only receive notifications and send requests. * The client cannot receive requests or send notifications. * * @param attach a function that attaches the message transport * @param debug an optional debug function, should support format string + args like npm debug * @param raceCancellation a raceCancellation that is scoped to the transport like Chrome exited */ export default function newAttachJsonRpcTransport(attach: AttachMessageTransport, debug?: DebugCallback, raceCancellation?: RaceCancellation): AttachJsonRpcTransport; //# sourceMappingURL=newAttachJsonRpcTransport.d.ts.map