import { Component } from '../component'; import { World } from '../world'; import { PluginProps, PluginJson, PluginClass, Plugin } from './type'; declare const getPluginJson: (pluginName: string, pluginProps?: PluginProps) => PluginJson; declare class PluginComponent extends Component { readonly json: PluginJson; readonly dom: HTMLDivElement; readonly plugin: import("./type").PluginObject; needUpdate: boolean; constructor(PluginPlugin: PluginClass, json: PluginJson); enter(world: World): void; leave(world: World): void; update(): void; dispose(): void; } declare class PluginManger { private _plugin; get list(): { [x: string]: Plugin; }; register(plugins: Plugin[]): void; logouer(plugins: Plugin[]): void; create(pluginName: string, json?: PluginJson): PluginComponent; } declare const pluginManger: PluginManger; export { pluginManger, PluginComponent, getPluginJson };