import { CommandMessage } from '../../../../../@ones-table/common';
import ReconnectingWebSocket, { ErrorEvent, CloseEvent } from 'reconnecting-websocket';
export default class CommandSender {
    private ws;
    private message;
    private _resolve;
    private _reject;
    constructor(ws: ReconnectingWebSocket, message: CommandMessage);
    private resolve;
    private reject;
    handleMessage: (event: MessageEvent) => void;
    handleError: (event: ErrorEvent) => void;
    handleClose: (event: CloseEvent) => void;
    send(): Promise<void>;
}
