/** * Test isolation utilities for cross-runtime execution. * * Provides default cleanup hooks to reduce cross-test leakage, * especially in Bun where module caching and shared globals * can cause flakiness. * * @module */ type CleanupTask = () => void | Promise; /** Registers test cleanup. */ export declare function registerTestCleanup(task: CleanupTask): void; /** * Comprehensive reset of ALL test state across the application. * * This function clears all known caches and singletons that can cause * test isolation issues when running tests in parallel. It should be * called at the start and end of each test to ensure clean state. * * Includes: * - Config state (_environmentConfig, runtimeConfig, configCache) * - Layout discovery cache * - SSR module caches * - React cache and compat hooks * - Snippet cache * - API handler state * - Reload notifier */ export declare function resetAllTestState(): Promise; export {}; //# sourceMappingURL=isolation.d.ts.map