You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
517 B

export type NormalizerFn = (textToNormalize: string) => string;
export type TextMatch = string | RegExp;
export type TextMatchOptions = {
exact?: boolean;
normalizer?: NormalizerFn;
};
export declare function matches(matcher: TextMatch, text: string, normalizer?: NormalizerFn, exact?: boolean): boolean;
type NormalizerConfig = {
trim?: boolean;
collapseWhitespace?: boolean;
};
export declare function getDefaultNormalizer({ trim, collapseWhitespace, }?: NormalizerConfig): NormalizerFn;
export {};