import { ClientProxy } from "@nestjs/microservices"; export declare class JsonRpcClient extends ClientProxy { private readonly url; private readonly metadata?; constructor(url: string, metadata?: { [key: string]: string; } | undefined); private counter; private jsonrpc; connect(): Promise; close(): Promise; /** * Method is unsupported for JSONRPC */ protected publish(packet: any, callback: (packet: any) => any): any; /** * Method is unsupported for JSONRPC */ protected dispatchEvent(packet: any): Promise; getService(namespace: string): ServiceClient; } export type ServiceClient = { [MethodName in keyof Service]: Service[MethodName] extends (params: infer Params, ...injections: any) => infer ReturnType ? (params: Params) => ReturnType extends Promise ? ReturnType : Promise : never; };