import m from "./index-metadata.js";
import o from "./index-matchesEntirely.js";
import u from "./index-getNumberType.js";
function b(e, n, r) {
  if (n = n || {}, r = new m(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
    return u(e, n, r.metadata) !== void 0;
  var l = n.v2 ? e.nationalNumber : e.phone;
  return o(l, r.nationalNumberPattern());
}
export {
  b as default
};
