import type { Store } from '../../types/resource-id-resolver.types.js'; /** * File-based implementation of the Store interface. * Persists data to a JSON file on the filesystem. * * @template T - The type of data to be stored * * @example * const store = new FileStore('/path/to/store.json'); * await store.write({ key: 'value' }); * const data = await store.read(); * await store.flush(); // Deletes the file */ export declare class FileStore implements Store { #private; /** * Creates a new file-based store * * @param filePath - Absolute path to the JSON file to use for storage */ constructor(filePath: string); /** * Writes data to the file in JSON format * * @param index - Data to store * @throws {Error} If writing to the file fails */ write(index: T): void; /** * Reads and parses data from the file * * @returns The stored data, or null if file doesn't exist * @throws {Error} If reading or parsing the file fails */ read(): T | undefined; /** * Deletes the storage file if it exists * * @throws {Error} If deleting the file fails */ flush(): void; } //# sourceMappingURL=file-store.d.ts.map