import { IncomingMessage } from 'http';
import WebSocket from 'ws';
type UpgradeHandler = (req: IncomingMessage, socket: import('net').Socket, head: Buffer) => void;
type VerifyClientFn = (info: {
    origin: string;
    secure: boolean;
    req: IncomingMessage;
}, cb: (res: boolean, code?: number, message?: string) => void) => void;
type UpgradeClaimHandlingOptions = {
    unclaimedUpgradeRejectionDelayMs?: number;
};
type WebSocketUpgradeHandlerOptions = UpgradeClaimHandlingOptions & {
    httpServer: import('http').Server;
    wsPath: string;
    wsServer: WebSocket.Server;
    verifyClient: VerifyClientFn;
};
export declare function installWebSocketUpgradeHandler(options: WebSocketUpgradeHandlerOptions): UpgradeHandler;
export {};
//# sourceMappingURL=WebSocketUpgradeHandler.d.ts.map