/** * The following code is modified based on * https://github.com/webpack/webpack/blob/4b4ca3b/lib/MultiWatching.js * * MIT Licensed * Author Tobias Koppers @sokra * Copyright (c) JS Foundation and other contributors * https://github.com/webpack/webpack/blob/main/LICENSE */ import type { Callback } from '../compiled/@rspack/lite-tapable/dist/index.js'; import type { MultiCompiler } from './MultiCompiler.js'; import type { Watching } from './Watching.js'; declare class MultiWatching { watchings: Watching[]; compiler: MultiCompiler; /** * @param watchings - child compilers' watchers * @param compiler - the compiler */ constructor(watchings: Watching[], compiler: MultiCompiler); invalidate(callback?: Callback): void; invalidateWithChangesAndRemovals(changedFiles?: Set, removedFiles?: Set, callback?: Callback): void; close(callback: Callback): void; suspend(): void; resume(): void; } export default MultiWatching;