"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAst = isAst; exports.isAstWithMeta = isAstWithMeta; /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions // eslint-disable-next-line @typescript-eslint/consistent-type-definitions function isAstWithMeta(value) { return typeof (value === null || value === void 0 ? void 0 : value.node) === 'object'; } function isAst(value) { return typeof value === 'object' && (value === null || value === void 0 ? void 0 : value.type) === 'expression'; }