import { TransformSuggestionToMatchFilter } from '../commonTypes'; export declare const FILTER_RULES: { includes: "includes"; smart: "smart"; startsWith: "startsWith"; }; /** * Normalizes string for later comparison * @param {string} str - Unnormalized string * @param {TransformSuggestionToMatchFilter | undefined} transformSuggestionToMatchFilter - Eliminates differences between suggestions from filtered list and value in input * * @returns {string} Normalized string */ export declare const normalizeString: (str: string, transformSuggestionToMatchFilter?: TransformSuggestionToMatchFilter | undefined) => string; export declare const filterByIncludes: (suggestion: string, value: string) => boolean; export declare const filterByStartsWith: (suggestion: string, value: string) => boolean; export declare const escapeRegexp: (string: string) => string; export declare const getIsSentenceIncludingWords: (sentence: string, words: string) => boolean; /** * Filters suggestions by a given Rule * @param {string} suggestion - Suggestion from list being compared * @param {string} value - Value in input * @param {'includes' | 'includes' | 'startsWith' | undefined} filterRule - Rule by which filtering occurs * @param {TransformSuggestionToMatchFilter | undefined} transformSuggestionToMatchFilter - Eliminates differences between suggestions from filtered list and value in input * * @returns {boolean} Suggestion passed filter? */ export declare const filterSuggestionByRule: (suggestion: string, value: string, filterRule?: "includes" | "startsWith" | "smart" | undefined, transformSuggestionToMatchFilter?: TransformSuggestionToMatchFilter | undefined) => boolean;