import * as React from 'react';
import * as PropTypes from 'prop-types';
import './MatchText.scss';
export interface IProps {
    text: string | number;
    searchString: string;
    matchTypes?: ReadonlyArray<'CaseSensitive' | 'WholeWord' | 'Regex'>;
}
/**
 * Performs a case-insensitive search against an input string and highlights
 * the matches.
 *
 * Matches can be selected with css using `.ui-128__match-text--match`.
 * "Unmatched" text can also be selected using `.ui-128__match-text--unmatched`.
 */
declare function MatchText({ text, searchString, matchTypes }: IProps): JSX.Element;
declare namespace MatchText {
    var propTypes: {
        /**
         * The text string to be searched.
         */
        text: PropTypes.Validator<React.ReactText>;
        /**
         * The search string to search for.
         */
        searchString: PropTypes.Validator<string>;
        /**
         * The modes to match on, array of 'CaseSensitive', 'Regex', and 'WholeWord'.
         */
        matchTypes: PropTypes.Requireable<(string | null)[]>;
    };
    var defaultProps: {
        matchTypes: never[];
    };
}
export default MatchText;
