export declare class Observer { private readonly events; private readonly promises; constructor(); subscribe: (fn: Function, types?: string, condition?: Function) => () => void; /** * 发布消息通知(仅执行已经订阅的事件) * @param value * @param type */ notify: (value: any, type?: string) => Promise; /** * 获取最后一个订阅消息返回值 * @param args * @param type */ get: (args: any, type?: string) => Promise; /** * 发布消息通知(执行已经订阅的事件,同时保证将来的订阅事件能够直接执行),一般用于组件加载完成通知 * @param value * @param type */ prevNotify: (value: any, type?: string) => Promise; clear: (types?: string | string[]) => void; }