import { computeTextAlternative } from "./accessible-name-and-description.js";
import { hasAnyConcreteRoles } from "./util.js";
function prohibitsNaming(node) {
  return hasAnyConcreteRoles(node, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
}
function computeAccessibleName(root) {
  var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
  if (prohibitsNaming(root)) {
    return "";
  }
  return computeTextAlternative(root, options);
}
export {
  computeAccessibleName
};
//# sourceMappingURL=accessible-name.js.map
