import { type ConfigV2 } from './config-types.js'; /** * Load the slim 2.0 `~/.peaks/config.json` file. Returns the parsed * object when the file is at schema 2.0.0; returns null when the * file is absent (fresh install, no global config yet). * * Throws `CONFIG_LEGACY_VERSION` when the file exists at a 1.x * schema version — the caller is expected to run * `peaks config migrate --apply` to bring it forward before * continuing. This gate is intentional: a slim 2.0 reader must * not silently pass through a 1.x shape, because every field it * ignores is a field the caller is going to look for elsewhere * (preferences.json, .bak, _state/). */ export declare function loadGlobalConfig(): ConfigV2 | null;