/// import WebSocket from "@insertish/isomorphic-ws"; import { Client } from "./Client"; import { ServerboundNotification } from "./websocketNotifications"; export declare class WebSocketClient { client: Client; ws?: WebSocket; private heartbeat?; connected: boolean; ready: boolean; ping?: number; constructor(client: Client); /** Disconnect the WebSocket and disable heartbeats. */ disconnect(): void; /** Send a notification to the server. */ send(notification: ServerboundNotification): void; /** Connect to the server. */ connect(disallowReconnect?: boolean): Promise; }