/** * 清除空格 * * @param str - 需要处理的字符串 * @param type - 处理类型:1-所有空格 2-前后空格 3-前空格 4-后空格 * @returns {string} 处理后的字符串 * @example * * trim(' 123 '); * // => '123' */ export declare function trim(str: string, type?: 1 | 2 | 3 | 4): string;