/**
 * Proxy Resolver — Concern D
 *
 * Handles proxy configuration resolution, remote proxy reachability check,
 * local-backend selection, and CLIProxy binary acquisition.
 *
 * Extracted from executor/index.ts to isolate the proxy-resolution concern.
 * All log messages, error messages, and exit semantics are byte-identical to
 * the original implementation.
 */
import { CLIProxyProvider, CLIProxyBackend, ExecutorConfig } from '../types';
import type { ResolvedProxyConfig } from '../types';
import type { UnifiedConfig } from '../../config/schemas/unified-config';
/** Result returned from resolveExecutorProxy */
export interface ResolvedProxy {
    /** Resolved proxy config after merging CLI > ENV > config.yaml > defaults */
    proxyConfig: ResolvedProxyConfig;
    /** Whether to use the remote proxy (vs spawning a local one) */
    useRemoteProxy: boolean;
    /** Which local backend binary to use ('original' | 'plus') */
    localBackend: CLIProxyBackend;
    /** Absolute path to CLIProxy binary; undefined when useRemoteProxy=true */
    binaryPath: string | undefined;
    /** Args after proxy-related flags are stripped out */
    argsWithoutProxy: string[];
    /** Mutated executor config (port resolved and validated) */
    cfg: ExecutorConfig;
}
/** Dependencies injected by the orchestrator */
export interface ResolveExecutorProxyContext {
    unifiedConfig: UnifiedConfig;
    allProviders: CLIProxyProvider[];
    verbose: boolean;
    cfg: ExecutorConfig;
    log: (msg: string) => void;
}
/**
 * Resolves proxy configuration, checks remote reachability, selects the local
 * backend, and ensures the CLIProxy binary is present when running locally.
 *
 * Mutates `context.cfg.port` in-place (same as original orchestrator behaviour).
 */
export declare function resolveExecutorProxy(args: string[], context: ResolveExecutorProxyContext): Promise<ResolvedProxy>;
//# sourceMappingURL=proxy-resolver.d.ts.map