import { IHttpServerComponent } from '@dcl/core-commons'; /** * Callback invoked with the upgraded WebSocket. The socket type is generic (defaulting to * `any`) so the published types don't depend on `@types/ws` — which would otherwise force * every consumer to install it or enable `skipLibCheck`. Consumers that use this (unstable) * API can parameterize it with their own socket type, e.g. * `WebSocketCallback`. */ export type WebSocketCallback = (ws: W) => Promise | void; /** * @alpha * @deprecated Not stable */ export declare function upgradeWebSocketResponse(cb: WebSocketCallback): IHttpServerComponent.IResponse;