import type { RpcConfig } from '../../types.js'; import type { HttpExecutor } from '../http.js'; import { JsonRpcProtocol } from './protocol.js'; export declare class JsonRpcTransport { /** * The sans-I/O protocol layer. Use this to build {@link HttpRequest} * descriptors without performing any I/O. */ readonly protocol: JsonRpcProtocol; private readonly execute; constructor(cfg: RpcConfig, executor?: HttpExecutor); /** @internal Expose URL for tests that inspect transport state. */ get url(): string; /** * Execute a single JSON-RPC call. */ call(method: string, params?: unknown[]): Promise; /** * Execute a JSON-RPC batch in a single HTTP request. * Returns results in the same order as the input calls. */ batch(calls: Array<{ method: string; params: unknown[]; }>): Promise; } //# sourceMappingURL=json-rpc.d.ts.map