import { JRpcRequest, JRpcResponse, JRpcEvent, JRpcError } from './jsonRpc'; export declare class BaseTransport { handles: { handle: number; }[]; constructor(); generateHandle(): number; } export interface RpcTransport extends BaseTransport { open(host: string, notification: (event: JRpcEvent) => void): Promise<{ handle: number; }>; close(handle: number): Promise; send(handle: number, jsonRpc: JRpcRequest): Promise> | Promise; }