/** * Proxy detection and configuration for network requests. * * Detects HTTP_PROXY / HTTPS_PROXY / ALL_PROXY environment variables * and configures undici's global dispatcher so that all fetch() calls * (including those made internally by giget) go through the proxy. */ /** * Mask credentials in a proxy URL for safe logging. * * Replaces username and password with "***" so that credentials * are never printed to the console or written to log files. */ export declare function maskProxyUrl(url: string): string; /** * Set up a global proxy dispatcher if proxy environment variables are present. * * Uses undici's ProxyAgent and setGlobalDispatcher so that all fetch() calls * go through the proxy. The try/catch handles malformed proxy URLs (e.g. * socks5://, missing protocol) that would cause `new ProxyAgent()` to throw. * * @returns The proxy URL string if a proxy was configured, or null otherwise. */ export declare function setupProxy(): string | null; //# sourceMappingURL=proxy.d.ts.map