import { TeamAppsConnection, TeamAppsConnectionListener } from "./TeamAppsConnection";
import { UiClientInfoConfig } from "../../generated/UiClientInfoConfig";
import { UiEvent } from "../../generated/UiEvent";
export declare class TeamAppsConnectionImpl implements TeamAppsConnection {
    private sessionId;
    private static readonly SENT_EVENTS_MIN_BUFFER_SIZE;
    private static readonly SENT_EVENTS_MAX_BUFFER_SIZE;
    private static readonly KEEPALIVE_INTERVAL;
    private static readonly MIN_REQUESTED_COMMANDS;
    private static readonly MAX_REQUESTED_COMMANDS;
    private protocolStatus;
    private connection;
    private payloadMessagesQueue;
    private sentEventsBuffer;
    private eventIdCounter;
    private maxRequestedCommandId;
    private lastReceivedCommandId;
    constructor(url: string, sessionId: string, clientInfo: UiClientInfoConfig, commandHandler: TeamAppsConnectionListener);
    private ensureEnoughCommandsRequested;
    private static isINIT_OK;
    private static isINIT_NOK;
    private static isREINIT_OK;
    private static isREINIT_NOK;
    private static isMULTI_CMD;
    private static isSERVER_ERROR;
    private isConnected;
    sendEvent(event: UiEvent): void;
    private sendResult;
    private sendClientPayloadMessage;
    private flushPayloadMessages;
    private sendPayloadMessage;
    private log;
}
