import type { Item } from '../../item'; import type { AutosuggestHighlightable } from './types'; /** * Check whether item can be highlighted * @param suggestion Suggestion object * @param target item element * @returns highlightable */ export declare const itemHighlightable: AutosuggestHighlightable; /** * Replace forbidden characters in regular expressions * @param string A string to process * @returns clean string */ export declare const escapeRegExp: (string?: string) => string; /** * A basic regexp matching pattern to replace text based on string input. * @param text Value to test against * @param query The query * @param [pattern=$1] Provide a pattern to replace string * @returns innerHTML The text that can be used as innerHTML */ export declare const queryWordSelect: (text: string, query?: string, pattern?: string) => string; /** * Update element content * @param el to update content * @param query to search * @param label text to test against * @param value text to use as fallback * @return {void} */ export declare const updateElementContent: (el: Item, query: string, label: string, value: string | number) => void;