/** * Module Reloading Utility - TypeScript Implementation * * This module provides functionality for reloading modules from Node.js cache * for isolated testing scenarios. It focuses solely on module cache management. */ declare const moduleReloadLock: Set; /** * Reload a module from cache for isolated testing * * This function clears a module from Node.js require cache and reloads it, * enabling tests to verify module loading behavior and ensure fresh module * state between tests. * * Note: In ES modules, dynamic imports don't have the same caching behavior as CommonJS require. * This function provides a compatibility layer for testing scenarios. * * @param relPath - Relative path to module that should be reloaded * @returns The freshly loaded module object * @throws Error if module cannot be found or loaded */ declare function reload(relPath: string): Promise; export { reload, moduleReloadLock }; //# sourceMappingURL=moduleReloader.d.ts.map