/**
* @name highlightText
* @namespace shared.string
* @type Function
* @platform js
* @platform node
* @status stable
*
* This function allows you to highlight some text in a string or in an HTMLElement
*
* @param {String|HTMLElement} ctx The string or HTMLElement in which to highlight the text
* @param {String|String[]|RegExp} search The text to highlight
* @return {String|HTMLElement} The processed string or HTMLElement
*
* @snippet __highlightText($1, $2)
*
* @todo tests
*
* @example php
* import { __highlightText } from '@lotsof/sugar/string';
* __highlightText('Hello world', 'llo'); // => Hello world
*
* @see https://markjs.io
* @since 1.0.0
* @author Olivier Bossel (https://lotsof.dev)
*/
export type THighlightTextSettings = {
class: string;
};
export default function __highlightText(ctx: T, search: string | string[] | typeof RegExp, settings?: Partial): T;