import { PolymorphicFactory, RaikouColor, RaikouTheme } from '../../core'; import { TextProps, TextStylesNames, TextVariant } from '../Text'; export interface HighlightProps extends Omit { /** Substring or an array of substrings to highlight in `children` */ highlight: string | string[]; /** Key of `theme.colors` or any valid CSS color, passed to `Mark` component `color` prop, `yellow` by default */ color?: RaikouColor | string; /** Styles applied to `mark` elements */ highlightStyles?: React.CSSProperties | ((theme: RaikouTheme) => React.CSSProperties); /** String parts of which must be highlighted */ children: string; } export type HighlightFactory = PolymorphicFactory<{ props: HighlightProps; defaultRef: HTMLDivElement; defaultComponent: 'div'; stylesNames: TextStylesNames; variant: TextVariant; }>; export declare const Highlight: ((props: import("../../core").PolymorphicComponentProps) => React.ReactElement) & Omit, "component" | keyof HighlightProps> & { ref?: any; renderRoot?: (props: any) => any; }) | (HighlightProps & { component: React.ElementType; renderRoot?: (props: Record) => any; })>, never> & import("../../core/factory/factory").ThemeExtend<{ props: HighlightProps; defaultRef: HTMLDivElement; defaultComponent: "div"; stylesNames: TextStylesNames; variant: TextVariant; }> & import("../../core/factory/factory").ComponentClasses<{ props: HighlightProps; defaultRef: HTMLDivElement; defaultComponent: "div"; stylesNames: TextStylesNames; variant: TextVariant; }> & import("../../core/factory/polymorphic-factory").PolymorphicComponentWithProps<{ props: HighlightProps; defaultRef: HTMLDivElement; defaultComponent: "div"; stylesNames: TextStylesNames; variant: TextVariant; }> & Record;