export declare class AutoProxyManager { private static instance; private runningProxies; private temporaryProxies; private isCleanupRegistered; private constructor(); static getInstance(): AutoProxyManager; /** * Check if a URL needs to be proxied (is HTTPS and not localhost) */ isProxyNeeded(url: string): boolean; /** * Ensure a proxy is running for the given URL and return the proxied URL */ ensureProxy(url: string, options?: { persistent?: boolean; }): Promise; /** * Find an available port starting from 3000 */ private findAvailablePort; /** * Start a temporary proxy for the given URL */ private startTemporaryProxy; /** * Wait for proxy connection to be established */ private waitForProxyConnection; /** * Try to connect to existing browser tab via BroadcastChannel * Note: This only works if Node.js has BroadcastChannel support, otherwise falls back to opening new tab */ private tryConnectToExistingTab; /** * Register cleanup handlers for temporary proxy */ private registerTemporaryProxyCleanup; /** * Schedule auto-shutdown after the first successful command */ private scheduleAutoShutdown; /** * Stop a specific proxy */ stopProxy(url: string): Promise; /** * Stop all running proxies */ cleanup(): Promise; /** * Get info about running proxies */ getRunningProxies(): Array<{ url: string; port: number; }>; /** * Send completion signal to browser and exit gracefully */ sendCompletionSignalAndExit(url: string): Promise; /** * Register cleanup handlers for process exit */ private registerCleanupHandlers; } //# sourceMappingURL=auto-proxy-manager.d.ts.map