import { IContext } from './types'; /** * 上下文管理模块 */ declare class ContextManager { /** * Description * @author zzg * * @private * @static * @type {Record} */ private static context; /** * 设置上下文 * @param newContext 新的上下文对象 */ static setContext(newContext: IContext): void; /** * 获取上下文 * @returns 当前上下文对象 */ static getContext(): IContext; /** * 清除上下文 */ static clearContext(): void; /** * 获取特定键的上下文值 * @param key 键名 * @returns 对应的值 */ static getContextValue(key: string): any; } export default ContextManager;