var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: !0 });
}, __copyProps = (to, from, except, desc) => {
  if (from && typeof from == "object" || typeof from == "function")
    for (let key of __getOwnPropNames(from))
      !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
var image_exports = {};
__export(image_exports, {
  getImageAspectRatio: () => getImageAspectRatio
});
module.exports = __toCommonJS(image_exports);
var import_tamagui = require("tamagui"), getImageAspectRatio = async function(imageUrl) {
  return new Promise(function(resolve, reject) {
    import_tamagui.Image.getSize(imageUrl, function(w, h) {
      return resolve(w / h);
    }, function(error) {
      return reject(error);
    });
  });
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  getImageAspectRatio
});
//# sourceMappingURL=image.js.map
