/** * Credential Storage * * File-based credential storage for cross-platform compatibility. * Stores authentication tokens in a JSON file. */ export interface StoredCredentials { accessToken?: string; refreshToken?: string; apiKey?: string; } export interface CredentialManager { getAccessToken(): Promise; getRefreshToken(): Promise; getApiKey(): Promise; getAllCredentials(): Promise; setAuthentication(accessToken: string, refreshToken: string, apiKey?: string): Promise; clearAuthentication(): Promise; getStoragePath(): string; } /** * FileCredentialManager - File-based credential storage * * Storage Locations: * - Windows: %APPDATA%\\auth.json * - macOS: ~/./auth.json * - Linux: $XDG_CONFIG_HOME//auth.json or ~/.config//auth.json */ export declare class FileCredentialManager implements CredentialManager { private cachedAccessToken; private cachedRefreshToken; private cachedApiKey; private authFilePath; constructor(domain?: string); private toWindowsTitleCase; private getAuthFilePath; getStoragePath(): string; private ensureDirectoryExists; private readAuthData; private writeAuthData; setAuthentication(accessToken: string, refreshToken: string, apiKey?: string): Promise; getAccessToken(): Promise; getRefreshToken(): Promise; getApiKey(): Promise; getAllCredentials(): Promise; clearAuthentication(): Promise; /** * Clear cached values to force reload from disk */ clearCache(): void; } /** * Create a credential manager for the specified domain */ export declare function createCredentialManager(domain?: string): FileCredentialManager;