import type { KnownProvider } from "./types.js";
export interface EnvApiKeyResolution {
    provider: string;
    apiKey?: string;
    isAuthenticatedMarker: boolean;
    isValid: boolean;
}
/**
 * Resolve a provider's credential from the process environment.
 *
 * Most providers map to a single env var (such as OPENAI_API_KEY); a few use
 * custom logic (Bedrock and Vertex return the SDK marker, Copilot/Anthropic
 * accept token fallbacks). Returns undefined when nothing usable is configured.
 */
export declare function getEnvApiKey(provider: KnownProvider): string | undefined;
export declare function getEnvApiKey(provider: string): string | undefined;
export declare function isLikelyValidApiKey(value: string | undefined): boolean;
export declare function resolveEnvApiKey(provider: KnownProvider | string): EnvApiKeyResolution;
export declare function rotateEnvApiKey(provider: KnownProvider | string, fallback?: string): string | undefined;
