"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const attrAccept = require("./attrAccept.cjs");
const resolveAcceptingSingleKind = async (fileOptions, fileKind) => {
  const acceptMimeTypes = fileKind.acceptMimeTypes;
  if (!attrAccept.attrAccept(fileOptions.file, acceptMimeTypes)) {
    return void 0;
  }
  const isFileAccepted = fileKind.acceptFile === void 0 ? true : await fileKind.acceptFile(fileOptions);
  if (!isFileAccepted) {
    return void 0;
  }
  return isFileAccepted;
};
exports.resolveAcceptingSingleKind = resolveAcceptingSingleKind;
//# sourceMappingURL=resolveAccept.cjs.map
