/** * Interface to persist values to an asynchronous storage mechanism. */ export interface AsyncStorage { /** * Gets a value from storage for the given key. * * @param key - The key under which the value is stored. * * @returns The stored value parsed from JSON, or undefined if not set. */ get(key: string): Promise; /** * Sets a value in storage for the given key. * * @param key - The key under which to store the value. * @param value - The value to store. * * @returns Nothing. */ set(key: string, value: unknown): Promise; /** * Removes a value from storage for the given key. * * @param key - The key of the value to remove. * * @returns Nothing. */ remove(key: string): Promise; /** * Removes all values from storage. * * @returns Nothing. */ clear(): Promise; /** * Get the name of the key at a given index. * * @param index - The index number to get the key name for. * * @returns The name of the key at the index. */ key(index: number): Promise; /** * Finds a list of all keys in storage. * * @returns The list of keys in storage. */ keys(): Promise; /** * Get the number of items in storage. * * @returns The storage item count. */ size(): Promise; } //# sourceMappingURL=AsyncStorage.d.ts.map