import { ModelInstanceMetadata, OpType, PaginationInput, PersistentModel, QueryOne } from '../../types'; declare class AsyncStorageDatabase { /** * Maps storeNames to a map of ulid->id */ private _collectionInMemoryIndex; private storage; private getCollectionIndex; private getMonotonicFactory; init(): Promise; save(item: T, storeName: string): Promise; batchSave(storeName: string, items: ModelInstanceMetadata[]): Promise<[T, OpType][]>; get(id: string, storeName: string): Promise; getOne(firstOrLast: QueryOne, storeName: string): Promise; /** * This function gets all the records stored in async storage for a particular storeName * It then loads all the records for that filtered set of keys using multiGet() */ getAll(storeName: string, pagination?: PaginationInput): Promise; delete(id: string, storeName: string): Promise; /** * Clear the AsyncStorage of all DataStore entries */ clear(): Promise; private getKeyForItem; private getLegacyKeyForItem; private getKeyPrefixForStoreItems; } export default AsyncStorageDatabase;