/**
 * Resolve Anthropic API key from multiple sources.
 *
 * Resolution priority (first match wins):
 * 1. `ANTHROPIC_API_KEY` environment variable (explicit per-process config)
 * 2. CLEO global config at `~/.local/share/cleo/anthropic-key` (user-stored key)
 * 3. Claude Code OAuth token at `~/.claude/.credentials.json` (auto-discover
 *    from the user's existing Claude Code login — no manual config needed)
 *
 * To store a key explicitly: `cleo config set brain.anthropicApiKey <key>`
 * or write directly to `~/.local/share/cleo/anthropic-key`.
 *
 * Returns null when no key is available.
 */
/**
 * Resolve the Anthropic API key. Result is cached for the process lifetime.
 *
 * @returns The API key/token string, or null if unavailable.
 */
export declare function resolveAnthropicApiKey(): string | null;
/**
 * Store an Anthropic API key in the CLEO global config directory.
 *
 * Writes to `~/.local/share/cleo/anthropic-key` with 0600 permissions.
 * This is the backup path for users who want to set a key explicitly
 * without using environment variables.
 *
 * @param apiKey - The API key to store.
 */
export declare function storeAnthropicApiKey(apiKey: string): void;
/**
 * Clear the cached key (useful for testing or token refresh scenarios).
 */
export declare function clearAnthropicKeyCache(): void;
//# sourceMappingURL=anthropic-key-resolver.d.ts.map