import type { Compiler, WebpackPluginInstance } from 'webpack'; declare module 'webpack' { interface Module { resource?: string; } } export declare class ThemeWatcherPlugin implements WebpackPluginInstance { private pendingFiles; constructor(); apply(compiler: Compiler): void; private initializeGlobalWatcher; /** * `themes//layouts.json` (the theme layouts map) is read by AreaLoader, * which webpack re-runs on every recompile (`cacheable(false)`), and * `loadThemeLayouts` caches it by mtime. So a save only needs the compiler * invalidated: the storefront bundle recompiles with the new placement and * the hot-middleware client reloads the page. Watches the theme root * (non-recursively, in effect: src/dist/public/node_modules are ignored). */ private initializeLayoutsWatcher; private cleanupGlobalWatcher; }