/** * Config Manager — reads/writes ~/.careervividrc.json * * Stored fields: * apiKey — cv_live_... key * apiUrl — override for the publish endpoint (default: prod) */ export declare const CONFIG_FILE: string; export declare const DEFAULT_API_URL = "https://careervivid.app/api"; export type LLMProvider = 'careervivid' | 'gemini' | 'openai' | 'anthropic' | 'openrouter' | 'custom'; export interface CareerVividConfig { apiKey?: string; apiUrl?: string; /** @internal — CareerVivid platform key, never exposed to users */ geminiKey?: string; targetCompanies?: string; /** ISO timestamp of when the CLI session was created */ sessionCreatedAt?: string; /** BYO LLM provider preference */ llmProvider?: LLMProvider; /** BYO model identifier (e.g. "gpt-4o", "claude-opus-4-5", "gemini-2.5-pro") */ llmModel?: string; /** @deprecated use llmKeys[provider] instead — kept for migration */ llmApiKey?: string; /** Per-provider API keys — keyed by provider name */ llmKeys?: Partial>; /** Custom base URL for OpenAI-compatible endpoints (OpenRouter, Kimi, GLM, Qwen, etc.) */ llmBaseUrl?: string; } export interface LLMConfig { provider: LLMProvider; model: string; apiKey?: string; baseUrl?: string; } export declare function loadConfig(): CareerVividConfig; export declare function saveConfig(config: CareerVividConfig): void; export declare function getApiKey(): string | undefined; /** Gemini API key used by `cv agent`. Priority: GEMINI_API_KEY env var > geminiKey in config. */ export declare function getGeminiKey(): string | undefined; /** Get the saved API key for a specific BYO provider */ export declare function getProviderKey(provider: LLMProvider): string | undefined; /** Save the API key for a specific BYO provider */ export declare function setProviderKey(provider: LLMProvider, key: string): void; export declare function getApiUrl(): string; export declare function setConfigValue(key: keyof CareerVividConfig, value: string): void; /** How long a CLI session stays valid (90 days in ms) */ export declare const SESSION_TTL_MS: number; /** Returns true if the stored session is still valid */ export declare function isSessionValid(): boolean; /** Call when user successfully authenticates — stamps the session creation time */ export declare function stampSession(): void; /** Clear all auth credentials (logout) */ export declare function clearSession(): void; /** * Returns the active LLM config, with env var overrides. * Priority: CLI flags (passed in) > env vars > config file > defaults. */ export declare function getLlmConfig(overrides?: { provider?: LLMProvider; model?: string; apiKey?: string; baseUrl?: string; }): LLMConfig; //# sourceMappingURL=config.d.ts.map