import type { ConfigTier } from "../interpretation/resolve-options.js"; export declare class ConfigError extends Error { constructor(message: string); } export declare const userConfigPath: () => string; /** Project config: `.hcn/config.json` at the git root (P4 ratified as A - * auto-discover, no trust gate; the config is code-reviewed like AGENTS.md * and every project-tier provenance line names its path). Null outside a * repo or when the repo declares none. */ export declare const projectConfigPath: (startDir?: string) => string | null; /** Parse + validate config text. Throws ConfigError with the offending key * named on any violation - never warns and continues. */ export declare const parseUserConfig: (text: string) => ConfigTier; /** Load the user config if the file exists; absent file is an empty config * (no tiers engaged), unreadable or invalid file is a hard error. */ export declare const loadUserConfig: () => { config: ConfigTier; path: string; } | null; /** Load the project config (git-root auto-discovery, ratified A). */ export declare const loadProjectConfig: (startDir?: string) => { config: ConfigTier; path: string; } | null; //# sourceMappingURL=config.d.ts.map