/**
* Removes whitespace from the right end of a string.
* \n
* Overloaded. str can be one string or a list of strings.
* @param str Input string.
* @returns The modified string.
*/exportdeclarefunctionstrTrimR(str: string | string[]): string | string[];