import BaseSession from '../BaseSession';
export declare const setWebSocket: (websocket: any) => void;
export default class Connection {
    session: BaseSession;
    private _wsClient;
    private _host;
    private _timers;
    upDur: number;
    downDur: number;
    constructor(session: BaseSession);
    get connected(): boolean;
    get connecting(): boolean;
    get closing(): boolean;
    get closed(): boolean;
    get isAlive(): boolean;
    get isDead(): boolean;
    wsHandler(ws: WebSocket | null): void;
    connect(): void;
    sendRawText(request: string): void;
    send(bladeObj: any): Promise<any>;
    close(): void;
    private _unsetTimer;
    private _setTimer;
    private _handleStringResponse;
}
