/**
 * Cleanup Registry — CC cleanupRegistry.ts parity.
 *
 * Global registry for cleanup functions that should run during graceful shutdown.
 * Separate from stop handling to avoid circular dependencies.
 *
 * Reference: claude-code src/utils/cleanupRegistry.ts
 */
/**
 * Register a cleanup function to run during graceful shutdown.
 * @param cleanupFn - Function to run during cleanup (can be sync or async)
 * @returns Unregister function that removes the cleanup handler
 */
export declare function registerCleanup(cleanupFn: () => Promise<void>): () => void;
/**
 * Run all registered cleanup functions.
 * Used internally by graceful shutdown path.
 */
export declare function runCleanupFunctions(): Promise<void>;
/**
 * Get count of registered cleanup handlers (for diagnostics).
 */
export declare function getCleanupCount(): number;
