/// <reference types="node" />
import type { IncomingMessage } from 'node:http';
/**
 * Generates a WebSocket URL by converting an HTTP(S) URL into a WS(S) URL.
 * @param id - The identifier of the channel. Needs to be a URL.
 */
export declare function generateWebSocketUrl(id: string): string;
/**
 * Parses a {@link IncomingMessage} to extract its path used for authentication.
 *
 * @param baseUrl - The base URL of the server.
 * @param request - The request to parse.
 */
export declare function parseWebSocketRequest(baseUrl: string, request: IncomingMessage): string;
