import { SocketService, SocketServer, SocketClient, ClientOptions, Logger } from './interfaces'; export interface ClientErrorHandler { handleRecvError(error: Error, data: string | Uint8Array): void; } export declare function createClientSocket(originalOptions: ClientOptions, token?: string | null | undefined, errorHandler?: ClientErrorHandler, apply?: (f: () => any) => void, log?: Logger): SocketService;