import { I18n } from 'vue-i18n'; import { GlobalStoreUtil } from '../../store'; import { DesignerRegister, EditorRegister, FormItemRegister, RenderRegister } from '../../register'; import { IMessageUtil } from '../../interface'; import { DictionaryUtil } from '../../utils'; /** * gct paas 平台全局对象 * * @export * @class GctGlobal */ export declare class GctGlobal { /** * i18n 实例 * * @description 目前底包的实例化只是为了避免报错,需要由主项目实例化后挂载 * @type {I18n} */ i18n: I18n; /** * 全局 store 工具类 */ readonly storeUtil: GlobalStoreUtil; /** * 全局 store 实例 */ readonly store: import('pinia').Store<"global-store", import('../../interface').IGlobalState, import('../../interface').IGlobalGetters, import('../../interface').IGlobalActions>; /** * 消息提示工具类(预览、移动、网页,需要分别实现) * * @type {IMessageUtil} */ message: IMessageUtil; /** * 全局数据字典工具类 * */ dictionary: DictionaryUtil; /** * 综合性注册中心 */ readonly register: { designer: { mobile: DesignerRegister; web: DesignerRegister; }; render: { mobile: RenderRegister; web: RenderRegister; }; editor: typeof EditorRegister; formItem: typeof FormItemRegister; }; /** * 所有后台 api 服务 */ api: {}; /** * i18n 实例的 t 方法,多语言转换 * * @param {string} key * @param {string} [def] * @returns {*} {string} */ t(key: string, def?: string): string; }