// src/types.ts
var QueryFragmentType = /* @__PURE__ */ ((QueryFragmentType2) => {
  QueryFragmentType2[QueryFragmentType2["Has"] = 0] = "Has";
  QueryFragmentType2[QueryFragmentType2["HasValue"] = 1] = "HasValue";
  QueryFragmentType2[QueryFragmentType2["Not"] = 2] = "Not";
  QueryFragmentType2[QueryFragmentType2["NotValue"] = 3] = "NotValue";
  QueryFragmentType2[QueryFragmentType2["ProxyRead"] = 4] = "ProxyRead";
  QueryFragmentType2[QueryFragmentType2["ProxyExpand"] = 5] = "ProxyExpand";
  return QueryFragmentType2;
})(QueryFragmentType || {});
function isOptionalType(t) {
  return [
    2 /* OptionalNumber */,
    4 /* OptionalString */,
    10 /* OptionalEntity */,
    12 /* OptionalEntityArray */,
    6 /* OptionalNumberArray */,
    8 /* OptionalStringArray */
  ].includes(t);
}
function isArrayType(t) {
  return [
    5 /* NumberArray */,
    6 /* OptionalNumberArray */,
    7 /* StringArray */,
    8 /* OptionalStringArray */,
    11 /* EntityArray */,
    12 /* OptionalEntityArray */
  ].includes(t);
}
function isNumberType(t) {
  return [1 /* Number */, 2 /* OptionalNumber */].includes(t);
}
function isEntityType(t) {
  return [9 /* Entity */, 10 /* OptionalEntity */].includes(t);
}
export {
  QueryFragmentType,
  isArrayType,
  isEntityType,
  isNumberType,
  isOptionalType
};
//# sourceMappingURL=types.js.map