import type { KnownProvider } from "./types.js"; /** * Get API key for provider from known environment variables, e.g. OPENAI_API_KEY. * * Will not return API keys for providers that require OAuth tokens. */ export declare function getEnvApiKey(provider: KnownProvider): string | undefined; export declare function getEnvApiKey(provider: string): string | undefined; export declare const ENV_VAR_BY_PROVIDER: Record; export type ProviderAuthKind = "env" | "oauth" | "file" | "needs-region" | "missing"; export interface ProviderAuthStatus { kind: ProviderAuthKind; /** Short user-facing hint, e.g. "set XAI_API_KEY" or "/login anthropic". */ hint?: string; /** The env var name this provider would use, if any. */ envVar?: string; /** True when the agent can dispatch a request right now without further setup. */ configured: boolean; } /** * Describe how a provider authenticates and whether the user is set up for it. * * The UI uses this to badge providers (`✓` / `🔑` / `✗` / `⚙`) and surface * actionable hints without having to know about every provider's idiosyncrasies. */ export declare function getProviderAuthStatus(provider: string): ProviderAuthStatus; //# sourceMappingURL=env-api-keys.d.ts.map