import type { SessionMemoryRecord } from './memory-types.js';
/**
 * File-based store for cross-session memory records.
 *
 * One JSON file per session in `${YAGR_HOME}/memories/`.
 * The store is intentionally simple: no indexing, just sorted directory reads.
 * Memory files are small (< 1 KB each) so full scans are fast.
 */
export declare class MemoryStore {
    private readonly memoriesDir;
    constructor(memoriesDir: string);
    save(record: SessionMemoryRecord): void;
    delete(sessionId: string): void;
    get(sessionId: string): SessionMemoryRecord | undefined;
    /** Returns records sorted newest-first, up to `limit`. */
    list(limit?: number): SessionMemoryRecord[];
    /**
     * Build a compact context block for injection into the system prompt.
     * Returns an empty string if no memories exist yet.
     *
     * Format (each record on one line, newest first):
     *   [YYYY-MM-DD] "Title" — <summary> Tools: x, y.
     */
    buildContextBlock(limit?: number): string;
    private recordPath;
    private ensureDir;
}
//# sourceMappingURL=memory-store.d.ts.map