import type { FrameworkMemoryBackend, FrameworkMemoryEntry, FrameworkMemoryQuery, FrameworkMemoryStoreInput } from './types.js';
/**
 * Tier 1: File-based memory backend.
 *
 * Stores entries as JSON in `.aperant/memory/entries.json`.
 * Pure Node.js — no native dependencies. Suitable for CLI users
 * who run tasks occasionally. Uses substring matching for search.
 */
export declare class FileMemoryBackend implements FrameworkMemoryBackend {
    readonly tier: "file";
    private readonly filePath;
    private readonly dirPath;
    /** Simple write lock to handle concurrent operations. */
    private writeLock;
    constructor(baseDir: string);
    store(entry: FrameworkMemoryStoreInput): Promise<string>;
    retrieve(query: FrameworkMemoryQuery): Promise<FrameworkMemoryEntry[]>;
    delete(id: string): Promise<void>;
    deprecate(id: string): Promise<void>;
    close(): Promise<void>;
    private loadEntries;
    private saveEntries;
    /**
     * Simple write lock to serialize mutations.
     * Prevents concurrent store/delete/deprecate from clobbering each other.
     */
    private withLock;
}
//# sourceMappingURL=file-backend.d.ts.map