import type { EventEmitter } from "node:events"; type ErrorEventEmitter = Pick & object; export declare function attachGatewaySocketErrorSink(socket: ErrorEventEmitter | null | undefined, onError?: (error: unknown) => void): void; export declare function rewriteRedirectLocation(app: { id: string; }, location: string | undefined): string | undefined; export declare function normalizeOrigin(value: string | undefined): string | undefined; export declare function escapeHtml(value: string): string; export {};