import * as http from "node:http"; export type CdpServerBaseOptions = { port?: number; host?: string; }; export type CdpJsonTarget = { description: string; devtoolsFrontendUrl: string; devtoolsFrontendUrlCompat: string; id: string; title: string; type: string; url: string; webSocketDebuggerUrl: string; faviconUrl: string; }; export type VersionInfo = { Browser: string; "Protocol-Version": string; "User-Agent": string; "WebKit-Version": string; webSocketDebuggerUrl?: string; }; export type CdpHttpRoutes = { brand: string; version: VersionInfo | ((reqHost: string) => VersionInfo); listTargets: (reqHost: string) => CdpJsonTarget[]; indexNote?: string; }; export declare function buildJsonTarget(args: { reqHost: string; id: string; description: string; title: string; url: string; type: string; }): CdpJsonTarget; export declare function escapeHtml(s: string): string; export declare function createCdpHttpServer(routes: CdpHttpRoutes): http.Server; export declare function listen(server: http.Server, host: string, port: number): Promise; export declare function logCdpServerBanner(opts: { brand: string; host: string; port: number; }): void;