import { type IAsyncDisposable, type IDisposable, type IDisposableEvents } from '../dispose/disposable.js'; /** * Add object into global disposable store, it will be dispose when call to `disposeGlobal` */ export declare function registerGlobalLifecycle(object: (IDisposable | IAsyncDisposable) & IDisposableEvents, autoDereference: true): void; export declare function registerGlobalLifecycle(object: IDisposable | IAsyncDisposable): void; /** * Same as disposeGlobal, but do not throw by duplicate call */ export declare function ensureDisposeGlobal(): Promise; /** * Dispose the global disposable store * this function must be manually called by user, when registerGlobalLifecycle is used * * @throws when call twice */ export declare function disposeGlobal(): Promise; //# sourceMappingURL=global-lifecycle.d.ts.map