blob: 3bee3d023482e351c8ce76c33b8800b9e2b27c31 [file] [log] [blame]
declare module "json-rpc2" {
export interface RPCConnection {
call<T>(command: string, args: any[], callback: (err: Error, result:T) => void): void;
}
export class Client {
static $create(port: number, addr: string): Client;
connectSocket(callback: (err: Error, conn: RPCConnection) => void): void;
on(handler: 'error', callback: (err: Error) => void): void;
}
}