import type { GrawkusConfig } from './types.js';
export declare const CONFIG_DIR_NAME = ".grawkus";
export declare const LEGACY_CONFIG_DIR_NAME = ".grawkus";
/**
 * Resolve the per-project state dir (codemap cache, project memory,
 * package-manager pref). Prefers `<cwd>/.grawkus`; falls back to
 * the legacy `<cwd>/.grawkus` 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(): GrawkusConfig;
export declare function saveConfig(config: GrawkusConfig): void;
export declare function configExists(): boolean;
