import { OpResult, DataResultT, RhMsgType, RhMsgCategory, RhSafeAny, RhSelectItem } from 'rh-base/model'; /** * 函数工具类 */ export declare class FunctionHelper { /** * */ static confirm(predicate: () => boolean, confirmInfo: string, action: () => void): void; /** * 去除路由地址上的查询参数和片段 * @example 形如`main/ProductMaster/ProcessRoutingManage?routingcode=1000005127` * 返回值为`main/ProductMaster/ProcessRoutingManage` */ static removeRouteQueryPara(value: string): string; static debounce(func: (...args: RhSafeAny) => void, wait?: number, optons?: {}): import("lodash").DebouncedFunc<(...args: RhSafeAny) => void>; static throttle(func: () => void, wait?: number, optons?: {}): import("lodash").DebouncedFuncLeading<() => void>; /** 接口返回`OpResult`时的一般操作方法 * @param result `OpResult`对象 * @param msg 提示信息,一般为操作的描述 * @param msgType 当`result.Success`为假时的提示类型,只兼容`warning`和`error` * @param msgCategory 提示信息类型,`message`提示或者`modal`对话框提示 */ static handlerOpResult(result: OpResult, msg: string, msgType?: RhMsgType, msgCategory?: RhMsgCategory): void; /** * * @param result 要操作的DataResultT类型 * @param successFn 成功时的回调 * @param failFn 失败时的回调 */ static handlerDataResultT(result: DataResultT, successFn: (data: T) => void, failFn: (data?: T) => void): void; /** 检查目标值是否是null或者undefined */ static isNil(data: RhSafeAny): boolean; /** 将制定的信息复制到剪贴板 */ static copyInfo(content: string): void; /** 计算可见性 * @description 可传入布尔值,字符串布尔值和字符串箭头函数 * @param value 取值可能是true|'true'|'data=>data.status==="create"' * @param context 如果传入箭头函数,设定的上下文对象 */ static calculateVisible(visible: string | boolean | ((data: RhSafeAny) => void), context?: RhSafeAny): any; static booleanHandler(value: boolean): "否" | "是"; static selectItemHandler(value: string, pipeDatas: RhSelectItem[], dataValue?: string, dataText?: string): any; }