import { Disposable } from './disposable'; /** * Manages the lifecycle of a disposable value that may be changed. * * This ensures that when the disposable value is changed, the previously held disposable is disposed of. You can * also register a `MutableDisposable` on a `Disposable` to ensure it is automatically cleaned up. */ export declare class MutableDisposable implements Disposable { private _value?; private _isDisposed; constructor(); get value(): T | undefined; set value(value: T | undefined); clear(): void; dispose(): void; /** * Clears the value, but does not dispose it. * The old value is returned. */ clearAndLeak(): T | undefined; }