UNPKG

nice-ui

Version:

React design system, components, and utilities

8 lines (7 loc) 360 B
type PlainText = string; type Highlight = [string]; type HighlightedText = (PlainText | Highlight)[]; export declare const normalize: (text: HighlightedText) => HighlightedText; export declare const highlight: (text: string, query: string[]) => HighlightedText; export declare const highlightFuzzy: (text: string, token: string) => HighlightedText; export {};