import type { LearningsBuffer, LearningEntry } from '../../types/index.js';
/** Read the learnings buffer for a project (best-effort, returns empty on miss). */
export declare function readBuffer(projectPath: string): Promise<LearningsBuffer>;
/**
 * Append an entry to the learnings buffer with exclusive-lock retry.
 * Uses 'wx' flag on a lock file with jitter-backoff (3 retries, 100ms each).
 */
export declare function appendToBuffer(projectPath: string, entry: LearningEntry): Promise<void>;
/**
 * Flush all entries in the learnings buffer to MEMORY.md.
 * Appends under an existing section or creates a new one.
 * Clears the buffer after successful write.
 * Returns the number of entries flushed.
 */
export declare function flushBuffer(projectPath: string): Promise<number>;
//# sourceMappingURL=learnings-buffer.d.ts.map