/** * V1 Intelligence Module — persistence configuration * Split out of intelligence.ts (file-size sweep). Pure move: paths, the * multi-process-safe patterns.json lock, and the stats file path. * * @module v1/cli/intelligence */ /** * Get the data directory for neural pattern persistence * Uses .monomind/neural in the current working directory, * falling back to home directory */ export declare function getDataDir(): string; /** * Ensure the data directory exists */ export declare function ensureDataDir(): string; /** * Get the patterns file path */ export declare function getPatternsPath(): string; export declare function getPatternsLockPath(): string; export declare const PATTERNS_LOCK_STALE_MS = 10000; export declare function isPidAlive(pid: number): boolean; /** * Mirrors the stale-lock-breaking pattern in * .claude/helpers/control-start.cjs (claimSpawnLock/releaseSpawnLock): * wx-flag write to claim, break the lock if its holder is dead or the lock * is older than the stale threshold, retry once, then give up and proceed * unlocked (best-effort — a missed lock still merges via the re-read, it * just narrows a tiny TOCTOU window further). */ export declare function claimPatternsLock(): boolean; export declare function releasePatternsLock(): void; /** * Get the stats file path */ export declare function getStatsPath(): string; //# sourceMappingURL=intelligence-persistence.d.ts.map