/*! ***************************************************************************** Copyright (c) JDJR Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Author: kemao 2018-12-04 12:18:22 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ /** * 强大的字符串处理工具 */ export declare class LarkString { static getPadString(num: any, n: any): any; static pad(n: number, str: any): string; static trim(str: any): any; static left: (str: any) => any; static right: (str: any) => any; static subString(str: string, start: string, end: string): string; /** * 是否为全字母字符串,不含数字空格等一切非字母 * @param str */ static isAllEnglishCharacter(str: string): boolean; /** * 是否为全小写字母字符串 * @param str 需要判断的字符串 * @param length 是否判断长度 */ static isAllLowerCaseCharacter(str: string, length?: number | { min: number; max: number; }): boolean; /** * 是否为sha1字符串 * 特征 全字母+数字 40位长度 */ static isSHA1(str: string): boolean; /** * 是否为全大写字母字符串 */ /** * 是否为全中文 */ /** * 是否为全字母数字下划线字符串,非数字开头,不区分大小写 */ /** * 是否含有空格 * @param str */ static hasSpace(str: string): boolean; static isString(str: string): boolean; /** * markdown转html功能 * @param markdown md */ /** * 清除HTML片段里面的空格之类的 * @todo 优化成简单的正规替换,不能使用minifi因为它带了ungliy不能打包 */ static getCleanHTML(html: string, options?: { collapseWhitespace: boolean; }): string; }