/** * Configuration and API Key Management * Supports multiple LLM providers: Gemini (default), Amazon Bedrock, and Claude */ import { GoogleGenAI } from '@google/genai'; import type { ProviderName, LLMProvider } from './providers/types.js'; export { DEFAULT_MODEL, FALLBACK_MODEL, getDefaultModel, getFallbackModel, resolveModelConfig, resolveModelAlias, MODEL_ALIASES, } from './models.js'; export type { ProviderName, LLMProvider, ProviderConfig } from './providers/types.js'; /** * Get Gemini API key from environment or config * Priority: * 1. GEMINI_API_KEY environment variable * 2. RLM_API_KEY environment variable * 3. VITE_GEMINI_API_KEY (for Vite projects) * 4. Config file at ~/.rlm-analyzer/config.json */ export declare function getApiKey(): string; /** * Check if Bedrock credentials are available * Checks for AWS credentials via environment variables or AWS profile */ export declare function hasBedrockCredentials(): boolean; /** * Check if Claude API credentials are available * Checks for Anthropic API key via environment variables */ export declare function hasClaudeCredentials(): boolean; /** * Get Claude API key from environment */ export declare function getClaudeApiKey(): string; /** * Detect the provider to use based on configuration priority * Priority: * 1. RLM_PROVIDER environment variable * 2. Config file provider setting * 3. Auto-detect based on available credentials * 4. Default to 'gemini' */ export declare function detectProvider(): ProviderName; /** * Initialize the LLM provider * @param providerOverride - Optional provider to use instead of auto-detected * @returns The initialized provider */ export declare function initializeProvider(providerOverride?: ProviderName): LLMProvider; /** * Get the cached LLM provider instance * Initializes with default settings if not already initialized * @returns The LLM provider */ export declare function getLLMProvider(): LLMProvider; /** * Get the GoogleGenAI client instance (backward compatibility) * @deprecated Use getLLMProvider() instead for provider-agnostic code */ export declare function getAIClient(): GoogleGenAI; /** * Initialize configuration directory */ export declare function initConfig(apiKey?: string, provider?: ProviderName): void; /** * Check if API key is configured (for Gemini) */ export declare function hasApiKey(): boolean; /** * Check if any provider credentials are available */ export declare function hasAnyCredentials(): boolean; /** * Get current provider name * @returns The name of the currently active provider, or null if not initialized */ export declare function getCurrentProvider(): ProviderName | null; //# sourceMappingURL=config.d.ts.map