export declare function registerCleanup(cleanupFn: () => Promise): () => void; export declare function runCleanupFunctions(): Promise;