"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/types.ts
var types_exports = {};
__export(types_exports, {
  QueryFragmentType: () => QueryFragmentType,
  isArrayType: () => isArrayType,
  isEntityType: () => isEntityType,
  isNumberType: () => isNumberType,
  isOptionalType: () => isOptionalType
});
module.exports = __toCommonJS(types_exports);
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);
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  QueryFragmentType,
  isArrayType,
  isEntityType,
  isNumberType,
  isOptionalType
});
//# sourceMappingURL=types.cjs.map