/// <reference types="node" />
import WebSocket from 'ws';
import * as http from 'http';
import * as https from 'https';
export declare const SOCKET_COMPLETE_WARNING_TIMEOUT = 5000;
export declare const SOCKET_CLOSE_WAIT_TIMEOUT = 7500;
export declare type SocketWithInfo = WebSocket & {
    id: string;
    closingByKit: boolean;
};
export declare type MessageWithInfo = http.IncomingMessage & {
    id: string;
};
export declare type Server = http.Server | https.Server;
export declare type SocketHandler = (socket: SocketWithInfo, request: MessageWithInfo) => void;
