import React, { CSSProperties } from 'react'; import { FlowindColor } from '../../styles'; import { TextProps } from '../text/text'; export interface HighlightProps extends TextProps { /** Substring or an array of substrings to highlight in children */ highlight: string | string[]; /** Color from theme that is used for highlighting */ highlightColor?: FlowindColor; /** Styles applied to highlighted part */ highlightStyles?: CSSProperties; /** Full string part of which will be highlighted */ children: string; } export declare const _Highlight: React.ForwardRefExoticComponent>; export declare const Highlight: ((props: import("../../utils/create-polymorphic-component").PolymorphicComponentProps) => React.ReactElement>) & Omit, "component" | keyof HighlightProps> & { ref?: any; }) | (HighlightProps & { component?: React.ElementType; })>, never> & Record;