/**
 * Credential Storage Utility
 *
 * SPARC Architecture Reference: Authentication Module
 *
 * PURPOSE: Securely store and retrieve API credentials locally
 *
 * STORAGE LOCATION:
 * - ~/.agentics/credentials.json (Unix/macOS)
 * - %USERPROFILE%\.agentics\credentials.json (Windows)
 *
 * FORBIDDEN:
 * - Storing credentials in plaintext in code
 * - Logging credential values
 * - Transmitting credentials to unauthorized endpoints
 */
import type { AuthCredentials } from '../types/index.js';
export interface ICredentialStore {
    save(credentials: AuthCredentials): Promise<void>;
    load(): Promise<AuthCredentials | null>;
    delete(): Promise<void>;
    exists(): Promise<boolean>;
}
export declare class CredentialStore implements ICredentialStore {
    private readonly configDir;
    private readonly credentialsPath;
    constructor(configDir?: string);
    save(credentials: AuthCredentials): Promise<void>;
    load(): Promise<AuthCredentials | null>;
    delete(): Promise<void>;
    exists(): Promise<boolean>;
    private ensureConfigDir;
    getCredentialsPath(): string;
}
export declare function createCredentialStore(configDir?: string): ICredentialStore;
/**
 * Resolve the Anthropic API key from (in priority order):
 * 1. ANTHROPIC_API_KEY environment variable
 * 2. Stored credentials (~/.agentics/credentials.json)
 *
 * Returns null if no key is available.
 */
export declare function getAnthropicApiKey(): Promise<string | null>;
/**
 * Get the Agentics platform API key from available sources.
 * Priority order:
 * 1. AGENTICS_API_KEY environment variable
 * 2. AGENTICS_INTERNAL_KEY environment variable
 * 3. Stored credentials (~/.agentics/credentials.json)
 *
 * Returns null if no key is available.
 */
export declare function getPlatformApiKey(): Promise<string | null>;
//# sourceMappingURL=credentials.d.ts.map