/** * Trim whitespace (including full-width spaces) from both ends of a string. * @param {string|null|undefined} str String to trim. * @param {boolean} toLower If true, the trimmed string is converted to lowercase. Default is false. * @return {string|null|undefined} Trimmed string, or null/undefined if input is null/undefined. * @throws {TypeError} If the value is not a string, null, or undefined. * @example * ```js * import {utils} from 'metronic-extension'; * * utils.trim(' foo bar ');// -> 'foo bar' * utils.trim('\n\n\nfoo bar\n\r\n\n');// -> 'foo bar' * ``` */ declare const _default: (str: string | null | undefined, toLower?: boolean) => string | null | undefined; export default _default;