export default class Observer { /** * 添加监听对象 * @param thisArg this * @param propertyName 属性名 * @param callback 回调函数 * @param computedName 计算属性名 */ static push(thisArg: any, propertyName: string | symbol, callback: Function, computedName?: string): void; /** * 判断是否已经添加量当前对象的当前属性 - 用于添加属性监听(计算属性) * @param thisArg 当前对象 * @param propertyName 属性名 */ static exist(thisArg: any, propertyName: string | symbol, computedName?: string): boolean; /** * 通知 * @param thisArg this * @param propertyName 属性名 * @param newValue 新值 * @param oldValue 旧值 */ static notify(thisArg: any, propertyName: string | symbol, newValue: unknown, oldValue: unknown): void; private static dependWeakMap; /** * 获取this关联的depend对象 * @param thisArg * @returns */ private static getDepend; private constructor(); }