import { AsyncEventCancellationToken } from '../event/async.emitter'; export declare namespace CancellationToken { const None: AsyncEventCancellationToken; } export declare function delay(ms: number): Promise; /** * Use this function to ensure that all disposables are cleaned up at the end of each test in the current suite. * * Use `markAsSingleton` if disposable singletons are created lazily that are allowed to outlive the test. * Make sure that the singleton properly registers all child disposables so that they are excluded too. */ export declare function ensureNoDisposablesAreLeakedInTestSuite(): void; export declare function throwIfDisposablesAreLeaked(body: () => void): void;