/** * 全局服务API类 * 该类提供了一系列静态方法,用于统一管理和调用服务器相关功能 * @class ServerAPI */ declare class ServerAPI { /** 注册插件 */ static registerPlugin: typeof import("./plugin").default.registerPlugin; /** 销毁插件 */ static destroyPlugin: typeof import("./plugin").default.destroyPlugin; /** 获取插件 */ static getPlugin: typeof import("./plugin").default.getPlugin; /** 获取所有插件 */ static getPlugins: typeof import("./plugin").default.getPlugins; /** 更新插件配置 */ static updatePluginConfig: typeof import("./plugin").default.updatePluginConfig; static generateId: typeof import("./utils").default.generateId; static capitalize: typeof import("./utils").default.capitalize; static mergeMethods: typeof import("./utils").default.mergeMethods; static setMaxLogCount: typeof import("./log").default.setMaxLogCount; static getLogCount: typeof import("./log").default.getLogCount; static getLogs: typeof import("./log").default.getAllLogs; static getLogsByType: typeof import("./log").default.getLogsByType; static getInfos: typeof import("./log").default.getAllInfoLogs; static getWarns: typeof import("./log").default.getAllWarnLogs; static getErrors: typeof import("./errors").default.getAllErrorLogs; static clearLogs: typeof import("./log").default.clearLogs; static clearInfos: typeof import("./log").default.clearInfoLogs; static clearWarns: typeof import("./log").default.clearWarnLogs; static clearErrors: typeof import("./errors").default.clearErrorLogs; /** 注册事件监听器 */ static $on: typeof import("./msg").default.$on; /** 移除事件监听器 */ static $off: typeof import("./msg").default.$off; /** 触发事件 */ static $emit: typeof import("./msg").default.$emit; /** 注册一次性事件监听器 */ static $once: typeof import("./msg").default.$once; /** 获取已绑定的事件列表 */ static getBoundEvents: typeof import("./msg").default.getboundEvents; /** 设置服务器上下文 */ static setContext: typeof import("./context").default.setContext; /** 获取服务器上下文 */ static getContext: typeof import("./context").default.getContext; /** 清除服务器上下文 */ static clearContext: typeof import("./context").default.clearContext; /** 获取特定键的上下文值 */ static getContextValue: typeof import("./context").default.getContextValue; } export default ServerAPI;