import { type IObject, type PromiseType } from '@newgrand/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; /** * 刷新首页portal * @param portalId * @param count */ refreshPortal(portalId: string, count?: number): void; /** * 主框架中打开url地址 * @param url url地址 * @param title 标题 */ openUrl(url: string, title?: string, { targetBlank, target }?: { targetBlank?: boolean | undefined; target?: string | undefined; }): any; /** * 主框架中关闭tab页 */ closeTab(check?: boolean, payload?: any): Promise; /** * 打开路由页面 * @param path 路由 * @param queryParmas outLink表示外部路由 * @returns */ open(path: string, queryParmas?: IObject & { AppTitle?: string; outLink?: boolean; target?: string; targetBlank?: boolean; validateMenuCode?: boolean; }): Promise; /** * @deprecated 请使用open替换 * @param query * @param title */ safePush(path: string, query?: IObject): void; close(): Promise; refresh(query?: IObject, appTitle?: string): void; /** * @deprecated 请使用refresh替换 * @param query * @param title */ safeRefresh(query?: IObject, title?: string): void; updateTitle(title: string): void; getUser(): T; /** * 处理Lform报表控件,保证模态框不被遮挡 * @param hidden 默认隐藏 * @param activeTabKey 需要处理的tabkey */ hideAF(hidden?: boolean, activeTabKey?: string): void; alertError(errorInfoPromise: PromiseType<{ Code?; Data?; ErrorCode?; Msg?; Status?; Success?; } | [boolean, any, any] | string>): Promise; };