import type { LearningPolicy, LearningRecommendation, LearningState } from "./types.js"; export declare function getLearningDirectory(projectDir: string): string; export declare function ensureLearningDirectory(projectDir: string): string; export declare function loadLearningPolicy(projectDir: string): LearningPolicy; export declare function loadLearningState(projectDir: string): LearningState; export declare function saveLearningState(projectDir: string, state: LearningState): void; export declare function saveLatestRecommendation(projectDir: string, recommendation: LearningRecommendation): void; export declare function clearLatestRecommendation(projectDir: string): void; export declare function loadLatestRecommendation(projectDir: string): LearningRecommendation | null; export declare function withLearningStateLock(projectDir: string, callback: () => Promise): Promise;