UNPKG

334 BTypeScriptView Raw
1import { CleanupCallback } from '../types';
2declare function cleanup(): Promise<void>;
3declare function addCleanup(callback: CleanupCallback): () => void;
4declare function removeCleanup(callback: CleanupCallback): void;
5declare function autoRegisterCleanup(): void;
6export { cleanup, addCleanup, removeCleanup, autoRegisterCleanup };