/** * @default 判断对象类型 * @param obj 需要判断的对象 * @returns type 返回对象的类型 * @examples getType(1) // number * @examples getType('1') // string * @examples getType(true) // boolean * @examples getType([]) // array * @examples getType({}) // object * @examples getType(null) // null * @examples getType(undefined) // undefined * @examples getType(new Date()) // date * @examples getType(Math) // math * @examples getType(JSON) // json * @examples getType(new RegExp()) // regexp * @examples getType(new Error()) // error * @examples getType(document) // htmlbodyelement * @examples getType(window) // window */ export declare const getType: (obj: any) => string; /** * 将字符串数组转换为值枚举对象 * * @param arr 字符串数组 * @returns 转换后的值枚举对象,如果数组为空或未定义则返回空对象 */ export declare const arr2ValueEnum: (arr: string[]) => {}; /** * 替换富文本里面的token参数 * * @param htmlString 需要处理的HTML字符串 * @param htmlType 需要处理的HTML元素类型数组,默认为['img', 'video'] * @returns 处理后的HTML字符串 */ export declare const replaceHtmlRichToken: (htmlString: string, htmlType?: string[]) => string; /** * 在HTML字符串中给指定类型的元素添加token参数 * * @param htmlString HTML字符串 * @param elementType 需要添加token的元素类型,默认为['img', 'video'] * @param srcPrefix 需要添加token的src前缀,默认为'/file/down' * @returns 返回添加token后的HTML字符串 */ export declare const getHtmlSrcWithToken: (htmlString: string, elementType?: string[], srcPrefix?: string) => string; /** * 获取浏览器滚动条的宽度(像素值) * * @returns 返回浏览器滚动条的宽度,单位为像素 */ export declare function getBrowserScrollWidth(): number;