export var QueryType;
(function (QueryType) {
    QueryType[QueryType["id"] = 0] = "id";
    QueryType[QueryType["ids"] = 1] = "ids";
    QueryType[QueryType["default"] = 2] = "default";
    QueryType[QueryType["alias"] = 3] = "alias";
    QueryType[QueryType["aggregates"] = 4] = "aggregates";
})(QueryType || (QueryType = {}));
var QueryDefType;
(function (QueryDefType) {
    QueryDefType[QueryDefType["Edge"] = 1] = "Edge";
    QueryDefType[QueryDefType["Reference"] = 2] = "Reference";
    QueryDefType[QueryDefType["References"] = 3] = "References";
    QueryDefType[QueryDefType["Root"] = 4] = "Root";
})(QueryDefType || (QueryDefType = {}));
export const isRefDef = (def) => {
    return (def.type === QueryDefType.Reference || def.type === QueryDefType.References);
};
export { QueryDefType };
export const isAlias = (id) => {
    if (id instanceof Uint32Array) {
        return false;
    }
    return (typeof id === 'object' &&
        id !== null &&
        !Array.isArray(id) &&
        !ArrayBuffer.isView(id));
};
export const READ_ID = 255;
export const READ_EDGE = 252;
export const READ_REFERENCES = 253;
export const READ_REFERENCE = 254;
//# sourceMappingURL=types.js.map