import type { JsonRpcRequest, JsonRpcResponse } from "../types.js"; /** * Abstract transport for communicating with a Power BI Desktop Bridge instance. * Each implementation handles connection, Content-Length framing, and * JSON-RPC 2.0 lifecycle for a single request-response cycle. */ export interface Transport { /** * Send a JSON-RPC request and await its response. * Implementations manage their own connection lifecycle: * connect – send – receive framing – disconnect. */ sendRequest(request: JsonRpcRequest, signal?: AbortSignal): Promise; /** Release any held resources. Safe to call multiple times. */ close(): void; } //# sourceMappingURL=transport.d.ts.map