/**
 * WebSocket Protocol Constants
 * Based on RFC 6455
 */
/**
 * WebSocket opcode types
 */
export declare enum WebSocketOpcode {
    CONTINUATION = 0,
    TEXT = 1,
    BINARY = 2,
    CLOSE = 8,
    PING = 9,
    PONG = 10
}
/**
 * WebSocket close codes
 */
export declare enum WebSocketCloseCode {
    NORMAL_CLOSURE = 1000,
    GOING_AWAY = 1001,
    PROTOCOL_ERROR = 1002,
    UNSUPPORTED_DATA = 1003,
    NO_STATUS_RECEIVED = 1005,
    ABNORMAL_CLOSURE = 1006,
    INVALID_FRAME_PAYLOAD_DATA = 1007,
    POLICY_VIOLATION = 1008,
    MESSAGE_TOO_BIG = 1009,
    MISSING_EXTENSION = 1010,
    INTERNAL_ERROR = 1011,
    SERVICE_RESTART = 1012,
    TRY_AGAIN_LATER = 1013,
    BAD_GATEWAY = 1014,
    TLS_HANDSHAKE = 1015
}
/**
 * WebSocket protocol version
 */
export declare const WEBSOCKET_VERSION = 13;
/**
 * WebSocket magic string for handshake
 */
export declare const WEBSOCKET_MAGIC_STRING = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
/**
 * WebSocket headers
 */
export declare const WEBSOCKET_HEADERS: {
    readonly UPGRADE: "upgrade";
    readonly CONNECTION: "connection";
    readonly SEC_WEBSOCKET_KEY: "sec-websocket-key";
    readonly SEC_WEBSOCKET_VERSION: "sec-websocket-version";
    readonly SEC_WEBSOCKET_ACCEPT: "sec-websocket-accept";
    readonly SEC_WEBSOCKET_PROTOCOL: "sec-websocket-protocol";
    readonly SEC_WEBSOCKET_EXTENSIONS: "sec-websocket-extensions";
};
