/** * 禁止输入emoji表情 * @param {string} val - 输入内容 * @returns {boolean} - 校验结果 返回 true || false */ import React from "react"; export declare const inputRange: (val: string) => string; export declare const throtte: (fn: Function, delay?: number) => (arg: any) => void; export declare const debounce: (fn: (...arg: any) => any, delay?: number) => () => void; export declare function pxTransform(size: number, designWidth?: number): string; export declare const detectFlexGapSupported: () => boolean; export interface Option { keepEmpty?: boolean; } export declare function toArray(children: React.ReactNode, option?: Option): React.ReactElement[]; export declare const checkBankCard: (cardNo: string) => boolean; /** * 格式化银行卡号 * * @export * @param {string} cardNum 6217002712347888987 * @param {boolean} mask 是否掩码 * @returns {string} 6217 0027 1234 7888 987 */ export declare function creditCard(cardNum: string, mask?: boolean): string; /** * 校验身份证号是否符合规范 * * @export * @param {string} idcard * @returns {boolean} true 符合 | false 不符合 */ export declare function verifyIdcard(idcard: string): boolean; export declare function tripleDefer(func: () => void): void; export declare function isString(v: any): boolean; export declare function isFunction(v: any): boolean; export declare function isEqual(x: any, y: any): boolean; export declare function pick(obj: any, keys: any): {}; export declare function uniqueId(prefix?: string): string; /** * 版本号比较进阶版 * @param {string} ver1 5.19.1 前一个版本 * @param {string} ver2 5.18.3 后一个版本 * @returns {number} 1: 前一个版本 大于 后一个版本 * -1: 前一个版本 小于 后一个版本 * 0: 前一个版本 等于 后一个版本 */ export declare function compareVersion(ver1: string, ver2: string): number; export declare const replaceCharByIndex: (str: string, index: number, replace: string) => string; /** * 车牌号正则校验 * * @export * @param {string} str 车牌号 * @returns {boolean} false | true */ export declare const isLicenseNo: (str: string) => boolean;