@presidio-dev/factifai-agent
Version:
An AI powered browser automation testing agent powered by LLMs.
59 lines • 1.85 kB
TypeScript
/**
* Configuration manager for the factifai-agent CLI
* Handles persistent storage of configuration settings
*/
export declare class ConfigManager {
private static configDir;
private static _configPath;
private static config;
private static isInitialized;
/**
* Get the path to the configuration file
*/
static get configPath(): string;
/**
* Initialize the configuration manager
* This sets up the config directory and loads existing config
*/
static initialize(): void;
/**
* Load configuration from disk
* If no config file exists, creates an empty one
*/
private static loadConfig;
/**
* Save configuration to disk
*/
private static saveConfig;
/**
* Set a configuration value
* @param key Configuration key
* @param value Configuration value
* @returns true if successful, false otherwise
*/
static set(key: string, value: string): boolean;
/**
* Get a configuration value
* @param key Configuration key
* @param defaultValue Default value to return if key doesn't exist
* @returns The configuration value or defaultValue if not found
*/
static get(key: string, defaultValue?: string): string | undefined;
/**
* Get all configuration values
* @returns All configuration key-value pairs
*/
static getAll(): Record<string, string>;
/**
* Check if a configuration key exists
* @param key Configuration key
* @returns true if the key exists, false otherwise
*/
static has(key: string): boolean;
/**
* Apply configuration to environment variables
* This allows config values to be used in the application via process.env
*/
static applyToEnvironment(): void;
}
//# sourceMappingURL=config-manager.d.ts.map