import type { BrainConfig, DeepPartialObject } from './config-schema'; /** * Load and return the global config. * * Reads `~/.brainbotbeta/config.json` on first call, deep-merges with defaults, * expands `~` in all string values, and caches the result. * * @param reload Force re-read from disk (default false) */ export declare function loadConfig(reload?: boolean): BrainConfig; /** * Return the absolute path to the config file. */ export declare function configFilePath(): string; /** * Deep-merge a partial update into the on-disk config and write it back. * * - Reads current config from disk (not the singleton cache, to avoid stale data) * - Deep-merges the partial update into it (objects recurse, arrays replace) * - Writes the result back to `~/.brainbotbeta/config.json` * - Invalidates the singleton cache so the next `loadConfig()` re-reads from disk * * This is safe for concurrent reads — Node.js is single-threaded. */ export declare function writeConfig(partial: DeepPartialObject): void;