var version = "0.0.55"; type EnumUtilTypeOf = 'undefined' | 'object' | 'array' | 'boolean' | 'number' | 'string' | 'function' | 'symbol' | 'bigint' | 'blob' | 'file' | 'null'; declare const utilTypeOf: (payload: unknown) => EnumUtilTypeOf; declare function numberToDecimal2(num: any, ceil?: boolean): any; declare function numberAdd(num1: any, num2: any): number; declare function numberSubtract(num1: any, num2: any): number; declare function numberMultiply(num1: number, num2: number): number; declare function numberDivide(num1: number, num2: number): number; declare const numberSimplifyCutting: (val: any, isEn?: boolean) => any; declare const arrayDataGrouping: (data?: never[], groupLen?: number) => never[][] | undefined; declare const setCookie: (name: string, data: any, objHours: number) => boolean; declare const getCookieValue: (name: string) => any; declare function dateFormatReg(date: any): any; declare function formatDate(date: any, format?: string): string; declare const debounce: (fn: Function, delay?: number, immediate?: boolean) => (this: any, ...args: any) => void; declare function deepClone(obj: any[] | { [propName: string]: any; }): {}; declare function getDomainTld(domain: any): string; declare function getDomainPeriod(tld: any): number; declare const escape: (str: any) => string | false; declare const filterStringSpace: (str: any, filterAllSpace?: boolean) => string; declare function getStrByteLength(str: string): number; declare function getUrlParam(name: string, param: string): string | null; declare const setLocalStorage: (name: string, data: any) => boolean; declare const getLocalStorage: (name: string) => any; declare const removeLocalStorage: (name: string) => boolean; declare const setSessionStorage: (name: string, data: any) => true | undefined; declare const getSessionStorage: (name: string) => any; declare const removeSessionStorage: (name: string) => boolean; declare enum EnumLanguageType { en = "en-US", zh = "zh-CN" } declare const enumLanguageType: { en: EnumLanguageType; zh: EnumLanguageType; }; declare const setErrorCodeLang: (language: any) => EnumLanguageType; declare function setHtmlTitle(title: string): void; declare function setUrlParam(data: any): string | undefined; declare const specialSymbolToComma: (str: any) => string; declare const strDisplayFormat: (str: any, maxLen?: number) => any; declare const inputTextareaFormat: (str: any, needToLowerCase?: boolean) => any[]; declare const inputValueFormatBr: (str: any, needToLowerCase?: boolean) => string; declare const stringToArray: (str: any, separator?: string) => any; declare const stringToLowerOrUpperCase: (str: any, toUpper?: boolean) => any; declare const throttle: (fn: Function, delay?: number) => (this: any, ...args: any) => void; declare function unescape(str: any): string | false; declare const utilsSubmitForm: (config: { url: string; method: string; params: { [propName: string]: any; }; }) => void; declare const utilToString: (input: any) => string; declare const valueToLowerCase: (str: any) => any; /** * TLD格式校验 - 传参数格式 * */ interface ITldRegConfig { // 是否允许为纯数字TLD, 默认: false allow_numeric_tld: boolean; // 是否允许TLD包含 -, 默认: false allow_hyphen_tld: boolean; } /** * 域名关键词格式校验 - 传参数格式 * */ interface ILabelRegConfig { // 是否允许包含下划线, 默认: false allow_underscores: boolean; } /** * 域名格式校验 - 传参数格式 * */ interface IsFQDNConfig extends ITldRegConfig { // 是否包含TLD, 默认: true require_tld: boolean; // 最大节点数, 默认: 127 max_node: number, // 是否允许包含下划线, 默认: false allow_underscores: boolean; // 是否允许 . 号结尾, 默认: false allow_trailing_dot: boolean; // 是否允许配符 *, 默认: false allow_wildcard: boolean; } /** * 域名格式校验返回参数格式 * */ interface isFQDNRes { // 是否校验成功 success: boolean; // 校验成功|失败提示消息 message: string; // 校验的文本 regValue?: any; } declare const isIPv4: (str: string) => boolean; declare const isIPv6: (str: string) => boolean; declare const isIP: (str: string) => 0 | 4 | 6; declare const isSameIPV4Segment: (startIP: string, endIP: string, lang?: any) => isFQDNRes; declare const isLoopback: (host: string) => boolean; declare const domainLabelValidator: (config: { label: any; option?: Partial; lang?: string; }) => { success: boolean; message: string; }; declare const tldValidator: (params: { tld: any; option?: Partial; lang?: string; }) => { success: boolean; message: string; }; declare const isFQDN: (str: any, option?: Partial, lang?: string) => isFQDNRes; declare const isDomain: (params?: { str: string; lang?: string; config?: Partial; }) => isFQDNRes; declare const isPort: (str: any) => boolean; declare const enumRecordType: { A: string; AAAA: string; NS: string; MX: string; CNAME: string; CAA: string; SRV: string; TXT: string; }; declare const isRdata: (str: any, type: string, lang?: string) => isFQDNRes; declare const isHost: (str: string) => boolean; declare const isTTL: (str: any, min?: number, max?: number) => boolean; declare const isZone: (str: string, lang?: string) => boolean; declare const isNS: (str: string, lang?: string) => isFQDNRes; declare function isArray(payload: unknown): payload is unknown[]; declare const IsBankCard: (str: any) => boolean; declare function isBlob(payload: unknown): payload is Blob; declare function isBoolean(payload: unknown): payload is boolean; declare const isBooleanTrue: (str: any, extend?: boolean, trueBooleans?: (string | number)[]) => any; interface IsByteLengthOptions { min?: number; max: number; } declare function isByteLength(str: any, options: IsByteLengthOptions): boolean; declare const isCellPhone: (str: any) => boolean; declare function isCreditCard(str: any): boolean; declare const isEmail: (str: any) => boolean; declare const isEmptyArray: (payload: unknown) => payload is []; declare function isEmptyObject(payload: unknown): payload is { [K in string | symbol | number]: never; }; declare const isEmptyStr: (str: unknown, ignoreSpace?: boolean) => boolean; declare const isEthereumAddress: (str: any) => boolean; declare const isExistString: (str: any) => undefined | string; declare const isExistValue: (value: any, returnType?: 'boolean' | 'string', emptyVal?: any) => any; declare function isFile(payload: unknown): payload is File; declare const isFixedPhone: (str: string) => boolean; declare function isHexDecimal(payload: unknown, length?: number): payload is string; declare function isIdentityCard(str: any, locale: string): any; declare function isIMEI(str: any, allow_hyphens?: boolean): boolean; declare function isIn(str: any, options: any): any; declare const isInRange: (str: any, min: number, max: number) => boolean; declare function isInt(str: any, options?: { allow_leading_zeroes?: Boolean; min?: number; max?: number; lt?: number; gt?: number; }): boolean; declare function isNegativeNumber(payload: unknown): payload is number; declare function isNull(payload: unknown): payload is null; declare const isNumber: (payload: any, allowNegative?: boolean) => payload is number; declare const isObject: (data: any) => boolean; type PlainObject = { [key in string | number | symbol]: unknown; }; declare function isPlainObject(payload: unknown): payload is PlainObject; declare function isPostalCode(str: any, locale: string): any; declare function isString(payload: unknown): payload is string; interface IsStrongPasswordOptions { minLength: number; minLowercase: number; minUppercase: number; minNumbers: number; minSymbols: number; returnScore: boolean; pointsPerUnique: number; pointsPerRepeat: number; pointsForContainingLower: number; pointsForContainingUpper: number; pointsForContainingNumber: number; pointsForContainingSymbol: number; } interface IAnalysisType { length: number; uniqueChars: number; uppercaseCount: number; lowercaseCount: number; numberCount: number; symbolCount: number; } declare function isStrongPassword(str: any, options?: Partial): number | boolean; declare const isTaxpayerNo: (str: any) => boolean; type TProtocols = Array<'http' | 'https' | 'ftp'>; type TCheckHostMatches = Array; interface IIsURLDefaultUrlOptions { protocols: TProtocols; require_tld: boolean; require_protocol: boolean; require_host: boolean; require_port: boolean; require_valid_protocol: boolean; allow_underscores: boolean; allow_trailing_dot: boolean; allow_protocol_relative_urls: boolean; allow_fragments: boolean; allow_query_components: boolean; validate_length: boolean; disallow_auth?: boolean; host_whitelist?: TCheckHostMatches; host_blacklist?: TCheckHostMatches; } declare function isURL(url: any, options: Partial): boolean; declare function isUUID(str: any, version: any): any; declare function isValidateURL(url: string): boolean; type ValidParamsDefaultTypes = Array; declare const isValidParamsTypes: (str: any, types?: ValidParamsDefaultTypes) => boolean | undefined; export { EnumUtilTypeOf, IAnalysisType, IIsURLDefaultUrlOptions, ILabelRegConfig, ITldRegConfig, IsBankCard, IsByteLengthOptions, IsFQDNConfig, IsStrongPasswordOptions, arrayDataGrouping, dateFormatReg, debounce, deepClone, domainLabelValidator, enumLanguageType, enumRecordType, escape, filterStringSpace, formatDate, getCookieValue, getDomainPeriod, getDomainTld, getLocalStorage, getSessionStorage, getStrByteLength, getUrlParam, inputTextareaFormat, inputValueFormatBr, isArray, isBlob, isBoolean, isBooleanTrue, isByteLength, isCellPhone, isCreditCard, isDomain, isEmail, isEmptyArray, isEmptyObject, isEmptyStr, isEthereumAddress, isExistString, isExistValue, isFQDN, isFQDNRes, isFile, isFixedPhone, isHexDecimal, isHost, isIMEI, isIP, isIPv4, isIPv6, isIdentityCard, isIn, isInRange, isInt, isLoopback, isNS, isNegativeNumber, isNull, isNumber, isObject, isPlainObject, isPort, isPostalCode, isRdata, isSameIPV4Segment, isString, isStrongPassword, isTTL, isTaxpayerNo, isURL, isUUID, isValidParamsTypes, isValidateURL, isZone, numberAdd, numberDivide, numberMultiply, numberSimplifyCutting, numberSubtract, numberToDecimal2, removeLocalStorage, removeSessionStorage, setCookie, setErrorCodeLang, setHtmlTitle, setLocalStorage, setSessionStorage, setUrlParam, specialSymbolToComma, strDisplayFormat, stringToArray, stringToLowerOrUpperCase, throttle, tldValidator, unescape, utilToString, utilTypeOf, utilsSubmitForm, valueToLowerCase, version };