import { EditorState } from '@codemirror/state'; import type { FilterFieldSuggestionProps } from '../suggestions/Suggestion.types.js'; import type { FilterFieldSuggestionsContext } from '../suggestions/suggestions-extension.js'; import type { FilterFieldNodeBase } from '../types/tree-nodes.js'; /** @internal */ export declare function getSuggestionTransaction(suggestionValue: string, range: FilterFieldNodeBase['range'] | undefined, shouldEscapeSuggestion: boolean | undefined, trailing: string | undefined, insertionStrategy: FilterFieldSuggestionProps['insertionStrategy'], cursorBeforeTrailing: boolean | undefined, suggestionsContext: FilterFieldSuggestionsContext, editorState: EditorState): { changes: { insert: string; from: number; to: number; }; selection: { anchor: number; }; }; /** * Check if the next node after cursor position contains an opening bracket. * @internal */ export declare function _isFollowedByOpeningBracket(editorState: EditorState, head: number): boolean; /** * Check whether the node that is be entered at the given position is the last value in a list. * @internal */ export declare function insertionIsLastListValue(cursorPosition: number, editorState: EditorState): boolean;