/**
 * PersistentStore — generic JSON file persistence with atomic writes.
 *
 * Handles lazy loading, atomic writes via a temporary file, and ensures the
 * directory hierarchy exists. Invalid JSON and write failures are thrown so
 * callers do not mistake corrupted state for an empty store or persisted write.
 */
export declare class PersistentStore<T extends Record<string, unknown>> {
    private readonly filePath;
    private readonly dir;
    private readonly inMemory;
    private memoryData;
    constructor(filePath: string);
    /** Load JSON data from disk, or return null if the file does not exist. */
    load(): Promise<T | null>;
    /** Atomically persist data to disk. */
    persist(data: T): Promise<void>;
}
//# sourceMappingURL=persistent-store.d.ts.map