export declare function registerFormatHandler(type: string, handler: (value: any, format: string) => any): void;
declare class CommonBase {
    /**
   * 获取 typeof 类型
   * @param value
   * @returns {string}
   */
    static getTypeof(value: any): string;
    private static _toStringCall;
    static isUndefined(value: any): boolean;
    static isBoolean(value: any): boolean;
    static isString(value: any): boolean;
    static isFunction(value: any): boolean;
    static isObject(value: any): boolean;
    static isBlob(value: any): boolean;
    static isFile(value: any): boolean;
    static isNumber(value: any): boolean;
    static isInt(value: number): boolean;
    static isHtml(value: string): boolean;
    static isJson(value: any): boolean;
    static isWindow(obj: any): boolean;
    private static _isEmptyObject;
    static isArray(value: any): boolean;
    static isLocationLngLat(value: any): boolean;
    static isEmpty(value: any, def?: any): boolean;
    static isEqual(value1: any, value2: any): boolean;
    static isEqualArr(arr1: any[], arr2: any[], isInOrder?: boolean): boolean;
    static isEqualList(list1: any[], list2: any[], key?: string[]): boolean;
    /**
     * 数组1是否包含数组2
     * @param arr1
     * @param arr2
     */
    static isContainArr(arr1: any[], arr2: any[]): boolean;
    /**
     * 是否存在 大量循环时误用(慢)
     * @param value
     * @param key
     * @returns
     */
    static isExistValue(value: any, key: string): boolean;
    /**
     * 是否存在(专用json)
     * @param json
     * @param key
     * @returns
     */
    static isExistJsonKey(json: any, key: string): boolean;
    /**
     * 操作系统类型  仅浏览器端使用
     * @returns
     */
    static osType(): {
        isTablet: boolean;
        isIOS: boolean;
        isAndroid: boolean;
        isMobile: boolean;
        isPc: boolean;
    };
    /**
   * 移除空格
   * @param value
   * @returns {string}
   */
    static trim(value: any): any;
    static split(str: string, sign?: string): string[];
    static kebabCase(value: string): string;
    /**
     * 获取字节长度
     * @param {string} str
     * @returns {number}
     */
    static getByteLen(str: string): number;
    /**
     * 复制json
     * @param json {Object}
     * @returns
     */
    static getJsonClone(json: any, isDeep?: boolean, opt?: any): any;
    /**
     * 复制json 深拷贝
     * @param json
     * @returns
     */
    private static _getJsonCloneDeep;
    static getJsonCloneByKeyArr(sourceJson: any, keyArr: string[]): any;
    static getJsonCloneByKeyJson(sourceJson: any, keyJson: any): any;
    static getJsonCloneByRemoveArr(sourceJson: any, removeArr: string[]): any;
    static getJsonMerge(...target: any): any;
    static getJsonReversal(json: any): any;
    static getJsonMergeDeep(...target: any): any;
    private static _mergeJsonDeep;
    static getJsonMap(json: any, map: any, isDef?: boolean): any;
    static getJsonByList(list: any, key?: string, isFormat?: boolean): any;
    static getJsonByArr(arr: string[]): any;
    static getGroupByList(list: any, key: string): any;
    static getJsonByBlob(blob: any): any;
    static getBase64ByFile(files: any): any;
    /**
     * 获取list 层级结构
     * @param {any[]} list
     * @returns {any}
     */
    static getTreeList(list: any[]): any;
    static getTreeLastParent(id: string, json: any, isShowSelf?: boolean): any;
    private static _recursionChild;
    private static _recursionParent;
    /**
     * 获取list tree转list
     * @param tree
     * @param opt
     * @returns
     */
    static getListByTree(tree: any, opt?: any): any;
    private static _recursionListByTree;
    /**
     * 复制list
     * @param list
     */
    static getListClone(list: any, isDeep?: boolean): any;
    /**
     * list 合并
     * @param newList 新
     * @param oldList 旧
     * @param key id
     * @returns list
     */
    static getListMergeDeep(newList: any[], oldList: any[], key?: string): any;
    static getRecursionParentList(json: any, pId: [string, number], pKey?: string): any;
    static getListExistValue(list: any, value: string, key?: string): any;
    /**
     * 复制数组
     * @param arr
     * @returns {Array}
     */
    static getArrClone(arr: any): any;
    static getArrByList(list: any[], key?: string): any;
    static getArrRemoveById(arr: any, ids: any): string[];
    static getArrByMinMax(min: number | undefined, max: number): number[];
    /**
     * 数组去重
     * @param arr
     * @returns
     */
    static getArrUnique(arr: any): any;
    static getArrConvertJson(arr: any[]): any;
    static getArrAsc(arr: any, type: string): any[];
    static getArrDesc(arr: any, type: string): any[];
    private static _arrSortString;
    private static _getChartType;
    static getZeroCount(len: number): string;
    /** 补全零 */
    static getFillZero(value: any, len?: number, around?: string): string;
    /**
     * 获取随机数
     * @param {number} len
     * @returns {any}
     */
    static getRandom(len?: number): string;
    /**
     * 指定范围获取随机数
     * @param {number} min
     * @param {number} max
     * @returns {number}
     */
    static getRandomRange(min: number, max: number, isRound?: boolean): number;
    /**
     * 验证码
     */
    static getCaptcha(len?: number): string;
    /**
     * 字符串格式化(int float2)
     * @param value
     * @param type num int float float2 float3 date dateTime time  string intArray
     */
    static getValueByFormat(value: any, type: string, extInfo?: any): string;
    /**
     * 小时格式
     * @param start 开始
     * @param end  结束
     * @returns 格式： 01:00-02:59
     */
    static getHourInterval(start: any, end?: any): string;
    /** 转化千分位 */
    static getFormatThousands(value: any): string;
    /**
     * 指定位 数字加一,位之后零补充
     * @param value 值
     * @param opt  inxPos(第几位 默认第二位) isCeil(最后数字是否ceil) isRounding(是否四舍五入,优先isCeil) isEndFive (最后数字是否5/0)
     * @returns
     */
    static getNumCeil(value: any, opt?: any): number;
    static removeReplace(value: any, key?: string): any;
    /**
     * 转换空为零
     * @param json
     * @param mapKey
     * @param optExt
     * @returns
     */
    static conversionEmptyZero(json: any, mapKey: string[], optExt?: any): any;
    /**
     * 转换百分比
     * @param {any} json
     * @param {string[]} mapKey
     */
    static conversionPercentage(json: any, mapKey: string[], isMultiply?: boolean): any;
    /**
     * 转换格式化的字符串
     * @param {string} strFormat
     * @param {any} json
     * @returns {string}
     */
    static convertStringFormat(strFormat: string, json: any): string;
    static getQueryString(url: string, name: string): string;
    static getQueryStringByHash(name: string): string;
    static encodeHTML(source: string): string;
    static removeHTMLTags(str: string): string;
    static requestAnimationFrame(nextCb: any): number;
    static cancelAnimationFrame(handle: any): void;
}
export default CommonBase;
