1interface String { 2 /** 3 * Replace all instances of a substring in a string, using a regular expression or search string. 4 * @param searchValue A string to search for. 5 * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string. 6 */ 7 replaceAll(searchValue: string | RegExp, replaceValue: string): string; 8 9 /** 10 * Replace all instances of a substring in a string, using a regular expression or search string. 11 * @param searchValue A string to search for. 12 * @param replacer A function that returns the replacement text. 13 */ 14 replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; 15} 16