import type { CrowcoderConfig } from './types.js'; export declare const CONFIG_DIR_NAME = ".compact-agent"; export declare const LEGACY_CONFIG_DIR_NAME = ".crowcoder"; /** * Resolve the per-project state dir (codemap cache, project memory, * package-manager pref). Prefers `/.compact-agent`; falls back to * the legacy `/.crowcoder` only if it exists and the new one * doesn't. Project dirs are NOT auto-renamed — they often live inside * repos and migrating them silently could surprise teammates / CI. */ export declare function getProjectStateDir(cwd: string): string; export declare function getConfigDir(): string; /** * Same as getConfigDir() but exported under a clearer name for * other modules that want the home-dir state root. Used by * sessions, debug log, gateguard state, etc. */ export declare function getHomeStateDir(): string; export declare function loadConfig(): CrowcoderConfig; export declare function saveConfig(config: CrowcoderConfig): void; export declare function configExists(): boolean;