import EventEmitter from '@antv/event-emitter'; import React from 'react'; import RegistryManager from '../registry'; import StateManager from '../state'; import type { GlobalModel } from '../state/global'; import type { AssetPackage } from '../types'; import type { LIRenderProps } from './Render'; export type LIRuntimeAppOptions = { /** 应用资产包 */ assets: AssetPackage[]; /** 初始化的全局状态 */ initialGlobalState?: GlobalModel; }; /** * LocationInsight * 运行时框架 */ declare class LIRuntimeApp { /** * 配置项 */ private options; /** * 资产注册管理 */ registryManager: RegistryManager; /** * 状态管理(运行时 */ stateManager: StateManager; /** * 组件事件(组件事件订阅 */ eventBus: EventEmitter; /** * APP */ App: React.FC; constructor(options?: LIRuntimeAppOptions); /** * 安装资产包 */ installAssets(assets: AssetPackage[]): void; private getApp; } export default LIRuntimeApp;