/*!
 * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
 */
import { Exception } from '@webex/common';
import type { SocketCloseEvent, SocketResponse } from './socket/types';
import { MobiusSocketResponseError } from './types';
export declare class ConnectionError extends Exception {
    static defaultMessage: string;
    code?: number;
    reason?: string;
    constructor(event?: SocketCloseEvent);
    parse(event?: SocketCloseEvent): string | undefined;
}
export declare class UnknownResponse extends ConnectionError {
    static defaultMessage: string;
    constructor(event?: SocketCloseEvent);
}
export declare class BadRequest extends ConnectionError {
    static defaultMessage: string;
    constructor(event?: SocketCloseEvent);
}
export declare class NotAuthorized extends ConnectionError {
    static defaultMessage: string;
    constructor(event?: SocketCloseEvent);
}
export declare class Forbidden extends ConnectionError {
    static defaultMessage: string;
    constructor(event?: SocketCloseEvent);
}
export declare function createWssResponseError(response: SocketResponse, statusCode?: number, statusMessage?: string): MobiusSocketResponseError;
export declare function createTimeoutError(request: SocketResponse): MobiusSocketResponseError;
//# sourceMappingURL=errors.d.ts.map