/** * Handles hot module replacement (HMR) updates for packages. * * This function is called when the development server notifies the client that a package * has been updated. It performs the following steps: * * 1. **Check which modules are loaded**: Uses Performance API to determine which entry points * from the package are actually loaded on the current page. * * 2. **Re-import updated modules**: Dynamically imports the new versions of loaded modules * using their updated bundle URLs (with new hash). * * 3. **Trigger React Refresh**: If React Refresh is available, triggers component updates * while preserving component state. Falls back to full page reload otherwise. * * The process ensures: * - Only relevant modules are updated (skip modules not loaded on current page) * - React component state is preserved when possible * - Graceful fallback to full reload if React Refresh fails * * @param data - The package update payload containing package name, version, and entry points * * @example * // This is typically called by the WebSocket message handler: * socket.on('package-update', (data) => { * await handlePackageUpdate(data); * }); */ export declare const handlePackageUpdate: (data: unknown) => Promise; //# sourceMappingURL=handlePackageUpdate.d.ts.map