UNPKG

@bitclave/base-client-js

Version:
14 lines (13 loc) 647 B
import { JsonDeserializer } from '../../../utils/types/json-transform'; import { Primitive } from '../../../utils/types/Primitive'; import { HttpTransport } from '../http/HttpTransport'; import { RpcInterceptor } from './RpcInterceptor'; import { RpcTransport } from './RpcTransport'; export declare class RpcTransportImpl implements RpcTransport { private transport; private id; constructor(httpTransport: HttpTransport); request<T>(method: string, arg: Array<object | Primitive | undefined | null>, deserializer?: JsonDeserializer<T>): Promise<T>; disconnect(): void; addInterceptor(interceptor: RpcInterceptor): this; }