import type { SearchInfo } from './SearchInterface'; import type { ItemOf } from '../../type.utils'; /** * Generates a tokenize method. * When used for tokenizing a search query instead of the indexing, the fieldName is undefined. */ export declare const tokenizer: (info: SearchInfo) => (str: string, fieldName?: string) => string[]; /** * Tokenizer used for the query entered by the user (based on "queryParser" info) */ export declare const tokenizeQuery: (str: string, info: SearchInfo["queryParser"]) => string[]; /** * Tokenizer used for indexing (based on "fields" specification) */ export declare const tokenizeIndex: (str: string, info: ItemOf, stopWords?: string[]) => string[]; /** * remove from a string all the words that are included in a stopwords list */ export declare function filterStopWords(input: string, stopWords?: string[]): string;