import { type IObject } from '@cscec/udp-core'; import type { IUser } from './interface'; export declare const CommonUtil: { /** * 在列表页面注册回刷事件 * @param busType 业务类型 * @param callback 回刷事件 */ onRefreshList(busType: string, callback: Function): () => void; /** * 在编辑页面回刷列表页面 * @param busType 业务类型 * @param data 回刷数据值 */ refreshList(busType: string, data?: any): void; /** * 获取public文件夹下的路径,微前端下会自动拼接微前端地址 * @param url */ getPublicPath(url: string): string; /** * 应用打开 * - 路由(子应用) path microAppName * - 外部链接 path * - 小程序 path agentid */ open(path: string, queryParmas?: IObject & { microAppName?: string; AppTitle?: string; agentId?: string; }): Promise; close(): void; getUser(): T; safeRefresh(query?: IObject): void; /** * 处理中文时间转换 * @param dateStr * @param minus 最小单位的+/-值 * @returns */ parseChineseDate(dateStr: any, minus?: number): Date; };