import { dropIDBStoreWithMemFallback, newIDBStoreWithMemFallback } from "./kv/idb-store-with-mem-fallback.js";
import { dropMemStore, MemStore } from "./kv/mem-store.js";
function getKVStoreProvider(lc, kvStore) {
  switch (kvStore) {
    case "idb":
    case void 0:
      return {
        create: (name) => newIDBStoreWithMemFallback(lc, name),
        drop: dropIDBStoreWithMemFallback
      };
    case "mem":
      return {
        create: (name) => new MemStore(name),
        drop: (name) => dropMemStore(name)
      };
    default:
      return kvStore;
  }
}
export {
  getKVStoreProvider
};
//# sourceMappingURL=get-kv-store-provider.js.map
