export class Socket extends EventEmitter {
    constructor(ScreepsAPI: any);
    api: any;
    opts: {
        reconnect: boolean;
        resubscribe: boolean;
        keepAlive: boolean;
        maxRetries: number;
        maxRetryDelay: number;
    };
    keepAliveInter: NodeJS.Timeout;
    reset(): void;
    authed: boolean;
    connected: boolean;
    reconnecting: boolean;
    __queue: any[];
    __subQueue: any[];
    __subs: {};
    connect(opts?: {}): Promise<any>;
    ws: any;
    reconnect(): Promise<void>;
    disconnect(): void;
    sleep(time: any): Promise<any>;
    handleMessage(msg: any): void;
    gzip(bool: any): Promise<void>;
    send(data: any): Promise<void>;
    auth(token: any): Promise<any>;
    subscribe(path: any, cb: any): Promise<void>;
    unsubscribe(path: any): Promise<void>;
}
import { EventEmitter } from "events";
