export type HighlightSegment = { text: string; highlight: boolean; }; /** * Splits the text into segments based on the keyword and marks which segments should be highlighted. * - If the keyword is empty or not found, returns a single non-highlighted segment. */ export declare function highlightText(text: string, keyword?: string): HighlightSegment[];