import { WebSocketServer, WebSocket } from 'ws'; import * as http from 'http'; import * as https from 'https'; import { IncomingMessage } from 'http'; import { TicketData } from './ticket.service'; import { BridgeContext } from './bridge-registry.service'; export interface WssSslOptions { key: Buffer | string; cert: Buffer | string; } export interface WssBootstrapOptions { server?: http.Server | https.Server; port?: number; ssl?: WssSslOptions; onDisconnect?: (context: BridgeContext) => void; onAuthenticated?: (ws: WebSocket, req: IncomingMessage, ticketData: TicketData) => void; } export declare class WssMicroservice { private static logger; private static wss; private static publicHost; private static publicPort; static bootstrap(options?: WssBootstrapOptions): Promise; static get url(): string; private static resolveSsl; private static handleHttpRequest; private static handleConnection; }