/** * Observer function for {@link IWatch} implementations. */ export declare type Watch = (id: string, oldState: T, newState: T) => void; /** * Interface for types offering observers of internal value changes. * Also see `@IWatch` decorator mixin. */ export interface IWatch { addWatch(id: string, fn: Watch): boolean; removeWatch(id: string): boolean; notifyWatches(oldState: T, newState: T): void; } //# sourceMappingURL=watch.d.ts.map