/** * Derive the HTTP base URL for a relay WebSocket URL. * * Examples: * wss://relay.example.com/edge → https://relay.example.com * ws://relay.local:3001/edge → http://relay.local:3001 * * @throws If the URL uses `ws://` (or `wss://`) with `NODE_ENV=production` * or `EDGEAI_REQUIRE_TLS=1`. The TLS guard short-circuits before the * rewrite so a plaintext URL is never sent over the wire in production. */ export declare function relayHttpBase(wsUrl: string): string; /** Redact secret-looking query params from a URL for safe logging. * FIX 2026-07-14, G-5: now delegates to the unified network/redact-url.ts * module so CLI + WS-client error paths can't drift apart. */ export { redactUrl } from '../network/redact-url.js'; /** * Wrap `fetch` with a default 15s timeout and URL redaction on thrown * errors. Returns the raw `Response` (caller still checks `.ok`). */ export declare function cliHttpFetch(url: string, options?: RequestInit & { timeoutMs?: number; }): Promise;