import { IWsClient } from '../internal/types';
export declare class WsClient implements IWsClient {
    private getUrl;
    isDestroyed: boolean;
    private ws;
    private restartTimeout;
    constructor(getUrl: () => string);
    init(): void;
    send: (msg: string | ArrayBuffer) => void;
    onMessage: (_: ArrayBuffer | string) => void;
    onOpen: () => void;
    onClose: () => void;
    onError: (error: Error) => void;
    reconnect: () => void;
    destroy: () => void;
    private destroyWebsocket;
}
