import { Any, Func, OpenAppPageParams, OpenWindowParams, PopoutWindowParams, SelectUsersParams, requestParams, ApiSuccess, ModalParams, DooTaskUserInfo, DooTaskSystemInfo, DooTaskLanguage, DooTaskUserBasicInfo, DooTaskSafeArea, CapsuleConfig } from "./types"; /** * 检查当前应用是否为微前端应用 * @returns {Promise} 返回微应用数据 * @throws {UnsupportedError} 环境不支持 */ export declare const appReady: () => Promise; /** * 检查当前应用是否为微前端应用 * @returns {Promise} 返回是否为微前端应用 */ export declare const isMicroApp: () => Promise; /** * 检查是否为EEUI应用 * @returns {Promise} 返回是否为EEUI应用 */ export declare const isEEUIApp: () => Promise; /** * 检查是否为Electron应用 * @returns {Promise} 返回是否为Electron应用 */ export declare const isElectron: () => Promise; /** * 检查是否为主Electron窗口 * @returns {Promise} 返回是否为主Electron窗口 */ export declare const isMainElectron: () => Promise; /** * 检查是否为子Electron窗口 * @returns {Promise} 返回是否为子Electron窗口 */ export declare const isSubElectron: () => Promise; /** * 检查当前是否满屏 * @returns {Promise} 返回是否为满屏 */ export declare const isFullScreen: () => Promise; /** * 检查当前是否为iframe * @returns {Promise} 返回是否为iframe */ export declare const isIframe: () => Promise; /** * 获取当前主题名称 * @returns {Promise} 返回当前主题名称 * @throws {UnsupportedError} 环境不支持 */ export declare const getThemeName: () => Promise; /** * 获取当前用户ID * @returns {Promise} 返回当前用户ID * @throws {UnsupportedError} 环境不支持 */ export declare const getUserId: () => Promise; /** * 获取当前用户Token * @returns {Promise} 返回当前用户Token * @throws {UnsupportedError} 环境不支持 */ export declare const getUserToken: () => Promise; /** * 获取当前用户信息 * @returns {Promise} 返回当前用户信息对象 * @throws {UnsupportedError} 环境不支持 */ export declare const getUserInfo: () => Promise; /** * 获取基础URL * @returns {Promise} 返回基础URL * @throws {UnsupportedError} 环境不支持 */ export declare const getBaseUrl: () => Promise; /** * 获取系统信息 * @returns {Promise} 返回系统信息对象 * @throws {UnsupportedError} 环境不支持 */ export declare const getSystemInfo: () => Promise; /** * 获取页面类型 * @returns {Promise} 返回页面类型,可能的值为 'popout' 或 'embed' * @throws {UnsupportedError} 环境不支持 */ export declare const getWindowType: () => Promise; /** * 获取语言列表 * @returns {Promise<{ [key: DooTaskLanguage]: string }>} 返回语言列表 * @throws {UnsupportedError} 环境不支持 */ export declare const getLanguageList: () => Promise<{ zh: string; "zh-CHT": string; en: string; ko: string; ja: string; de: string; fr: string; id: string; ru: string; }>; /** * 获取当前语言名称 * @returns {Promise} 返回当前语言名称 * @throws {UnsupportedError} 环境不支持 */ export declare const getLanguageName: () => Promise; /** * 获取移动端安全距离 * @returns {Promise} 返回安全距离 * @throws {UnsupportedError} 环境不支持 */ export declare const getSafeArea: () => Promise; /** * 关闭微前端应用 * @param destroy - 可选参数,布尔值,表示是否销毁应用。默认为false。 * @throws {UnsupportedError} 环境不支持 */ export declare const closeApp: (destroy?: boolean) => Promise; /** * 逐步返回上一个页面 * @description 类似于浏览器的后退按钮,返回到最后一个页面时会关闭应用。 * @throws {UnsupportedError} 环境不支持 */ export declare const backApp: () => Promise; /** * 应用窗口独立显示 * @param params - 窗口参数 * @throws {UnsupportedError} 环境不支持 */ export declare const popoutWindow: (params?: PopoutWindowParams) => Promise; /** * 打开新窗口 * @param params - 窗口参数 * @description 只在 isElectron 环境有效 * @throws {UnsupportedError} 环境不支持 */ export declare const openWindow: (params: OpenWindowParams) => Promise; /** * 在新标签页打开URL * @param url - 要打开的URL * @description 只在 isElectron 环境有效 * @throws {UnsupportedError} 环境不支持 */ export declare const openTabWindow: (url: string) => Promise; /** * 打开应用页面 * @param params - 应用页面参数 * @description 只在 isEEUIApp 环境有效 * @throws {UnsupportedError} 环境不支持 */ export declare const openAppPage: (params: OpenAppPageParams) => Promise; /** * 请求服务器API * @param params - API请求参数 * @returns Promise 返回API请求结果 * @throws {UnsupportedError} 环境不支持 * @throws {ApiError} 请求失败 */ export declare const requestAPI: (params: requestParams) => Promise; /** * 选择用户 * @param params - 可以是值或配置对象 * @returns Promise 返回选择的用户结果 * @throws {UnsupportedError} 环境不支持 * @throws {Error} 取消选择 */ export declare const selectUsers: (params: SelectUsersParams) => Promise; /** * 调用$A上的额外方法 * @param methodName - 方法名 * @param args - 参数列表 * @returns 方法返回值 * @throws {UnsupportedError} 环境不支持 */ export declare const callExtraA: (methodName: string, ...args: Any[]) => Promise; /** * 调用$store.dispatch上的额外方法 * @param actionName - 方法名 * @param payload - 参数列表 * @returns 方法返回值 * @throws {UnsupportedError} 环境不支持 */ export declare const callExtraStore: (actionName: string, ...payload: Any[]) => Promise; /** * 调用emitter.emit上的额外方法 * @param eventName - 事件名 * @param args - 参数列表 * @returns 方法返回值 * @throws {UnsupportedError} 环境不支持 */ export declare const callExtraEmitter: (eventName: string, ...args: Any[]) => Promise; /** * 查询用户基本信息 * @param userid - 用户ID或用户ID数组 * @returns Promise 返回用户基本信息数组 * @throws {UnsupportedError} 环境不支持 * @throws {ApiError} 请求失败 */ export declare const fetchUserBasic: (userid: number | number[]) => Promise; /** * 设置胶囊配置 * @param config - 胶囊配置 * @throws {UnsupportedError} 环境不支持 */ export declare const setCapsuleConfig: (config: CapsuleConfig) => Promise; /** * 打开对话框 * @param dialogId - 对话框ID * @throws {UnsupportedError} 环境不支持 */ export declare const openDialog: (dialogId: number) => Promise; /** * 打开对话框(新窗口,仅支持Electron环境) * @param dialogId - 对话框ID * @throws {UnsupportedError} 环境不支持 */ export declare const openDialogNewWindow: (dialogId: number) => Promise; /** * 打开对话框(指定用户) * @param userid - 用户ID * @throws {UnsupportedError} 环境不支持 */ export declare const openDialogUserid: (userid: number) => Promise; /** * 打开任务 * @param taskId - 任务ID * @throws {UnsupportedError} 环境不支持 */ export declare const openTask: (taskId: number) => Promise; /** * 下载文件 * @param url - 文件URL,会自动添加 token,如果不需要 token,请传参数 url={url:xxx,token:false} * @throws {UnsupportedError} 环境不支持 */ export declare const downloadUrl: (url: string | { url: string; token: boolean; }) => Promise; /** * 弹出成功提示框 * @param message - 提示框内容 * @returns Promise 返回提示框结果 * @throws {UnsupportedError} 环境不支持 */ export declare const modalSuccess: (message: string | ModalParams) => Promise; /** * 弹出错误提示框 * @param message - 提示框内容 * @returns Promise 返回提示框结果 * @throws {UnsupportedError} 环境不支持 */ export declare const modalError: (message: string | ModalParams) => Promise; /** * 弹出警告提示框 * @param message - 提示框内容 * @returns Promise 返回提示框结果 * @throws {UnsupportedError} 环境不支持 */ export declare const modalWarning: (message: string | ModalParams) => Promise; /** * 弹出信息提示框 * @param message - 提示框内容 * @returns Promise 返回提示框结果 * @throws {UnsupportedError} 环境不支持 */ export declare const modalInfo: (message: string | ModalParams) => Promise; /** * 弹出确认提示框 * @param message - 提示框内容 * @returns Promise 返回提示框结果 * @throws {UnsupportedError} 环境不支持 */ export declare const modalConfirm: (message: string | ModalParams) => Promise; /** * 弹出系统提示框 * @param message - 提示框内容 * @returns Promise 返回提示框结果 * @throws {UnsupportedError} 环境不支持 */ export declare const modalAlert: (message: string) => Promise; /** * 弹出成功消息 * @param message - 消息内容 * @returns Promise 返回消息结果 * @throws {UnsupportedError} 环境不支持 */ export declare const messageSuccess: (message: string) => Promise; /** * 弹出错误消息 * @param message - 消息内容 * @returns Promise 返回消息结果 * @throws {UnsupportedError} 环境不支持 */ export declare const messageError: (message: string) => Promise; /** * 弹出警告消息 * @param message - 消息内容 * @returns Promise 返回消息结果 * @throws {UnsupportedError} 环境不支持 */ export declare const messageWarning: (message: string) => Promise; /** * 弹出信息消息 * @param message - 消息内容 * @returns Promise 返回消息结果 * @throws {UnsupportedError} 环境不支持 */ export declare const messageInfo: (message: string) => Promise; /** * 获取下一个可用的模态框 z-index 值 * @returns {number} 返回一个递增的 z-index 值 */ export declare const nextZIndex: () => Promise; /** * 设置应用关闭前的回调 * @param callback - 回调函数,返回true则阻止关闭,false则允许关闭 * @description 用于在应用关闭前执行操作,可以通过返回true来阻止关闭 * @returns {Promise<() => void>} 返回一个函数,执行该函数可以注销监听器 * @throws {UnsupportedError} 环境不支持 */ export declare const interceptBack: (callback: () => boolean) => Promise<() => void>; /** * 添加菜单点击监听器 * @param callback - 回调函数,当菜单点击时调用 * @returns {Promise<() => void>} 返回一个函数,执行该函数可以注销监听器 * @throws {UnsupportedError} 环境不支持 */ export declare const addMenuClickListener: (callback: (message: Any) => void) => Promise<() => void>; /** * 添加数据监听器 * @param callback - 回调函数,当数据发生变化时调用 * @param autoTrigger - 在初次绑定监听函数时如果有缓存数据,是否需要主动触发一次 */ export declare const addDataListener: (callback: Func, autoTrigger?: boolean) => void; /** * 移除数据监听器 * @param callback - 回调函数,之前添加的监听器 */ export declare const removeDataListener: (callback: Func) => void;