import { handlerType } from "./handler-type"; export declare type CreateWsFuncType = (config: WebsocketConfig) => WebsocketInterface; export declare class WebsocketConfig { url: string; requireValidSsl: boolean; useTls: boolean; constructor(url: string, useTls?: boolean, requireValidSsl?: boolean); } export interface WebsocketInterface { on(event: string, handler: handlerType): void; send(data: string): void; state(): number; open(): void; close(): void; }