/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
export declare function registerCleanup(fn: (() => void) | (() => Promise<void>)): void;
export declare function runExitCleanup(): Promise<void>;
/**
 * Reset cleanup state for testing purposes only.
 * DO NOT use this in production code.
 * @internal
 */
export declare function __resetCleanupStateForTesting(): void;
export declare function cleanupCheckpoints(): Promise<void>;
