/** * Check if system keychain is available */ export declare function hasKeychainSupport(): Promise; /** * Get credentials from system keychain */ export declare function getKeychainCredentials(): Promise<{ user: string; password: string; } | null>; /** * Save credentials to system keychain * @returns true if saved successfully, false otherwise */ export declare function saveToKeychain(user: string, password: string): Promise; /** * Clear credentials from system keychain */ export declare function clearKeychain(): Promise; export type CredentialSource = "environment" | "keychain" | "file" | null; export interface Config { password?: string; user?: string; } /** * Load configuration from file */ export declare function loadConfig(): Config; /** * Save configuration to file */ export declare function saveConfig(cfg: Config): void; /** * Clear saved configuration from file */ export declare function clearConfigFile(): void; /** * Clear saved configuration from all storage locations */ export declare function clearConfig(): Promise; /** * Get credentials from environment variables only (sync) */ export declare function getCredentialsFromEnv(): { user: string; password: string; } | null; /** * Get credentials from config file only (sync) */ export declare function getCredentialsFromFile(): { user: string; password: string; } | null; /** * Get credentials from environment variables, keychain, or config file * Priority: env vars → keychain → config file */ export declare function getCredentials(): Promise<{ user: string; password: string; source: CredentialSource; } | null>; /** * Check if credentials are configured (sync check - env and file only) */ export declare function hasCredentialsSync(): boolean; /** * Check if credentials are configured (async - includes keychain) */ export declare function hasCredentials(): Promise; /** * Interactive login prompt */ export declare function promptLogin(): Promise<{ user: string; password: string; }>; /** * Get credentials, prompting if necessary */ export declare function requireCredentials(): Promise<{ user: string; password: string; }>;