export interface Disposable {
    dispose(): void | Promise<void>;
}
export declare function isDisposable(value: unknown): value is Disposable;
export declare class DisposableStack implements Disposable {
    private readonly entries;
    private disposed;
    use<T extends Disposable>(resource: T): T;
    get size(): number;
    dispose(): Promise<void>;
}
//# sourceMappingURL=Disposable.d.ts.map