/** * CLIProxy Auto-Start * * Lightweight module to detect and auto-start CLIProxy instances. * When a profile's ANTHROPIC_BASE_URL points to 127.0.0.1:, * ensures the CLIProxy binary is running on that port. */ /** * Extract localhost port from a URL like http://127.0.0.1:8317/... * Returns null if not a localhost URL. */ export declare function extractLocalhostPort(url: string): number | null; /** * Ensure CLIProxy is running on the given port. * If already running and trusted, returns immediately. * If not, spawns the binary and waits for readiness. * * @param port The port to ensure CLIProxy is running on * @param verbose Enable verbose logging */ export declare function ensureCliproxy(port: number, verbose?: boolean): Promise; /** * If the given env vars contain a localhost ANTHROPIC_BASE_URL, * ensure CLIProxy is running on that port. * No-op if the URL is not localhost. */ export declare function ensureCliproxyIfNeeded(env: Record, verbose?: boolean): Promise; //# sourceMappingURL=cliproxy-autostart.d.ts.map