import { ProxyAgent } from 'undici'; /** * Resolves outbound proxy URL for ElevenLabs HTTPS calls. * Order: `ELEVENLABS_HTTPS_PROXY`, then `HTTPS_PROXY` / `https_proxy`, then `HTTP_PROXY` / `http_proxy`. * Node's global `fetch` does not read these; the plugin passes a Undici `ProxyAgent` when any is set. */ export declare function resolveElevenLabsProxyUrl(): string | undefined; export declare function isElevenLabsProxyConfigured(): boolean; /** Reused across requests; recreated if the resolved proxy URL changes. */ export declare function getElevenLabsProxyAgent(): ProxyAgent | undefined; /** * Close and forget the cached `ProxyAgent`. Called from the plugin `destroy()` * hook so hot reloads / shutdowns do not leak undici sockets, and re-exported * under a `*ForTesting` alias for vitest cases that toggle proxy env vars. */ export declare function disposeElevenLabsProxyAgent(): void; export declare const resetElevenLabsProxyAgentForTesting: typeof disposeElevenLabsProxyAgent;