import { Str } from './str'; export declare class StringReplacer { /** * Stores the Str instance. */ private readonly strings; /** * Stores the "search" value. */ private readonly searchValue; /** * Determine whether to replace all occurences. */ private shouldReplaceAll; /** * Determine whether to replace the last occurence. */ private shouldReplaceLast; /** * Create a new string replacer instance. */ constructor(Strings: Str, searchValue: string | RegExp); /** * Replace all occurences of the search value. * * @returns {this} */ all(): this; /** * Replace the last occurence of the search value. * * @returns {this} */ last(): this; /** * Replace the search value with the given `replaceValue`. * * @param replaceValue * * @returns {Str} */ with(replaceValue: string): Str; with(replaceValue: string): Str; with(replacer: (substring: string, ...args: any[]) => string): Str; }