import { SocketError } from './error-handling'; import { Event, EventMessage } from '../interfaces'; export declare class SocketClient { private wsUrl; private onError; private socket; private startAttempt; private shouldDisconnect; private callbackList; private callbackListAll; constructor(wsUrl: string, onError: (error: SocketError) => void); private backOff; connect(): Promise; disconnect(): void; private broadcast; on(event: Event | '*', cb: (data: EventMessage) => void): void; off(event: Event | '*', cb: (data: EventMessage) => void): void; }