/** * Configuration management. * * Resolution order (highest priority first): * 1. Environment variables (BRANCH_MEMORY_*) * 2. Local config (.branch-memory.json in repo root) * 3. Defaults */ export interface Config { /** Directory where branch memories are stored, relative to repo root */ memoryDir: string; /** Name of the memory file Claude Code reads */ memoryFileName: string; /** Automatically save memory when switching branches */ autoSaveOnSwitch: boolean; /** Fallback to main/master/develop if no branch memory exists */ fallbackToDefault: boolean; /** Default branches to try as fallback, in order */ fallbackBranches: string[]; } /** * Load configuration, merging environment variables over file config over defaults. */ export declare function loadConfig(repoRoot?: string): Promise;