Files
2026-03-03 23:49:13 +01:00

24 lines
954 B
TypeScript

export declare const EXTENSION_IDS: string[];
/**
* Parse a relay host string into HTTP and WebSocket base URLs.
* Supports both plain hostnames (appends port) and full URLs (uses as-is).
*
* Examples:
* "192.168.1.10" → http://192.168.1.10:19988, ws://192.168.1.10:19988
* "https://my-machine-tunnel.traforo.dev" → https://my-machine-tunnel.traforo.dev, wss://my-machine-tunnel.traforo.dev
*/
export declare function parseRelayHost(host: string, port?: number): {
httpBaseUrl: string;
wsBaseUrl: string;
};
export declare function getCdpUrl({ port, host, token, extensionId, }?: {
port?: number;
host?: string;
token?: string;
extensionId?: string | null;
}): string;
export declare const LOG_FILE_PATH: string;
export declare const LOG_CDP_FILE_PATH: string;
export declare const VERSION: string;
export declare function sleep(ms: number): Promise<void>;
//# sourceMappingURL=utils.d.ts.map