import { LibQCStorage } from './index'; /** * Web storage implementation of LibQCStorage using localStorage * * Stores and retrieves serialized values. Encryption is handled at the * state layer (see state.ts) rather than at the storage level. */ export declare class WebStorage implements LibQCStorage { private prefix; private storage; constructor(prefix?: string); /** * Get a value from storage based on a key * * @param key The key of the stored value * @returns The value in storage */ get(key: string): Promise; /** * Puts a new value into storage * * @param key The key to store the value against */ put(key: string, value: V): Promise; /** * Delete a value from storage * * @param key The key of the stored value */ delete(key: string): Promise; /** * Checks if storage has a stored value * * @param key The key of the stored value * @returns True if there is a value stored at the key and false otherwise */ has(key: string): Promise; /** * Clears all stored data * */ clear(): Promise; /** * Builds a storage key with a prefix * * @param key The key to prefix * @returns A storage key */ private getKey; }