export declare function runBestEffortCleanup(params: { cleanup: () => Promise; onError?: (error: unknown) => void; }): Promise;