import * as React from 'react'; import type { TagFunction } from './index'; /** * Replaces matching patterns in a string with markers. * * @param content The content to parse and mark. * * @param rule The pattern to search and replace in the content. * * @param tag A function that takes the match string and must return * a React component or a string. The value returned by that function will * replace the term in the output. * * @param matchIndex The index of the match to use when marking with * a RegExp. If not provided, will use the last non-null match available. * * @returns An array of strings and components, * similar to the original content but where each matching pattern has been * replaced by a marking component. */ export declare function markRegExp(content: string, rule: RegExp, tag: TagFunction, matchIndex?: number): React.ReactNode[];