/** * Copyright (c) React Native Community. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import { EmptyStorageModel, IStorageBackend, StorageOptions, } from '@react-native-community/async-storage'; export default class LegacyAsyncStorage implements IStorageBackend { private readonly _asyncStorageNativeModule; getSingle( key: K, opts?: StorageOptions, ): Promise; setSingle( key: K, value: T[K], opts?: StorageOptions, ): Promise; getMany( keys: Array, opts?: StorageOptions, ): Promise<{[k in K]: T[k] | null}>; setMany( values: Array<{[k in K]: T[k]}>, opts?: StorageOptions, ): Promise; removeSingle(key: keyof T, opts?: StorageOptions): Promise; removeMany(keys: Array, opts?: StorageOptions): Promise; getKeys(opts?: StorageOptions): Promise>; dropStorage(opts?: StorageOptions): Promise; }