import { default as MsgManagement } from './msg'; import { default as Utils } from './utils'; import { default as Log } from './log'; import { default as Plugins } from './plugin'; import { default as Errors } from './errors'; import { default as Context } from './context'; /** * 服务器类型定义,合并多个功能模块的类型 * @author zzg */ type ServerType = typeof Plugins & typeof Log & typeof Utils & typeof MsgManagement & typeof Errors & typeof Context; /** * 全局服务器实例,集成了消息管理、工具函数、日志记录、插件管理、错误处理和上下文管理功能 * 使用 Utils.mergeMethods 方法合并各个模块的方法,确保方法执行时的 this 指向正确 * @author zzg */ declare const Server: ServerType; export { MsgManagement, Utils, Log, Plugins, Errors, Context }; export * from './types'; export default Server;