"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Utils
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenericInstanceFilter = exports.GenericInstanceFilterRuleValue = void 0;
/** @beta */
// eslint-disable-next-line @typescript-eslint/no-redeclare
var GenericInstanceFilterRuleValue;
(function (GenericInstanceFilterRuleValue) {
    /** Checks if supplied value is [[GenericInstanceFilterRuleValue.Point2d]] like. Returns `true` for `Point2d` and [[GenericInstanceFilterRuleValue.Point3d]]. */
    function isPoint2d(value) {
        return value.x !== undefined && value.y !== undefined;
    }
    GenericInstanceFilterRuleValue.isPoint2d = isPoint2d;
    /** Checks if supplied value is [[GenericInstanceFilterRuleValue.Point3d]] like. */
    function isPoint3d(value) {
        return isPoint2d(value) && value.z !== undefined;
    }
    GenericInstanceFilterRuleValue.isPoint3d = isPoint3d;
    /** Checks if supplied value is [[GenericInstanceFilterRuleValue.InstanceKey]] like. */
    function isInstanceKey(value) {
        return value !== undefined && value.className !== undefined;
    }
    GenericInstanceFilterRuleValue.isInstanceKey = isInstanceKey;
})(GenericInstanceFilterRuleValue || (exports.GenericInstanceFilterRuleValue = GenericInstanceFilterRuleValue = {}));
/** @beta */
var GenericInstanceFilter;
(function (GenericInstanceFilter) {
    /**
     * Function that checks if supplied object is [[GenericInstanceFilterRuleGroup]].
     * @beta
     */
    function isFilterRuleGroup(obj) {
        return obj.rules !== undefined;
    }
    GenericInstanceFilter.isFilterRuleGroup = isFilterRuleGroup;
})(GenericInstanceFilter || (exports.GenericInstanceFilter = GenericInstanceFilter = {}));
//# sourceMappingURL=GenericInstanceFilter.js.map