/** * Configuration management for Paean CLI * Stores authentication tokens and user preferences in ~/.paean/config.json */ export interface PaeanConfig { token?: string; refreshToken?: string; userId?: number; email?: string; expiresAt?: string; deviceSessionId?: string; apiUrl?: string; webUrl?: string; defaultPriority?: "high" | "medium" | "low"; outputFormat?: "table" | "json" | "minimal"; } /** * Get the full configuration */ export declare function getConfig(): PaeanConfig; /** * Get a specific config value */ export declare function getConfigValue(key: K): PaeanConfig[K]; /** * Set a specific config value */ export declare function setConfigValue(key: K, value: PaeanConfig[K]): void; /** * Set multiple config values at once */ export declare function setConfig(values: Partial): void; /** * Check if user is authenticated * Environment variable PAEAN_TOKEN bypasses expiry checks */ export declare function isAuthenticated(): boolean; /** * Get the authentication token * Supports PAEAN_TOKEN environment variable override */ export declare function getToken(): string | undefined; /** * Get the API URL * Supports PAEAN_API_URL environment variable override */ export declare function getApiUrl(): string; /** * Get the Web URL * Supports PAEAN_WEB_URL environment variable override */ export declare function getWebUrl(): string; /** * Get the home config directory path (~/.paean or ~/.paean-dev) * Respects PAEAN_CONFIG_DIR environment variable. */ export declare function getConfigDir(): string; /** * Check if debug mode is enabled via environment variable */ export declare function isDebugEnabled(): boolean; /** * Store authentication data */ export declare function storeAuth(data: { token: string; refreshToken?: string; userId?: number; email?: string; expiresAt?: string; }): void; /** * Get the refresh token */ export declare function getRefreshToken(): string | undefined; /** * Check if the current token is near expiry (within buffer window) * Returns true if the token exists but will expire soon */ export declare function isTokenNearExpiry(): boolean; /** * Clear authentication data (logout) */ export declare function clearAuth(): void; /** * Get the config file path */ export declare function getConfigPath(): string; /** * Reset config to defaults */ export declare function resetConfig(): void; //# sourceMappingURL=config.d.ts.map