import type { EditorView } from '@codemirror/view'; import type { Tree } from '@lezer/common'; import type { FilterFieldProps } from '../../FilterField.types.js'; import type { NumberFormatParser } from '../../parser/getNumberParser.js'; import type { FilterFieldTree } from '../../types/tree-nodes.js'; import type { FilterFieldCustomTypes } from '../../types/validation.js'; import type { InternalValidatorMap } from '../../utils/validation-utils/normalize-validator-map.js'; /** * Used parser version * @internal */ export declare const parserVersion = "004"; /** * Iterate over the parsed document and convert the lezer tree to an object. * @internal */ export declare function convertLezerTree({ tree, view, numberParser, doc, internalValidatorMap, customTypes, parserConfig, }: { tree: Tree; numberParser: NumberFormatParser; view?: EditorView; doc?: string; internalValidatorMap?: InternalValidatorMap; customTypes?: FilterFieldCustomTypes; parserConfig?: FilterFieldProps['parserConfig']; }): { tree?: FilterFieldTree; isValid: boolean; isValidSearch: boolean; };