import { Moment } from 'moment'; /** * 获取UUID */ export declare function UUID(): string; /** * 获取目标的类型 */ export declare function getType(target: any): string; /** * 字符串转正则字符串 */ export declare function str2reg(str: string): string; export declare type Time = string | number | Date | Moment | undefined; /** * 格式化时间 */ export declare function formatTime(time?: Time, format?: string): string; export declare enum ItemTypeEnum { value = "value", key_value_obj = "key_value_obj", key_value_arr = "key_value_arr" } /** * 创建Object的迭代器 */ export declare function ObjectIterator(obj: any, type?: ItemTypeEnum): Generator; /** * 判断是否是移动端 */ export declare function isMobile(userAgent?: string): boolean; export declare type UrlParamsOption = { revertNumber?: boolean; }; /** * 获取url参数 */ export declare function getUrlParams

(url: string, key?: string, option?: UrlParamsOption): P; export declare function getUrlAllParams

(url: string, option?: UrlParamsOption): P; export declare function getUrlSingleParam

(url: string, key: string, option?: UrlParamsOption): P; /** * 防抖节流 * @param {*} action 回调 * @param {*} delay 等待的时间 * @param {*} context this指针 * @param {Boolean} isElapsed true为节流,false为防抖 * @returns {Function} */ export declare function throttle(action: F, delay: number, context?: any, isElapsed?: boolean): (...args: any[]) => any;