import _ from 'lodash'; /** * 工具类 */ export default class XTools { static Lodash: _.LoDashStatic; static request: import("umi-request").RequestMethod; static RequestUrl(url: any, method?: string): Promise; static RequestServerPost(url?: string, params?: any, isShowError?: boolean, useToken?: boolean, onServerResult?: boolean): Promise; static SaveFormData(form: any, url: any, tableOrFunc?: any, data?: any): Promise; static GetUploadFileUrl(fileUrl: string): string; static isArray: (val: any) => boolean; static isObject: (val: any) => boolean; static isNumber: (val: any) => boolean; static isCascader: ({ dataSource }: { dataSource: any; }) => boolean; static IsMobile(): boolean; static IsWeixin(): boolean; static isFunction(v: any): boolean; static isString(v: any): boolean; static pick(obj: Record, keys: string[]): Record; static getUrlParams(param?: string): any; static modProtocol(url: any, protocol: any): string; static getUUID(num?: number): string; static GetGUID(): string; static isNotEmptyObject(e: any): boolean; static convertBytesToSize(bytes: any): string; static isEmptyObject(e: any): boolean; static deepMerge(object: any, ...otherArgs: any[]): any; static deepClone(d: any): any; static cloneDeep(d: any): any; static CopyToObject(source: any, target: any): void; static CopyTextToClipboard(text: any): Promise; static GotoUrl(url: string, param?: string): void; static sleep(time: number): Promise; static ToTree(data: any): any; static CreateScript(url: any, callback?: any): Promise; /** * 加载css */ static CreateCss(url: any, callback?: any): Promise; static GetValueOrFromFunction(value: any): any; static isEqual(a: any, b: any): boolean; static Base64: { _keyStr: string; encode: (input: any, binary: any) => string; decode: (input: any, binary: any) => string; _utf8_encode: (string: any) => string; _utf8_decode: (utftext: any) => string; }; static toBodyZoom(num: number): number; static FindParentExistsClass(target: any, className: any): any; static debounce(fn: any, delay: any): (e: any) => void; static throttle(fn: any, delay: any): (e: any) => boolean; static DownloadFile(fileName: any, content: any): void; static ToTreeData(data: any): any; static IsVisible(div: HTMLElement): any; static AppendLib(libName: any, obj: any): void; } export declare function yuan(val: any): string; export declare function getNodeHeight(node: any): number; export declare function upGo(fieldData: any, index: any): void; export declare const isNotEmptyObject: (e: any) => boolean; export declare const isEmptyObject: (e: any) => boolean; export declare function downGo(fieldData: any, index: any): void; export declare function swapArr(arr: any, index1: any, index2: any): any; export declare function toFirst(fieldData: any, index: any): void; export declare function toPoint(percent: any): any; export declare function toPercent(point: any): string; export declare function toNum(value: any, digits: any): number; export declare function fixedZero(val: any): any; export declare function addClass(classname: any, newclass: any): string; export declare function removeClass(classname: any, newclass: any): any; export declare function contains(root: any, target: any): boolean; export declare function assert(condition: any, msg?: string): void; export declare function scrollIntoView(container: any, target: any): void; export declare const CopyToObject: (source: any, target: any) => void; export declare function getRouteData(menu: any, list?: any[], url?: string): any[]; export declare function getUUID(num?: number): string;