var a = Object.defineProperty;
var o = (n, t) => a(n, "name", { value: t, configurable: !0 });
const p = /^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i, i = "application/proto", s = "application/json", l = "application/connect+proto", y = "application/connect+json";
function u(n) {
  const t = n?.match(p);
  if (!t)
    return;
  const c = !!t[1], e = !!t[3];
  return { stream: c, binary: e };
}
o(u, "parseContentType");
export {
  p as contentTypeRegExp,
  y as contentTypeStreamJson,
  l as contentTypeStreamProto,
  s as contentTypeUnaryJson,
  i as contentTypeUnaryProto,
  u as parseContentType
};
