/**
 * PersistentStore — generic JSON file persistence with atomic writes.
 *
 * Handles lazy loading, atomic writes via a temporary file, and ensures the
 * directory hierarchy exists. Errors are logged but not re‑thrown so that the
 * caller can decide how to recover.
 */
export declare class PersistentStore<T extends Record<string, unknown>> {
    private readonly filePath;
    private readonly dir;
    constructor(filePath: string);
    /** Load JSON data from disk, or return null if the file does not exist or is invalid. */
    load(): Promise<T | null>;
    /** Atomically persist data to disk. */
    persist(data: T): Promise<void>;
}
//# sourceMappingURL=persistent-store.d.ts.map