import { UserConfig, ConfigValidationResult } from '../types/config'; /** * Configuration management for Pet Terminal * Handles loading/saving user config from ~/.pet-terminal/config.json */ export declare class Config { private configPath; private config; constructor(configPath?: string); /** * Get the default config directory path * ~/.pet-terminal/ on Unix/Mac * %USERPROFILE%\.pet-terminal\ on Windows */ private getDefaultConfigPath; /** * Load configuration from file * Returns default config if file doesn't exist */ load(): UserConfig; /** * Merge loaded config with defaults */ private mergeWithDefaults; /** * Save configuration to file */ save(config?: UserConfig): void; /** * Get current configuration */ getConfig(): UserConfig; /** * Get decay rate multiplier */ getDecayRate(): number; /** * Set decay rate multiplier */ setDecayRate(rate: number): void; /** * Check if auto-care is enabled */ isAutoCareEnabled(): boolean; /** * Set auto-care enabled state */ setAutoCareEnabled(enabled: boolean): void; /** * Get auto-care thresholds */ getAutoCareThresholds(): { hunger: number; happiness: number; cleanliness: number; energy: number; health: number; }; /** * Set auto-care threshold */ setAutoCareThreshold(stat: keyof UserConfig['autoCare']['thresholds'], value: number): void; /** * Get the config file path */ getConfigPath(): string; /** * Reset config to defaults */ resetToDefaults(): void; /** * Validate configuration values */ validate(config: UserConfig): ConfigValidationResult; /** * Create default config file * Returns true if file was created, false if it already exists */ static createDefaultConfig(): boolean; } /** * Get or create global config instance */ export declare const getConfig: () => Config; /** * Reset global config instance (useful for testing) */ export declare const resetGlobalConfig: () => void; //# sourceMappingURL=config.d.ts.map