import { Misc } from "@singularsystems/neo-core"; import { IReactionDisposer } from "mobx"; export interface IDisposeHelper extends Misc.IDisposable { /** * Registers a mobx reaction, which will be disposed in the dispose() method when the view is unmounted. * @param expression Expression to react to. * @param effect Callback to run when the result of the expression changes. */ registerReaction(expression: (vm: this) => T, effect: (value: T) => void): IReactionDisposer; autoDispose(disposable: T): T; dispose(): void; }