import { JsonRpcResponse, Rpc } from "@connext/types"; import { RequestHandler } from "./request-handler"; declare type AsyncCallback = (...args: any) => Promise; export declare class RpcRouter { private readonly requestHandler; private readonly log; constructor(requestHandler: RequestHandler); dispatch(rpc: Rpc): Promise; subscribe(event: string, callback: AsyncCallback): Promise; subscribeOnce(event: string, callback: AsyncCallback): Promise; unsubscribeAll(): void; unsubscribe(event: string, callback?: AsyncCallback): Promise; emit(event: string, data: any, emitter?: string): Promise; eventListenerCount(event: string): number; } export {}; //# sourceMappingURL=rpc-router.d.ts.map