import type { AgentDefinition, SwarmConfig } from './types.js';
export interface ProxyEnvBinding {
    baseUrlVar: string;
    apiKeyVar: string;
}
export type ProxyEnvRegistry = Record<string, readonly ProxyEnvBinding[]>;
export declare const RELAY_PROXY_URL_ENV: "RELAY_LLM_PROXY";
export declare const RELAY_PROXY_URL_ENV_ALIAS: "RELAY_LLM_PROXY_URL";
export declare const RELAY_PROXY_TOKEN_ENV: "CREDENTIAL_PROXY_TOKEN";
export declare const RELAY_PROXY_TOKEN_ENV_ALIAS: "RELAY_LLM_PROXY_TOKEN";
export declare const DEFAULT_PROXY_ENV_REGISTRY: {
    readonly claude: readonly [{
        readonly baseUrlVar: "ANTHROPIC_BASE_URL";
        readonly apiKeyVar: "ANTHROPIC_API_KEY";
    }];
    readonly codex: readonly [{
        readonly baseUrlVar: "OPENAI_BASE_URL";
        readonly apiKeyVar: "OPENAI_API_KEY";
    }];
    readonly opencode: readonly [{
        readonly baseUrlVar: "OPENAI_BASE_URL";
        readonly apiKeyVar: "OPENAI_API_KEY";
    }];
    readonly aider: readonly [{
        readonly baseUrlVar: "OPENAI_API_BASE";
        readonly apiKeyVar: "OPENAI_API_KEY";
    }];
    readonly gemini: readonly [{
        readonly baseUrlVar: "GOOGLE_API_BASE";
        readonly apiKeyVar: "GOOGLE_API_KEY";
    }];
    readonly goose: readonly [{
        readonly baseUrlVar: "OPENAI_BASE_URL";
        readonly apiKeyVar: "OPENAI_API_KEY";
    }];
    readonly droid: readonly [{
        readonly baseUrlVar: "OPENAI_BASE_URL";
        readonly apiKeyVar: "OPENAI_API_KEY";
    }];
    readonly cursor: readonly [{
        readonly baseUrlVar: "OPENAI_BASE_URL";
        readonly apiKeyVar: "OPENAI_API_KEY";
    }];
};
export declare function createProxyEnvResolver(registry?: ProxyEnvRegistry): (cli: string, proxyUrl: string, proxyToken: string) => Record<string, string>;
export declare const resolveProxyEnv: (cli: string, proxyUrl: string, proxyToken: string) => Record<string, string>;
export declare function resolveProxyUrlFromEnv(env?: Record<string, string | undefined>): string | undefined;
export declare function resolveProxyTokenFromEnv(env?: Record<string, string | undefined>): string | undefined;
export declare function buildNormalizedProxyEnv(proxyUrl: string, proxyToken: string): Record<string, string>;
export declare function getStrippedApiKeyVars(): string[];
export declare function isProxyEnabled(agentDef?: Pick<AgentDefinition, 'credentials'> | null, swarmConfig?: Pick<SwarmConfig, 'credentialProxy'> | null): boolean;
//# sourceMappingURL=proxy-env.d.ts.map