var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var storages_exports = {};
__export(storages_exports, {
  default: () => storages_default,
  getStorageConfig: () => getStorageConfig
});
module.exports = __toCommonJS(storages_exports);
var import_server = require("@tego/server");
var import_constants = require("../constants");
var import_ali_oss = __toESM(require("./ali-oss"));
var import_local = __toESM(require("./local"));
var import_s3 = __toESM(require("./s3"));
var import_tx_cos = __toESM(require("./tx-cos"));
const storageTypes = new import_server.Registry();
storageTypes.register(import_constants.STORAGE_TYPE_LOCAL, import_local.default);
storageTypes.register(import_constants.STORAGE_TYPE_ALI_OSS, import_ali_oss.default);
storageTypes.register(import_constants.STORAGE_TYPE_S3, import_s3.default);
storageTypes.register(import_constants.STORAGE_TYPE_TX_COS, import_tx_cos.default);
function getStorageConfig(key) {
  return storageTypes.get(key);
}
var storages_default = storageTypes;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  getStorageConfig
});
