export declare type SocketClient = SocketIOClient.Socket & { onJson(eventName: string): Promise; }; export declare namespace SocketioClient { function connect(url: string, opts?: {}): SocketClient; }