import { ConnectionStatus, WebSocketWrapper } from "../../icc-x-api";
export interface Connection {
    close(): void;
    onConnected(callback: () => void): Connection;
    onClosed(callback: () => void): Connection;
    onError(callback: (e?: Error) => void): Connection;
}
export declare class ConnectionImpl implements Connection {
    wsw: WebSocketWrapper;
    connectionStatus: ConnectionStatus;
    constructor(rs: WebSocketWrapper);
    close(): void;
    onConnected(callback: () => void): Connection;
    onClosed(callback: () => void): Connection;
    onError(callback: (e?: Error) => void): Connection;
}
