import { StorageAdapter } from './storage_adapter'; /** * Adapter for managing data persistence using localStorage. * This adapter extends the base `StorageAdapter` class and provides * methods to interact with the localStorage API. */ export declare class LocalStorageAdapter extends StorageAdapter { private readonly storageKey; /** * Creates an instance of LocalStorageAdapter. * * @param {string} [storageKey='cache-local-storage'] - The key used to store data in localStorage. */ constructor(storageKey?: string); /** * Connects the adapter by initializing the localStorage space if it doesn't already exist. * * @returns {Promise} A promise that resolves once the connection is ready. */ connect(): Promise; /** * Adds a key-value pair to the localStorage data. * * @param {string} key - The key associated with the value. * @param {unknown} value - The value to store. * @returns {Promise} A promise that resolves once the data is stored. */ add(key: string, value: unknown): Promise; /** * Retrieves a value associated with a given key from localStorage. * * @param {string} key - The key to retrieve. * @returns {Promise} A promise resolving to the value, or null if the key doesn't exist. */ get(key: string): Promise; /** * Retrieves all data stored in localStorage under the adapter's key. * * @returns {Promise>} A promise resolving to an object containing all stored data. */ getAll(): Promise>; /** * Deletes a specific key and its associated value from localStorage. * * @param {string} key - The key to delete. * @returns {Promise} A promise that resolves once the key is deleted. */ delete(key: string): Promise; /** * Clears all data stored under the adapter's key in localStorage. * * @returns {Promise} A promise that resolves once the data is cleared. */ clear(): Promise; /** * Sets the data in localStorage under the adapter's key. * * @private * @param {Record} data - The data to store. */ private _setStorageData; }