import { IStoreService } from "@connext/types" ; import { StoreService } from "./store" ; import { StoreOptions , IAsyncStorage } from "./types" ; import { WrappedAsyncStorage } from "./wrappers/asyncStorage" ; export { IBackupService , IStoreService } from "@connext/types" ; export const getAsyncStore = ( storage , opts = { } ) : IStoreService => new StoreService ( new WrappedAsyncStorage ( storage , opts . prefix ) , opts . backupService , opts . logger ) ;