export declare enum SocketState {
    Failed = 0,
    Closed = 1,
    Connecting = 2,
    Awaiting = 3,
    Ready = 4
}
export declare class Socket {
    private pingInterval;
    private pingIntervalValue;
    private pingIntervalDelay;
    private connection;
    private state;
    private pinged;
    private initParams;
    private listeners;
    constructor();
    private stopPinging;
    private startPinging;
    connect(url?: string, secure?: boolean): void;
    tryReconnect(): void;
    reconnect(): void;
    disconnect(): void;
    destroy(): void;
    on(name: string, fn: Function): void;
    send(message: string | any): void;
}
//# sourceMappingURL=socket.d.ts.map