@empjs/cli 3.0.0-rc.26 → 3.0.0-rc.28

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 (43) hide show
  1. package/dist/index.cjs +17 -0
  2. package/dist/index.d.cts +691 -0
  3. package/dist/index.d.ts +691 -15
  4. package/dist/index.js +16 -16
  5. package/package.json +8 -19
  6. package/dist/helper/buildPrint.d.ts +0 -15
  7. package/dist/helper/getPort.d.ts +0 -6
  8. package/dist/helper/hmr/client.d.ts +0 -0
  9. package/dist/helper/hmr/config.d.ts +0 -0
  10. package/dist/helper/hmr/index.d.ts +0 -0
  11. package/dist/helper/hmr/overlay.d.ts +0 -0
  12. package/dist/helper/hmr/process-update.d.ts +0 -1
  13. package/dist/helper/index.d.ts +0 -4
  14. package/dist/helper/ipAddress.d.ts +0 -27
  15. package/dist/helper/logger.d.ts +0 -36
  16. package/dist/helper/nodePolyfill.d.ts +0 -7
  17. package/dist/helper/openBrowser.d.ts +0 -2
  18. package/dist/helper/utils.d.ts +0 -17
  19. package/dist/script/base.d.ts +0 -26
  20. package/dist/script/build.d.ts +0 -15
  21. package/dist/script/bundle.d.ts +0 -6
  22. package/dist/script/dev.d.ts +0 -9
  23. package/dist/script/devServer.d.ts +0 -0
  24. package/dist/script/dts.d.ts +0 -27
  25. package/dist/script/httpBase.d.ts +0 -10
  26. package/dist/script/index.d.ts +0 -1
  27. package/dist/script/serve.d.ts +0 -9
  28. package/dist/store/cycle/autoDevBase.d.ts +0 -8
  29. package/dist/store/empConfig.d.ts +0 -65
  30. package/dist/store/empShare/fastMode.d.ts +0 -18
  31. package/dist/store/empShare/index.d.ts +0 -30
  32. package/dist/store/index.d.ts +0 -125
  33. package/dist/store/lifeCycle.d.ts +0 -18
  34. package/dist/store/rspack/common.d.ts +0 -12
  35. package/dist/store/rspack/css.d.ts +0 -10
  36. package/dist/store/rspack/entries.d.ts +0 -39
  37. package/dist/store/rspack/hook.d.ts +0 -24
  38. package/dist/store/rspack/index.d.ts +0 -7
  39. package/dist/store/rspack/module.d.ts +0 -20
  40. package/dist/store/rspack/plugin.d.ts +0 -13
  41. package/dist/types/config.d.ts +0 -356
  42. package/dist/types/env.d.ts +0 -1
  43. package/dist/types/plugin.d.ts +0 -6
@@ -0,0 +1,691 @@
1
+ import { InspectOptions } from 'node:util';
2
+ import * as _rspack_core from '@rspack/core';
3
+ import { Configuration, Output, RspackOptions, Externals, Resolve, SwcJsMinimizerRspackPluginOptions, HtmlRspackPluginOptions, RuleSetRule } from '@rspack/core';
4
+ export { rspack } from '@rspack/core';
5
+ import { Configuration as Configuration$1 } from '@rspack/dev-server';
6
+ import { Options } from 'sass-embedded';
7
+ import { ModuleFederationPlugin } from '@module-federation/enhanced/rspack';
8
+ import WPChain from 'webpack-chain';
9
+ export { default as HtmlWebpackPlugin } from 'html-webpack-plugin';
10
+ import * as chalk from 'chalk';
11
+ import chalk__default from 'chalk';
12
+ import { glob } from 'glob';
13
+
14
+ type externalAssetsType = {
15
+ js: string[];
16
+ css: string[];
17
+ };
18
+ type ModuleFederationPluginOptions = ConstructorParameters<typeof ModuleFederationPlugin>[0];
19
+ type ImportMapType = {
20
+ imports: {
21
+ [key: string]: any;
22
+ };
23
+ };
24
+ declare class EMPShareLib {
25
+ externals: Configuration['externals'] | any;
26
+ externalAssets: externalAssetsType;
27
+ private exp;
28
+ config: EMPShareType;
29
+ importMap: ImportMapType;
30
+ isEmpshare: boolean;
31
+ setup(): Promise<void>;
32
+ /**
33
+ * 是否取用 importMap
34
+ */
35
+ get useImportMap(): boolean | undefined;
36
+ get pluginConfig(): ModuleFederationPluginOptions;
37
+ prepareEsm(): void;
38
+ setShareLib(): Promise<void>;
39
+ private setExternalAssets;
40
+ }
41
+
42
+ type LifeCycleOptions = Partial<LifeCycle>;
43
+ declare class LifeCycle {
44
+ op: LifeCycleOptions;
45
+ constructor(op?: LifeCycleOptions);
46
+ afterGetEmpOptions(): Promise<void>;
47
+ beforePlugin(): Promise<void>;
48
+ afterPlugin(): Promise<void>;
49
+ beforeModule(): Promise<void>;
50
+ afterModule(): Promise<void>;
51
+ beforeEmpPlugin(): Promise<void>;
52
+ afterEmpPlugin(): Promise<void>;
53
+ beforeBuild(): Promise<void>;
54
+ afterBulid(): Promise<void>;
55
+ beforeDevServe(): Promise<void>;
56
+ afterDevServe(): Promise<void>;
57
+ beforeServe(): Promise<void>;
58
+ afterServe(): Promise<void>;
59
+ }
60
+
61
+ declare const getLanIp: () => string;
62
+ declare const getPkgVersion: (pkgPath: string) => any;
63
+ declare function clearConsole(): void;
64
+ declare function deepAssign<T>(target: any, ...sources: any): T;
65
+ declare const ensureArray: <T>(params: T | T[]) => T[];
66
+ /**
67
+ * json Filter
68
+ * @param d
69
+ * @param keys
70
+ * @returns
71
+ */
72
+ declare const jsonFilter: (d?: any, notIncludeKeys?: string[]) => any;
73
+ declare const vCompare: (preVersion?: string, lastVersion?: string) => number;
74
+ declare const timeFormat: (seconds: number) => string;
75
+ declare const importJsVm: (content: string) => string;
76
+
77
+ declare const utils_clearConsole: typeof clearConsole;
78
+ declare const utils_deepAssign: typeof deepAssign;
79
+ declare const utils_ensureArray: typeof ensureArray;
80
+ declare const utils_getLanIp: typeof getLanIp;
81
+ declare const utils_getPkgVersion: typeof getPkgVersion;
82
+ declare const utils_importJsVm: typeof importJsVm;
83
+ declare const utils_jsonFilter: typeof jsonFilter;
84
+ declare const utils_timeFormat: typeof timeFormat;
85
+ declare const utils_vCompare: typeof vCompare;
86
+ declare namespace utils {
87
+ export { utils_clearConsole as clearConsole, utils_deepAssign as deepAssign, utils_ensureArray as ensureArray, utils_getLanIp as getLanIp, utils_getPkgVersion as getPkgVersion, utils_importJsVm as importJsVm, utils_jsonFilter as jsonFilter, utils_timeFormat as timeFormat, utils_vCompare as vCompare };
88
+ }
89
+
90
+ declare class EmpShareFastMode {
91
+ fastMode: Required<EMPShareFastModeType>;
92
+ externalMF: {
93
+ '@module-federation/runtime': string;
94
+ '@module-federation/sdk': string;
95
+ };
96
+ externalReact: {
97
+ react: string;
98
+ 'react-dom': string;
99
+ 'react-router-dom': string;
100
+ };
101
+ externals: any;
102
+ getRuntimeLib(runtimeHost: string): string;
103
+ setup(): void;
104
+ injectLib(): void;
105
+ setExternals(): void;
106
+ }
107
+
108
+ declare class EmpConfig {
109
+ private store;
110
+ /**
111
+ * 项目代码路径
112
+ * @default 'src'
113
+ */
114
+ appSrc: string;
115
+ /**
116
+ * 项目代码入口文件 如 `src/index.js`
117
+ * (*)entries 设置后 该选项失效
118
+ * @default 'index.js'
119
+ */
120
+ appEntry: string;
121
+ /**
122
+ * publicPath 根路径 可参考webpack,业务模式默认为 auto
123
+ * html 部分 publicPath 默认为 undefined,可设置全量域名或子目录适配,也可以单独在html设置 Public
124
+ *
125
+ * @default undefined
126
+ */
127
+ base: string;
128
+ target: RsTarget;
129
+ private assign;
130
+ empShareFastMode: EmpShareFastMode;
131
+ empShareLib: EMPShareLib;
132
+ /**
133
+ * 是否启动 esm 模块
134
+ * @default true
135
+ */
136
+ isESM: boolean;
137
+ autoDevSet(): Promise<void>;
138
+ checkIsESM(target: string): boolean;
139
+ lifeCycle: LifeCycle;
140
+ setup(store: GlobalStore): Promise<void>;
141
+ chain(): Promise<void>;
142
+ plugins(): Promise<void>;
143
+ get debug(): DebugType;
144
+ get build(): Required<BuildType>;
145
+ get html(): HtmlType;
146
+ get entries(): EntriesType;
147
+ get server(): ServerType;
148
+ get empShare(): EMPShareType;
149
+ get css(): Required<EmpOptions['css']>;
150
+ get output(): Output;
151
+ get define(): {
152
+ [k: string]: string;
153
+ };
154
+ private setDefine;
155
+ get externals(): any;
156
+ get resolve(): _rspack_core.ResolveOptions;
157
+ syncEmpOptions(): Promise<void>;
158
+ get moduleTransformRule(): any;
159
+ get cacheDir(): string;
160
+ get ignoreWarnings(): (RegExp | ((args_0: Error, args_1: _rspack_core.Compilation, ...args_2: unknown[]) => boolean))[];
161
+ get autoPages(): {
162
+ path: string;
163
+ } | undefined;
164
+ }
165
+
166
+ type EMPModeType = 'development' | 'production';
167
+
168
+ declare class GlobalStore {
169
+ /**
170
+ * EMP Version
171
+ * @default package version
172
+ */
173
+ empPkg: any;
174
+ /**
175
+ * 项目pkg信息
176
+ */
177
+ pkg: any;
178
+ /**
179
+ * 项目根目录绝对路径
180
+ * @default process.cwd()
181
+ */
182
+ root: string;
183
+ /**
184
+ * emp 内部根路径
185
+ * @default path.resolve(__dirname, '../../')
186
+ */
187
+ empRoot: string;
188
+ /**
189
+ * emp 执行代码路径
190
+ */
191
+ empSource: string;
192
+ /**
193
+ * 获取项目 根目录绝对路径
194
+ * (*) relativePath 可以是绝对路径
195
+ * @param relativePath
196
+ * @returns
197
+ */
198
+ resolve: (relativePath: string) => string;
199
+ /**
200
+ * 获取项目 emp内部根目录绝对路径
201
+ * @param relativePath
202
+ * @returns
203
+ */
204
+ empResolve: (relativePath: string) => string;
205
+ /**
206
+ * 源码地址 绝对路径
207
+ */
208
+ appSrc: string;
209
+ /**
210
+ * 源码生成目录 绝对路径
211
+ */
212
+ outDir: string;
213
+ /**
214
+ * 静态文件目录 绝对路径
215
+ */
216
+ publicDir: string;
217
+ /**
218
+ * 静态资源
219
+ */
220
+ resource: {
221
+ dir: string;
222
+ key: string;
223
+ cert: string;
224
+ };
225
+ /**
226
+ * 缓存目录 绝对路径
227
+ */
228
+ cacheDir: string;
229
+ mode: EMPModeType;
230
+ cliMode: 'dev' | 'prod';
231
+ isDev: boolean;
232
+ /**
233
+ * 项目配置
234
+ */
235
+ cliOptions: any;
236
+ chain: WPChain;
237
+ rsConfig: Configuration;
238
+ empOptions: EmpOptions;
239
+ empConfig: EmpConfig;
240
+ vCompare: (preVersion?: string, lastVersion?: string) => number;
241
+ deepAssign: typeof deepAssign;
242
+ getLanIp: () => string;
243
+ entries: {
244
+ [chunkName: string]: RspackOptions['entry'];
245
+ };
246
+ debug: EmpConfig['debug'];
247
+ setup(mode: string, cliOptions: any): Promise<void>;
248
+ /**
249
+ * 初始化 基础变量
250
+ * @param mode cli名称
251
+ * @param cliOptions cli配置
252
+ */
253
+ initVars(mode: string, cliOptions: any): Promise<void>;
254
+ /**
255
+ * 初始化 基础路径
256
+ */
257
+ initPaths(): void;
258
+ /**
259
+ * 设置 日志等级
260
+ */
261
+ setLogger(): void;
262
+ merge(o: RspackOptions): void;
263
+ importResolve(scope: string, importMetaUrl?: string): string;
264
+ /**
265
+ * windows import() 情况下 ES 的物理路径转换
266
+ * pathToFileURL 是为了解决在window下,import文件路径解析异常
267
+ * @param scope
268
+ * @returns
269
+ */
270
+ importFileUrl(scope: string): string;
271
+ /**
272
+ * 同步 chain 配置到 rsConfig
273
+ */
274
+ toConfig(): void;
275
+ /**
276
+ * 打印 config
277
+ */
278
+ logConfig(): void;
279
+ get browserslistOptions(): {
280
+ default: string[];
281
+ h5: string[];
282
+ node: string[];
283
+ };
284
+ }
285
+ declare const _default$3: GlobalStore;
286
+
287
+ type EMP3PluginType = {
288
+ name: string;
289
+ rsConfig: (store: GlobalStore) => Promise<void>;
290
+ };
291
+ type EMP3PluginFnType = (o: any) => EMP3PluginType;
292
+
293
+ type LoggerType = 'debug' | 'info' | 'warn' | 'error';
294
+ type DebugType = {
295
+ loggerLevel?: LoggerType;
296
+ clearLog?: boolean;
297
+ progress?: boolean;
298
+ showRsconfig?: boolean | string | InspectOptions;
299
+ showPerformance?: boolean;
300
+ rspackCache?: boolean;
301
+ newTreeshaking?: boolean;
302
+ /**
303
+ * 是否显示执行日志
304
+ * @default false
305
+ */
306
+ infrastructureLogging?: Configuration['infrastructureLogging'];
307
+ };
308
+ type ServerType = Configuration$1 & {
309
+ /**
310
+ * 访问 host
311
+ * @default '0.0.0.0'
312
+ */
313
+ host?: string;
314
+ /**
315
+ * 访问 端口
316
+ * @default 8000
317
+ */
318
+ port?: number;
319
+ /**
320
+ * 自动打开
321
+ * @default false
322
+ */
323
+ open?: Configuration$1['open'];
324
+ /**
325
+ * 热重载
326
+ * @default true
327
+ */
328
+ hot?: Configuration$1['hot'];
329
+ };
330
+ type BuildType = {
331
+ /**
332
+ * 生成代码目录
333
+ * @default 'dist'
334
+ */
335
+ outDir?: string;
336
+ /**
337
+ * 生成静态目录
338
+ * @default 'assets'
339
+ */
340
+ assetsDir?: string;
341
+ /**
342
+ * 生成包含 js,css,asset 合集目录
343
+ * @default ''
344
+ */
345
+ staticDir?: string;
346
+ /**
347
+ * 静态文件路径
348
+ * @default 'public'
349
+ */
350
+ publicDir?: string;
351
+ /**
352
+ * named 使用有意义、方便调试的内容当作模块 id。此选项会在开发环境下默认开启。
353
+ * deterministic 使用对模块标识符哈希后的数字当作模块 id,有益于长期缓存。此选项会在生产环境下默认开启。
354
+ */
355
+ moduleIds?: 'named' | 'deterministic';
356
+ /**
357
+ * chunkIds
358
+ * @default named|deterministic
359
+ */
360
+ chunkIds?: false | 'natural' | 'named' | 'deterministic' | 'size' | 'total-size';
361
+ /**
362
+ * 是否生成 source map
363
+ * @default true
364
+ */
365
+ sourcemap?: boolean;
366
+ /**
367
+ * 是否压缩
368
+ * @default true
369
+ */
370
+ minify?: boolean;
371
+ /**
372
+ * 设置内置压缩器配置
373
+ * @default {}
374
+ */
375
+ minOptions?: SwcJsMinimizerRspackPluginOptions;
376
+ /**
377
+ * 生成代码 参考 https://swc.rs/docs/configuring-swc#jsctarget
378
+ */
379
+ target?: JscTarget;
380
+ /**
381
+ * 注入兼容代码
382
+ * module federation 入口 建议使用 entry
383
+ * @default false
384
+ */
385
+ polyfill?: 'entry' | 'usage' | false;
386
+ /**
387
+ * 手动注入兼容代码,避免usage出现分析纰漏问题
388
+ * @default ['es.object.values', 'es.object.entries', 'es.array.flat']
389
+ */
390
+ polyfillInclude?: string[];
391
+ /**
392
+ * 选择core-js的兼容版本有助于切换适当的代码体积
393
+ * @default stable
394
+ */
395
+ coreJsFeatures?: 'full' | 'actual' | 'stable' | 'es';
396
+ /**
397
+ * @swc/helpers 外置
398
+ * @default false
399
+ */
400
+ externalHelpers?: boolean;
401
+ /**
402
+ * 浏览器 兼容版本
403
+ */
404
+ browserslist?: string[];
405
+ /**
406
+ * swc 配置
407
+ */
408
+ swcConfig?: {
409
+ transform?: {
410
+ useDefineForClassFields?: boolean;
411
+ };
412
+ preserveAllComments?: boolean;
413
+ };
414
+ };
415
+ type JscTarget = 'es3' | 'es5' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022';
416
+ interface HtmlType extends HtmlRspackPluginOptions {
417
+ /**
418
+ * 基于项目的根目录 index.html url
419
+ * @default src/index.html
420
+ */
421
+ template?: string;
422
+ /**
423
+ * 基于项目的根目录 favicon url
424
+ * @default src/favicon.ico
425
+ */
426
+ favicon?: string;
427
+ /**
428
+ * 网站语言
429
+ */
430
+ lang?: string;
431
+ /**
432
+ * externals 文件插入到html
433
+ */
434
+ files?: {
435
+ /**
436
+ * 插入 css
437
+ */
438
+ css?: string[];
439
+ /**
440
+ * 插入 js
441
+ */
442
+ js?: string[];
443
+ };
444
+ /**
445
+ * 自定义 头部脚步内容 headTags[] bodyTags[]
446
+ */
447
+ tags?: {
448
+ headTags?: any[];
449
+ bodyTags?: any[];
450
+ };
451
+ }
452
+ type EntriesType = {
453
+ [entryFilename: string]: HtmlType;
454
+ };
455
+ interface ModuleTransform {
456
+ exclude?: RuleSetRule['exclude'][];
457
+ include?: RuleSetRule['include'][];
458
+ /**
459
+ * 默认exclude /(node_modules|bower_components)/
460
+ * @default false
461
+ */
462
+ defaultExclude?: boolean;
463
+ }
464
+ type CssSassOptionsType = {
465
+ api?: 'modern' | 'modern-compiler';
466
+ sassOptions?: Options<'async'>;
467
+ mode?: 'default' | 'modern';
468
+ implementation?: object | string;
469
+ };
470
+ type EMPShareFastModeType = {
471
+ /**
472
+ * 共享库目录 优先读取 runtimeLib
473
+ */
474
+ runtimeHost?: string;
475
+ /**
476
+ * 共享库全路径
477
+ */
478
+ runtimeLib?: string;
479
+ /**
480
+ * 额外的库添加
481
+ */
482
+ externals?: any;
483
+ /**
484
+ * 当为 UMD时 暴露到 window 的全局变量
485
+ */
486
+ globalVal?: string;
487
+ /**
488
+ * 默认支持React
489
+ */
490
+ framework?: 'react';
491
+ };
492
+ type EMPShareType = ModuleFederationPluginOptions & {
493
+ /**
494
+ * emp 基于库共享模块
495
+ */
496
+ shareLib?: EMPshareLibItemType;
497
+ /**
498
+ * TODO
499
+ * 是否使用 importMap
500
+ */
501
+ useImportMap?: boolean;
502
+ /**
503
+ * 快速模式
504
+ */
505
+ fastMode?: EMPShareFastModeType;
506
+ };
507
+ type EMPshareLibItemType = {
508
+ [module: string]: {
509
+ entry: string;
510
+ global?: string;
511
+ type?: 'js' | 'css';
512
+ } | string | string[];
513
+ };
514
+ type RsTarget = Configuration['target'];
515
+ type AutoPagesType = {
516
+ /**
517
+ * 基于src寻找入口目录
518
+ * @default pages
519
+ */
520
+ path?: string;
521
+ };
522
+ type EmpOptions = {
523
+ /**
524
+ * publicPath 根路径 可参考webpack,业务模式默认为 auto
525
+ * html 部分 publicPath 默认为 undefined,可设置全量域名或子目录适配,也可以单独在html设置 Public
526
+ *
527
+ * @default undefined
528
+ */
529
+ base?: string;
530
+ /**
531
+ * 构建target
532
+ */
533
+ target?: Configuration['target'];
534
+ /**
535
+ * 启动后 自动设置 base 为当前 Ip+port的路径如 base = http://127.0.0.1:8080/ 并且固定 ws 方便代理调试
536
+ */
537
+ autoDevBase?: boolean;
538
+ /**
539
+ * 启动后 进入自动搜寻入口的方式
540
+ * 可以通过 html 或 entries 设置 模版配置
541
+ */
542
+ autoPages?: boolean | AutoPagesType;
543
+ /**
544
+ * 项目代码路径
545
+ * @default 'src'
546
+ */
547
+ appSrc?: string;
548
+ /**
549
+ * 项目代码入口文件 如 `src/index.js`
550
+ * (*)entries 设置后 该选项失效
551
+ * @default 'index.js'
552
+ */
553
+ appEntry?: string;
554
+ build?: BuildType;
555
+ plugins?: EMP3PluginType[];
556
+ html?: HtmlType;
557
+ entries?: EntriesType;
558
+ server?: ServerType;
559
+ debug?: DebugType;
560
+ chain?: (chain: WPChain) => void;
561
+ empShare?: EMPShareType;
562
+ /**
563
+ * css 相关设置
564
+ */
565
+ css?: {
566
+ sass?: CssSassOptionsType;
567
+ };
568
+ /**
569
+ * 模块编译
570
+ * 如 node_modules 模块 是否加入编译
571
+ */
572
+ moduleTransform?: ModuleTransform;
573
+ /**
574
+ * 缓存目录
575
+ * @default 'node_modules/.emp-cache'
576
+ */
577
+ cacheDir?: string;
578
+ /**
579
+ * 全局环境替换
580
+ */
581
+ define?: Record<string, any>;
582
+ /**
583
+ * 是否创建 cjs 的 process.env 或者 esm 的 import.meta.env
584
+ * all 两者创建
585
+ * esm 创建 import.meta.env
586
+ * cjs 创建 process.env
587
+ * none 不创建
588
+ * @default cjs
589
+ */
590
+ defineFix?: 'all' | 'esm' | 'cjs' | 'none';
591
+ /**
592
+ * externals
593
+ */
594
+ externals?: Externals;
595
+ /**
596
+ * resolve
597
+ */
598
+ resolve?: Resolve;
599
+ /**
600
+ * output
601
+ */
602
+ output?: Output;
603
+ /**
604
+ * emp 执行周期
605
+ */
606
+ lifeCycle?: LifeCycleOptions;
607
+ /**
608
+ * ignoreWarnings
609
+ * @default [/Conflicting order/]
610
+ */
611
+ ignoreWarnings?: Configuration['ignoreWarnings'];
612
+ };
613
+
614
+ declare function runScript(): void;
615
+
616
+ declare class DTSBundle {
617
+ list: string[];
618
+ outDir: string;
619
+ aliasName: string;
620
+ setup(outDir: string, aliasName: string): Promise<void>;
621
+ readDts(): Promise<any[]>;
622
+ readFile(src: string): Promise<{
623
+ src: string;
624
+ code: string;
625
+ }>;
626
+ replaceAliasPath({ src, code }: {
627
+ src: string;
628
+ code: string;
629
+ }): {
630
+ code: string;
631
+ src: string;
632
+ mod: string;
633
+ };
634
+ warpDeclareModule(mod: string, code: string): string;
635
+ writeCode(bs: {
636
+ src: string;
637
+ code: string;
638
+ mod: string;
639
+ }[]): Promise<void>;
640
+ }
641
+ declare const _default$2: DTSBundle;
642
+
643
+ declare const _default$1: {
644
+ lightGreen: chalk.ChalkInstance;
645
+ green: chalk.ChalkInstance;
646
+ lightCyan: chalk.ChalkInstance;
647
+ cyan: chalk.ChalkInstance;
648
+ lightRed: chalk.ChalkInstance;
649
+ red: chalk.ChalkInstance;
650
+ yellow: chalk.ChalkInstance;
651
+ orange: chalk.ChalkInstance;
652
+ lightBlue: chalk.ChalkInstance;
653
+ blue: chalk.ChalkInstance;
654
+ white: chalk.ChalkInstance;
655
+ lightMagenta: chalk.ChalkInstance;
656
+ magenta: chalk.ChalkInstance;
657
+ gray: chalk.ChalkInstance;
658
+ };
659
+
660
+ declare class Logger {
661
+ brandName: string;
662
+ fullName: string;
663
+ logLevel: string;
664
+ setup({ brandName, logLevel, fullName }: any): void;
665
+ debug: (...args: any[]) => false | void;
666
+ info: (...args: any[]) => false | void;
667
+ warn: (...args: any[]) => false | void;
668
+ error: (...args: any[]) => false | void;
669
+ blue: (msg: string) => void;
670
+ cyan: (msg: string) => void;
671
+ magenta: (msg: string) => void;
672
+ green: (msg: string) => void;
673
+ yellow: (msg: string) => void;
674
+ red: (msg: string) => void;
675
+ sysError: (msg: string) => void;
676
+ link: (msg: string) => string;
677
+ title: (msg: string) => void;
678
+ }
679
+ declare const _default: Logger;
680
+
681
+ declare const index_glob: typeof glob;
682
+ declare const index_utils: typeof utils;
683
+ declare namespace index {
684
+ export { chalk__default as chalk, _default$1 as color, index_glob as glob, _default as logger, index_utils as utils };
685
+ }
686
+
687
+ type EMPConfigFn = (store: GlobalStore) => EmpOptions | Promise<EmpOptions>;
688
+ type EMPConfigExport = EmpOptions | EMPConfigFn;
689
+ declare function defineConfig(config: EMPConfigExport): EMPConfigExport;
690
+
691
+ export { type EMP3PluginFnType, type EMP3PluginType, type EMPConfigExport, type EMPConfigFn, type EmpOptions, GlobalStore, defineConfig, _default$2 as dts, index as empHelper, runScript, _default$3 as store };