import type { FilterFieldSuggestion } from '../suggestions/Suggestion.types.js'; import type { FilterFieldSuggestionGroup } from '../suggestions/SuggestionGroup.types.js'; import type { FilterFieldFlatNode } from '../types/conversion-utils.js'; import type { FilterFieldBigIntNode, FilterFieldBooleanNode, FilterFieldComparisonOperatorNode, FilterFieldDurationNode, FilterFieldErrorNode, FilterFieldExistsOperatorNode, FilterFieldGroupNode, FilterFieldInclusionOperatorNode, FilterFieldJSONPathNode, FilterFieldKeyNode, FilterFieldLeafNode, FilterFieldListNode, FilterFieldNode, FilterFieldNumberNode, FilterFieldSearchOperatorNode, FilterFieldStatementNode, FilterFieldStringNode, FilterFieldVariableNode } from '../types/tree-nodes.js'; /** * Check whether the given node is a filter field JSONPath node * @internal */ export declare function isFilterFieldJSONPathNode(node: unknown): node is FilterFieldJSONPathNode; /** * Check whether the given node is a filter field String node * @internal */ export declare function isFilterFieldStringNode(node: unknown): node is FilterFieldStringNode; /** * Check whether the given node is a filter field Variable node * @internal */ export declare function isFilterFieldVariableNode(node: unknown): node is FilterFieldVariableNode; /** * Check whether the given node is a filter field Number node * @internal */ export declare function isFilterFieldNumberNode(node: unknown): node is FilterFieldNumberNode; /** * Check whether the given node is a filter field BigInt node * @internal */ export declare function isFilterFieldBigIntNode(node: unknown): node is FilterFieldBigIntNode; /** * Check whether the given node is a filter field Boolean node * @internal */ export declare function isFilterFieldBooleanNode(node: unknown): node is FilterFieldBooleanNode; /** * Check whether the given node is a filter field Duration node * @internal */ export declare function isFilterFieldDurationNode(node: unknown): node is FilterFieldDurationNode; /** * Check whether the given node is a filter field ExistsOperator node * @internal */ export declare function isFilterFieldExistsOperatorNode(node: unknown): node is FilterFieldExistsOperatorNode; /** * Check whether the given node is a filter field SearchOperator node * @internal */ export declare function isFilterFieldSearchOperatorNode(node: unknown): node is FilterFieldSearchOperatorNode; /** * Check whether the given node is a filter field InclusionOperator node * @internal */ export declare function isFilterFieldInclusionOperatorNode(node: unknown): node is FilterFieldInclusionOperatorNode; /** * Check whether the given node is a filter field Error node * @internal */ export declare function isFilterFieldErrorNode(node: unknown): node is FilterFieldErrorNode; /** * Check whether the given node is a filter field key node. * @internal */ export declare function isFilterFieldKeyNode(node: unknown): node is FilterFieldKeyNode; /** * Check whether the given node is a filter field ComparisonOperator node. * @internal */ export declare function isFilterFieldComparisonOperatorNode(node: unknown): node is FilterFieldComparisonOperatorNode; /** * Check whether the given node is a filter field group node. * @internal */ export declare function isFilterFieldGroupNode(node: unknown): node is FilterFieldGroupNode; /** * Check whether the given node is a filter field statement node. * @internal */ export declare function isFilterFieldStatementNode(node: unknown): node is FilterFieldStatementNode; /** * Check whether the given node is a filter field list node. * @public */ export declare function isFilterFieldListNode(node: unknown): node is FilterFieldListNode; /** * Check if the given token is a node holding a value. * Not necessarily a leaf node. E.g. a List has a value, * but the value consists of other tokens. * @internal */ export declare function isFilterFieldValueNode(node: unknown): node is FilterFieldLeafNode; /** * Check whether the given node is a filter field leaf node. * @public */ export declare function isFilterFieldLeafNode(node: unknown): node is FilterFieldLeafNode; /** * Check if the given token is a filter value. * @internal */ export declare function isFilterValue(token: FilterFieldLeafNode | FilterFieldListNode): boolean; /** * Returns whether the current operator is valid for a position operator (start-with / ends-with / contains). * Only equals, not equals, and ends-with/not-ends-with (will be converted to contains/not-contains) are valid values. * @internal */ export declare function isValidPositionOperator(node: FilterFieldStatementNode): boolean; /** * Returns whether the current operator is a a LogicalOperator. Either it has the type LogicalOperator or it has the * type Error and 'OR' or 'AND' as value (if the LogicalOperator is in an invalid position or 'OR' is used in the basic syntax). * @internal */ export declare function isLogicalOperator(node: FilterFieldFlatNode | FilterFieldNode): boolean; /** * Returns whether the given value is a filter field suggestion group. * @internal */ export declare function isFilterFieldSuggestionGroup(value: unknown): value is FilterFieldSuggestionGroup; /** * Returns whether the given value is a filter field suggestion. * @internal */ export declare function isFilterFieldSuggestion(value: unknown): value is FilterFieldSuggestion;