UNPKG

@contentstack/cli-utilities

Version:

Utilities for contentstack projects

25 lines (24 loc) 722 B
export interface ProxyConfig { protocol: 'http' | 'https'; host: string; port: number; auth?: { username: string; password: string; }; } /** * Get proxy configuration with priority: Environment variables > Global config * @returns ProxyConfig object or undefined if no proxy is configured */ export declare function getProxyConfig(): ProxyConfig | undefined; /** * Check if proxy is configured (from any source) * @returns true if proxy is configured, false otherwise */ export declare function hasProxy(): boolean; /** * Get proxy URL string for display purposes * @returns Proxy URL string or 'proxy server' if not available */ export declare function getProxyUrl(): string;