@ohos-ports/rspack-core 1.1.8-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +25 -0
  3. package/compiled/@swc/types/index.d.ts +1962 -0
  4. package/compiled/@swc/types/index.js +19 -0
  5. package/compiled/@swc/types/license +201 -0
  6. package/compiled/@swc/types/package.json +1 -0
  7. package/compiled/browserslist/index.d.ts +1 -0
  8. package/compiled/browserslist/index.js +2053 -0
  9. package/compiled/browserslist/license +20 -0
  10. package/compiled/browserslist/package.json +1 -0
  11. package/compiled/enhanced-resolve/CachedInputFileSystem.js +664 -0
  12. package/compiled/enhanced-resolve/index.d.ts +1123 -0
  13. package/compiled/enhanced-resolve/license +20 -0
  14. package/compiled/enhanced-resolve/package.json +1 -0
  15. package/compiled/graceful-fs/index.d.ts +13 -0
  16. package/compiled/graceful-fs/index.js +1063 -0
  17. package/compiled/graceful-fs/license +15 -0
  18. package/compiled/graceful-fs/package.json +1 -0
  19. package/compiled/watchpack/index.d.ts +216 -0
  20. package/compiled/watchpack/index.js +2075 -0
  21. package/compiled/watchpack/license +20 -0
  22. package/compiled/watchpack/package.json +1 -0
  23. package/compiled/webpack-sources/index.d.ts +130 -0
  24. package/compiled/webpack-sources/index.js +3520 -0
  25. package/compiled/webpack-sources/license +21 -0
  26. package/compiled/webpack-sources/package.json +1 -0
  27. package/compiled/zod/index.d.ts +1733 -0
  28. package/compiled/zod/index.js +4405 -0
  29. package/compiled/zod/license +21 -0
  30. package/compiled/zod/package.json +1 -0
  31. package/dist/Chunk.d.ts +40 -0
  32. package/dist/ChunkGraph.d.ts +12 -0
  33. package/dist/ChunkGroup.d.ts +26 -0
  34. package/dist/Compilation.d.ts +421 -0
  35. package/dist/Compiler.d.ts +154 -0
  36. package/dist/ContextModuleFactory.d.ts +13 -0
  37. package/dist/DependenciesBlock.d.ts +10 -0
  38. package/dist/Dependency.d.ts +11 -0
  39. package/dist/Entrypoint.d.ts +8 -0
  40. package/dist/ErrorHelpers.d.ts +16 -0
  41. package/dist/ExecuteModulePlugin.d.ts +4 -0
  42. package/dist/FileSystem.d.ts +29 -0
  43. package/dist/FileSystemInfo.d.ts +5 -0
  44. package/dist/Module.d.ts +93 -0
  45. package/dist/ModuleGraph.d.ts +10 -0
  46. package/dist/ModuleTypeConstants.d.ts +93 -0
  47. package/dist/MultiCompiler.d.ts +68 -0
  48. package/dist/MultiStats.d.ts +22 -0
  49. package/dist/MultiWatching.d.ts +26 -0
  50. package/dist/NormalModule.d.ts +12 -0
  51. package/dist/NormalModuleFactory.d.ts +20 -0
  52. package/dist/Resolver.d.ts +16 -0
  53. package/dist/ResolverFactory.d.ts +14 -0
  54. package/dist/RspackError.d.ts +8 -0
  55. package/dist/RuleSetCompiler.d.ts +9 -0
  56. package/dist/RuntimeGlobals.d.ts +324 -0
  57. package/dist/RuntimeModule.d.ts +32 -0
  58. package/dist/Stats.d.ts +17 -0
  59. package/dist/Template.d.ts +77 -0
  60. package/dist/Watching.d.ts +35 -0
  61. package/dist/builtin-loader/index.d.ts +1 -0
  62. package/dist/builtin-loader/lightningcss/index.d.ts +95 -0
  63. package/dist/builtin-loader/swc/index.d.ts +3 -0
  64. package/dist/builtin-loader/swc/pluginImport.d.ts +33 -0
  65. package/dist/builtin-loader/swc/types.d.ts +19 -0
  66. package/dist/builtin-plugin/APIPlugin.d.ts +10 -0
  67. package/dist/builtin-plugin/ArrayPushCallbackChunkFormatPlugin.d.ts +10 -0
  68. package/dist/builtin-plugin/AssetModulesPlugin.d.ts +10 -0
  69. package/dist/builtin-plugin/AsyncWebAssemblyModulesPlugin.d.ts +10 -0
  70. package/dist/builtin-plugin/BannerPlugin.d.ts +40 -0
  71. package/dist/builtin-plugin/BundlerInfoRspackPlugin.d.ts +15 -0
  72. package/dist/builtin-plugin/ChunkPrefetchPreloadPlugin.d.ts +10 -0
  73. package/dist/builtin-plugin/CommonJsChunkFormatPlugin.d.ts +10 -0
  74. package/dist/builtin-plugin/ContextReplacementPlugin.d.ts +10 -0
  75. package/dist/builtin-plugin/CopyRspackPlugin.d.ts +15 -0
  76. package/dist/builtin-plugin/CssModulesPlugin.d.ts +10 -0
  77. package/dist/builtin-plugin/DataUriPlugin.d.ts +10 -0
  78. package/dist/builtin-plugin/DefinePlugin.d.ts +17 -0
  79. package/dist/builtin-plugin/DeterministicChunkIdsPlugin.d.ts +10 -0
  80. package/dist/builtin-plugin/DeterministicModuleIdsPlugin.d.ts +8 -0
  81. package/dist/builtin-plugin/DllEntryPlugin.d.ts +13 -0
  82. package/dist/builtin-plugin/DllReferenceAgencyPlugin.d.ts +11 -0
  83. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +12 -0
  84. package/dist/builtin-plugin/ElectronTargetPlugin.d.ts +10 -0
  85. package/dist/builtin-plugin/EnableChunkLoadingPlugin.d.ts +10 -0
  86. package/dist/builtin-plugin/EnableLibraryPlugin.d.ts +11 -0
  87. package/dist/builtin-plugin/EnableWasmLoadingPlugin.d.ts +10 -0
  88. package/dist/builtin-plugin/EnsureChunkConditionsPlugin.d.ts +10 -0
  89. package/dist/builtin-plugin/EntryPlugin.d.ts +27 -0
  90. package/dist/builtin-plugin/EvalDevToolModulePlugin.d.ts +11 -0
  91. package/dist/builtin-plugin/EvalSourceMapDevToolPlugin.d.ts +10 -0
  92. package/dist/builtin-plugin/ExternalsPlugin.d.ts +10 -0
  93. package/dist/builtin-plugin/FetchCompileAsyncWasmPlugin.d.ts +10 -0
  94. package/dist/builtin-plugin/FileUriPlugin.d.ts +10 -0
  95. package/dist/builtin-plugin/FlagAllModulesAsUsedPlugin.d.ts +10 -0
  96. package/dist/builtin-plugin/FlagDependencyExportsPlugin.d.ts +10 -0
  97. package/dist/builtin-plugin/FlagDependencyUsagePlugin.d.ts +10 -0
  98. package/dist/builtin-plugin/HotModuleReplacementPlugin.d.ts +7 -0
  99. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +112 -0
  100. package/dist/builtin-plugin/HttpExternalsRspackPlugin.d.ts +10 -0
  101. package/dist/builtin-plugin/IgnorePlugin.d.ts +19 -0
  102. package/dist/builtin-plugin/InferAsyncModulesPlugin.d.ts +10 -0
  103. package/dist/builtin-plugin/JavascriptModulesPlugin.d.ts +15 -0
  104. package/dist/builtin-plugin/JsLoaderRspackPlugin.d.ts +11 -0
  105. package/dist/builtin-plugin/JsonModulesPlugin.d.ts +10 -0
  106. package/dist/builtin-plugin/LibManifestPlugin.d.ts +18 -0
  107. package/dist/builtin-plugin/LightningCssMinimizerRspackPlugin.d.ts +33 -0
  108. package/dist/builtin-plugin/LimitChunkCountPlugin.d.ts +15 -0
  109. package/dist/builtin-plugin/MangleExportsPlugin.d.ts +10 -0
  110. package/dist/builtin-plugin/MergeDuplicateChunksPlugin.d.ts +10 -0
  111. package/dist/builtin-plugin/ModuleChunkFormatPlugin.d.ts +10 -0
  112. package/dist/builtin-plugin/ModuleConcatenationPlugin.d.ts +8 -0
  113. package/dist/builtin-plugin/NamedChunkIdsPlugin.d.ts +10 -0
  114. package/dist/builtin-plugin/NamedModuleIdsPlugin.d.ts +10 -0
  115. package/dist/builtin-plugin/NaturalChunkIdsPlugin.d.ts +10 -0
  116. package/dist/builtin-plugin/NaturalModuleIdsPlugin.d.ts +8 -0
  117. package/dist/builtin-plugin/NoEmitOnErrorsPlugin.d.ts +10 -0
  118. package/dist/builtin-plugin/NodeTargetPlugin.d.ts +10 -0
  119. package/dist/builtin-plugin/ProgressPlugin.d.ts +11 -0
  120. package/dist/builtin-plugin/ProvidePlugin.d.ts +11 -0
  121. package/dist/builtin-plugin/RealContentHashPlugin.d.ts +10 -0
  122. package/dist/builtin-plugin/RemoveDuplicateModulesPlugin.d.ts +10 -0
  123. package/dist/builtin-plugin/RemoveEmptyChunksPlugin.d.ts +10 -0
  124. package/dist/builtin-plugin/RuntimeChunkPlugin.d.ts +11 -0
  125. package/dist/builtin-plugin/RuntimePlugin.d.ts +10 -0
  126. package/dist/builtin-plugin/SideEffectsFlagPlugin.d.ts +10 -0
  127. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +20 -0
  128. package/dist/builtin-plugin/SourceMapDevToolPlugin.d.ts +11 -0
  129. package/dist/builtin-plugin/SplitChunksPlugin.d.ts +11 -0
  130. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +213 -0
  131. package/dist/builtin-plugin/WarnCaseSensitiveModulesPlugin.d.ts +10 -0
  132. package/dist/builtin-plugin/WebWorkerTemplatePlugin.d.ts +7 -0
  133. package/dist/builtin-plugin/WorkerPlugin.d.ts +13 -0
  134. package/dist/builtin-plugin/base.d.ts +22 -0
  135. package/dist/builtin-plugin/css-extract/index.d.ts +23 -0
  136. package/dist/builtin-plugin/css-extract/loader.d.ts +21 -0
  137. package/dist/builtin-plugin/css-extract/utils.d.ts +6 -0
  138. package/dist/builtin-plugin/index.d.ts +71 -0
  139. package/dist/builtin-plugin/lazy-compilation/backend.d.ts +46 -0
  140. package/dist/builtin-plugin/lazy-compilation/lazyCompilation.d.ts +24 -0
  141. package/dist/builtin-plugin/lazy-compilation/plugin.d.ts +13 -0
  142. package/dist/config/adapter.d.ts +10 -0
  143. package/dist/config/adapterRuleUse.d.ts +157 -0
  144. package/dist/config/browserslistTargetHandler.d.ts +21 -0
  145. package/dist/config/defaults.d.ts +12 -0
  146. package/dist/config/index.d.ts +5 -0
  147. package/dist/config/normalization.d.ts +128 -0
  148. package/dist/config/target.d.ts +89 -0
  149. package/dist/config/types.d.ts +2136 -0
  150. package/dist/config/utils.d.ts +16 -0
  151. package/dist/config/zod.d.ts +4090 -0
  152. package/dist/container/ContainerPlugin.d.ts +40 -0
  153. package/dist/container/ContainerReferencePlugin.d.ts +33 -0
  154. package/dist/container/ModuleFederationPlugin.d.ts +13 -0
  155. package/dist/container/ModuleFederationPluginV1.d.ts +22 -0
  156. package/dist/container/ModuleFederationRuntimePlugin.d.ts +10 -0
  157. package/dist/container/options.d.ts +3 -0
  158. package/dist/cssExtractHmr.js +224 -0
  159. package/dist/cssExtractLoader.js +278 -0
  160. package/dist/error/ConcurrentCompilationError.d.ts +14 -0
  161. package/dist/exports.d.ts +167 -0
  162. package/dist/index.d.ts +10 -0
  163. package/dist/index.js +20251 -0
  164. package/dist/lib/AbstractMethodError.d.ts +24 -0
  165. package/dist/lib/Cache.d.ts +65 -0
  166. package/dist/lib/CacheFacade.d.ts +167 -0
  167. package/dist/lib/DllPlugin.d.ts +42 -0
  168. package/dist/lib/DllReferencePlugin.d.ts +119 -0
  169. package/dist/lib/EntryOptionPlugin.d.ts +33 -0
  170. package/dist/lib/EnvironmentPlugin.d.ts +22 -0
  171. package/dist/lib/HookWebpackError.d.ts +40 -0
  172. package/dist/lib/IgnoreWarningsPlugin.d.ts +25 -0
  173. package/dist/lib/LoaderOptionsPlugin.d.ts +28 -0
  174. package/dist/lib/LoaderTargetPlugin.d.ts +24 -0
  175. package/dist/lib/ModuleFilenameHelpers.d.ts +53 -0
  176. package/dist/lib/NormalModuleReplacementPlugin.d.ts +29 -0
  177. package/dist/lib/WebpackError.d.ts +23 -0
  178. package/dist/lib/cache/MemoryCachePlugin.d.ts +5 -0
  179. package/dist/lib/cache/getLazyHashedEtag.d.ts +35 -0
  180. package/dist/lib/cache/mergeEtags.d.ts +17 -0
  181. package/dist/loader-runner/LoaderLoadingError.d.ts +13 -0
  182. package/dist/loader-runner/index.d.ts +40 -0
  183. package/dist/loader-runner/loadLoader.d.ts +11 -0
  184. package/dist/logging/Logger.d.ts +61 -0
  185. package/dist/logging/createConsoleLogger.d.ts +35 -0
  186. package/dist/logging/truncateArgs.d.ts +16 -0
  187. package/dist/moduleFederationDefaultRuntime.js +1 -0
  188. package/dist/node/NodeEnvironmentPlugin.d.ts +10 -0
  189. package/dist/node/NodeTemplatePlugin.d.ts +18 -0
  190. package/dist/node/NodeWatchFileSystem.d.ts +18 -0
  191. package/dist/node/nodeConsole.d.ts +15 -0
  192. package/dist/rspack.d.ts +16 -0
  193. package/dist/rspackOptionsApply.d.ts +4 -0
  194. package/dist/runtime/cssExtractHmr.d.ts +4 -0
  195. package/dist/runtime/moduleFederationDefaultRuntime.d.ts +2 -0
  196. package/dist/sharing/ConsumeSharedPlugin.d.ts +41 -0
  197. package/dist/sharing/ProvideSharedPlugin.d.ts +34 -0
  198. package/dist/sharing/SharePlugin.d.ts +51 -0
  199. package/dist/sharing/ShareRuntimePlugin.d.ts +9 -0
  200. package/dist/sharing/utils.d.ts +1 -0
  201. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +4 -0
  202. package/dist/stats/DefaultStatsPresetPlugin.d.ts +4 -0
  203. package/dist/stats/DefaultStatsPrinterPlugin.d.ts +13 -0
  204. package/dist/stats/StatsFactory.d.ts +57 -0
  205. package/dist/stats/StatsPrinter.d.ts +57 -0
  206. package/dist/stats/statsFactoryUtils.d.ts +295 -0
  207. package/dist/util/ArrayQueue.d.ts +45 -0
  208. package/dist/util/AssetInfo.d.ts +7 -0
  209. package/dist/util/MergeCaller.d.ts +9 -0
  210. package/dist/util/SizeFormatHelpers.d.ts +10 -0
  211. package/dist/util/SplitChunkSize.d.ts +5 -0
  212. package/dist/util/assertNotNil.d.ts +1 -0
  213. package/dist/util/assetCondition.d.ts +2 -0
  214. package/dist/util/asyncLib.d.ts +54 -0
  215. package/dist/util/bindingVersionCheck.d.ts +5 -0
  216. package/dist/util/cleverMerge.d.ts +54 -0
  217. package/dist/util/comparators.d.ts +20 -0
  218. package/dist/util/createHash.d.ts +16 -0
  219. package/dist/util/createReadonlyMap.d.ts +1 -0
  220. package/dist/util/fake.d.ts +9 -0
  221. package/dist/util/fs.d.ts +342 -0
  222. package/dist/util/hash/BatchedHash.d.ts +29 -0
  223. package/dist/util/hash/index.d.ts +17 -0
  224. package/dist/util/hash/md4.d.ts +11 -0
  225. package/dist/util/hash/wasm-hash.d.ts +52 -0
  226. package/dist/util/hash/xxhash64.d.ts +11 -0
  227. package/dist/util/identifier.d.ts +79 -0
  228. package/dist/util/index.d.ts +19 -0
  229. package/dist/util/memoize.d.ts +3 -0
  230. package/dist/util/smartGrouping.d.ts +21 -0
  231. package/dist/util/source.d.ts +7 -0
  232. package/dist/util/validate.d.ts +6 -0
  233. package/hot/dev-server.js +75 -0
  234. package/hot/emitter.js +21 -0
  235. package/hot/lazy-compilation-node.js +50 -0
  236. package/hot/lazy-compilation-web.js +83 -0
  237. package/hot/log-apply-result.js +49 -0
  238. package/hot/log.js +79 -0
  239. package/hot/only-dev-server.js +103 -0
  240. package/hot/poll.js +40 -0
  241. package/hot/signal.js +66 -0
  242. package/module.d.ts +244 -0
  243. package/package.json +55 -0
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"graceful-fs","version":"4.2.11","license":"ISC","types":"index.d.ts","type":"commonjs"}
@@ -0,0 +1,216 @@
1
+ /// <reference types="node" />
2
+ import { EventEmitter } from 'events';
3
+ import fs from 'graceful-fs';
4
+
5
+ declare class DirectoryWatcher extends EventEmitter {
6
+ options: Watchpack.WatcherOptions;
7
+ directories: {
8
+ [path: string]: Watcher | true;
9
+ };
10
+ files: {
11
+ [path: string]: [number, number];
12
+ };
13
+ initialScan: boolean;
14
+ initialScanRemoved: string[];
15
+ nestedWatching: boolean;
16
+ path: string;
17
+ refs: number;
18
+ watcher: fs.FSWatcher;
19
+ watchers: {
20
+ [path: string]: Watcher[];
21
+ };
22
+
23
+ constructor(directoryPath: string, options: Watchpack.WatcherOptions);
24
+
25
+ setFileTime(filePath: string, mtime: number, initial: boolean, type?: string | boolean): void;
26
+
27
+ setDirectory(directoryPath: string, exist: boolean, initial: boolean): void;
28
+
29
+ createNestedWatcher(directoryPath: string): void;
30
+
31
+ setNestedWatching(flag: boolean): void;
32
+
33
+ watch(filePath: string, startTime: number): Watcher;
34
+
35
+ onFileAdded(filePath: string, stat: fs.Stats): void;
36
+
37
+ onDirectoryAdded(directoryPath: string): void;
38
+
39
+ onChange(filePath: string, stat: fs.Stats): void;
40
+
41
+ onFileUnlinked(filePath: string): void;
42
+
43
+ onDirectoryUnlinked(directoryPath: string): void;
44
+
45
+ onWatcherError(): void;
46
+
47
+ doInitialScan(): void;
48
+
49
+ getTimes(): {
50
+ [path: string]: number;
51
+ };
52
+
53
+ close(): void;
54
+ }
55
+
56
+ declare class Watcher extends EventEmitter {
57
+ data: number;
58
+ directoryWatcher: DirectoryWatcher;
59
+ path: string;
60
+ startTime: number;
61
+
62
+ constructor(directoryWatcher: DirectoryWatcher, filePath: string, startTime: number);
63
+
64
+ checkStartTime(mtime: number, initial: boolean): boolean;
65
+
66
+ close(): void;
67
+ }
68
+
69
+ interface Entry {
70
+ /** A point in time at which is it safe to say all changes happened before that */
71
+ safeTime: number;
72
+ /** Only for file entries: the last modified timestamp of the file */
73
+ timestamp: number;
74
+ }
75
+
76
+ declare class Watchpack extends EventEmitter {
77
+ aggregatedChanges: Set<string>;
78
+ aggregatedRemovals: Set<string>;
79
+
80
+ aggregateTimeout: NodeJS.Timer;
81
+ dirWatchers: Watcher[];
82
+ fileWatchers: Watcher[];
83
+ /** Last modified times for files by path */
84
+ mtimes: {
85
+ [path: string]: number;
86
+ };
87
+ options: Watchpack.WatchOptions;
88
+ paused: boolean;
89
+ watcherOptions: Watchpack.WatcherOptions;
90
+
91
+ constructor(options: Watchpack.WatchOptions);
92
+
93
+ /**
94
+ * Starts watching these files and directories
95
+ * Calling this again will override the files and directories
96
+ */
97
+ watch(options: {
98
+ /**
99
+ * Can be files or directories
100
+ * For files: content and existence changes are tracked
101
+ * For directories: only existence and timestamp changes are tracked
102
+ */
103
+ files?: Iterable<string>;
104
+ /**
105
+ * Can only be directories
106
+ * Directory content (and content of children, ...) and existence changes are tracked.
107
+ * For files: content and existence changes are tracked
108
+ * Assumed to exist, when directory is not found without further information a remove event is emitted
109
+ */
110
+ directories?: Iterable<string>;
111
+ /**
112
+ * Can be files or directories
113
+ * Only existence changes are tracked
114
+ * Assued to not exist, no remove event is emitted when not found initially
115
+ */
116
+ missing?: Iterable<string>;
117
+ startTime?: number;
118
+ }): void;
119
+
120
+ on(
121
+ eventName: "change",
122
+ listener: (
123
+ /** The changed file or directory */
124
+ filePath: string,
125
+ /** The last modified time of the changed file */
126
+ modifiedTime: number,
127
+ /** Textual information how this change was detected */
128
+ explanation: string,
129
+ ) => void,
130
+ ): this;
131
+
132
+ on(
133
+ eventName: "remove",
134
+ listener: (
135
+ /** The removed file or directory */
136
+ filePath: string,
137
+ /** Textual information how this change was detected */
138
+ explanation: string,
139
+ ) => void,
140
+ ): this;
141
+
142
+ on(
143
+ eventName: "aggregated",
144
+ listener: (
145
+ /** Set of all changed files */
146
+ changes: Set<string>,
147
+ /** Set of all removed files */
148
+ removals: Set<string>,
149
+ ) => void,
150
+ ): this;
151
+
152
+ /**
153
+ * Stops emitting events, but keeps watchers open
154
+ * The next "watch" call can reuse the watchers
155
+ * The watcher will keep aggregating events which can be received with `getAggregated()`
156
+ */
157
+ pause(): void;
158
+
159
+ /**
160
+ * Stops emitting events and closes all watchers
161
+ */
162
+ close(): void;
163
+
164
+ /**
165
+ * Returns the current aggregated info and removes that from the watcher
166
+ * The next aggregated event won't include that info and will only emitted when futher changes happen
167
+ * Can be used when paused
168
+ */
169
+ getAggregated(): {
170
+ changes: Set<string>;
171
+ removals: Set<string>;
172
+ };
173
+
174
+ /**
175
+ * Collects time info objects for all known files and directories
176
+ * This includes info from files not directly watched
177
+ */
178
+ collectTimeInfoEntries(fileInfoEntries: Map<string, Entry>, directoryInfoEntries: Map<string, Entry>): void;
179
+
180
+ /**
181
+ * Returns a `Map` with all known time info objects for files and directories
182
+ * Similar to `collectTimeInfoEntries()` but returns a single map with all entries
183
+ */
184
+ getTimeInfoEntries(): Map<string, Entry>;
185
+
186
+ /**
187
+ * Returns an object with all known change times for files
188
+ * This include timestamps from files not directly watched
189
+ * Key: absolute path, value: timestamp as number
190
+ * @deprecated
191
+ */
192
+ getTimes(): {
193
+ [path: string]: number;
194
+ };
195
+
196
+ _fileWatcher(file: string, watcher: Watcher): Watcher;
197
+
198
+ _dirWatcher(item: string, watcher: Watcher): Watcher;
199
+
200
+ _onChange(item: string, mtime: number, file?: string): void;
201
+
202
+ _onTimeout(): void;
203
+ }
204
+
205
+ declare namespace Watchpack {
206
+ interface WatcherOptions {
207
+ ignored?: string[] | string | RegExp | ((path: string) => boolean) | undefined;
208
+ poll?: boolean | number | undefined;
209
+ followSymlinks?: boolean;
210
+ }
211
+ interface WatchOptions extends WatcherOptions {
212
+ aggregateTimeout?: number | undefined;
213
+ }
214
+ }
215
+
216
+ export { Watchpack as default };