import { CgMq, RpcConfig } from "../Server/RpcWebSocketServer/CgMq"; import { RpcMsg } from "../Server/RpcWebSocketServer/IRpc"; declare class Remote { protected _retmsg: RpcMsg | null; get retMsg(): RpcMsg; protected _cgmq: CgMq; get cgmq(): CgMq; protected _to_group: string; protected _to_id: string; protected _listen: string; protected _is_mq: boolean; constructor(group: string, id: string, cgmq: CgMq, listen: string, is_mq?: boolean); call(func_name: string, ...args: any[]): Promise<{ rets: any[]; ret: any; }>; } export declare class Rpc { protected _cgmq: CgMq; get cgmq(): CgMq; init(cfg: RpcConfig): Promise; getRemote(group: string, id?: string, listener?: string, is_mq?: boolean): Remote; getRemoteMq(group: string, id?: string, listener?: string): Remote; onMsg(msg: RpcMsg): Promise; listen(listeners: string[]): Promise; unlisten(listeners: string[]): Promise; } export {};