export interface CortexConfig { reposDir: string; scanPatterns: string[]; checkIntervalHours: number; dashboardPort: number; version: string; /** * Explicit path to the Genius Team repo that provides the Store skills * (the directory containing `.claude/skills/`). Highest-priority local * source after the GENIUS_TEAM_SOURCE_DIR env var. When unset, Cortex falls * back to the registry heuristic and common locations. See resolveGTSource(). */ gtSourceDir?: string; /** * LP-07 budgets. `repoTokenBudget` is the generous default ceiling on the * CUMULATIVE token estimate of all running loops in a single repo — the loop * control plane orders a kill (heartbeat → kill:true) once the sum exceeds it. * `repoTokenBudgets` overrides that ceiling for named repos. These are repo-wide * caps; each loop ALSO carries its own `token_budget` from its contract. */ repoTokenBudget?: number; repoTokenBudgets?: Record; } /** * Default per-repo cumulative token ceiling (LP-07). Deliberately generous — a * budget is a runaway backstop, not a throttle: at ~$3/M input tokens this is on * the order of tens of dollars of spend across all of a repo's loops before the * control plane steps in. Tighten it per repo via `repoTokenBudgets` in * ~/.genius-cortex/config.json. */ export declare const DEFAULT_REPO_TOKEN_BUDGET = 10000000; export declare function getCortexDir(): string; export declare function ensureCortexDirs(): void; export declare function loadConfig(): CortexConfig; export declare function saveConfig(config: CortexConfig): void;