/** Host-side proxy discovery and OpenAI-scoped network routing. */ import type { CodexNetworkIssue, CodexNetworkRoute, CodexProxyMode } from './types.ts'; interface ActiveCodexNetworkState { route: CodexNetworkRoute; issue?: CodexNetworkIssue; } interface ProxySettings { httpProxy: string; httpsProxy: string; noProxy: string; } interface ProxyDiscovery { settings?: ProxySettings; issue?: CodexNetworkIssue; } interface SystemProxyReader { (platform: NodeJS.Platform): ProxyDiscovery | undefined; } /** Resolve standard proxy variables without exposing their values. */ export declare function proxyFromEnvironment(env: NodeJS.ProcessEnv): ProxyDiscovery | undefined; /** Parse `scutil --proxy` output from macOS. */ export declare function proxyFromMacOSScutil(output: string): ProxyDiscovery | undefined; /** Parse WinINET's current-user proxy snapshot. */ export declare function proxyFromWindowsInternetSettings(value: unknown): ProxyDiscovery | undefined; interface GnomeProxySnapshot { mode?: string; httpHost?: string; httpPort?: number | undefined; httpsHost?: string; httpsPort?: number | undefined; ignoreHosts?: string[]; } /** Resolve a GNOME manual proxy snapshot read through GSettings. */ export declare function proxyFromGnomeSettings(snapshot: GnomeProxySnapshot): ProxyDiscovery | undefined; /** Parse KDE's per-user `kioslaverc` proxy section. */ export declare function proxyFromKdeKioslaverc(output: string): ProxyDiscovery | undefined; /** Install and own one reversible, OpenAI-scoped global fetch dispatcher. */ export declare class CodexNetworkManager { private readonly previous; private readonly proxyAgent; private readonly scopedDispatcher; private readonly current; constructor(mode?: CodexProxyMode, env?: NodeJS.ProcessEnv, platform?: NodeJS.Platform, systemProxyReader?: SystemProxyReader); /** Secret-free route status for diagnostics and the Settings UI. */ status(): ActiveCodexNetworkState; /** Whether this manager installed an environment or system proxy route. */ usesProxy(): boolean; /** Restore the dispatcher only when nobody replaced this manager after startup. */ dispose(): Promise; } export {};