@empjs/cli 3.0.0-rc.8 → 3.0.0

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 (48) hide show
  1. package/client.d.ts +1 -4
  2. package/dist/index.cjs +18 -0
  3. package/dist/index.d.cts +691 -0
  4. package/dist/index.d.ts +691 -12
  5. package/dist/index.js +17 -15
  6. package/package.json +40 -34
  7. package/template/favicon-128.ico +0 -0
  8. package/template/favicon-256.ico +0 -0
  9. package/template/favicon-64.ico +0 -0
  10. package/template/favicon.ico +0 -0
  11. package/template/index.html +3 -0
  12. package/dist/helper/buildPrint.d.ts +0 -15
  13. package/dist/helper/getPort.d.ts +0 -6
  14. package/dist/helper/hmr/client.d.ts +0 -0
  15. package/dist/helper/hmr/config.d.ts +0 -0
  16. package/dist/helper/hmr/index.d.ts +0 -0
  17. package/dist/helper/hmr/overlay.d.ts +0 -0
  18. package/dist/helper/hmr/process-update.d.ts +0 -1
  19. package/dist/helper/ipAddress.d.ts +0 -27
  20. package/dist/helper/logger.d.ts +0 -21
  21. package/dist/helper/nodePolyfill.d.ts +0 -7
  22. package/dist/helper/openBrowser.d.ts +0 -2
  23. package/dist/helper/utils.d.ts +0 -15
  24. package/dist/script/base.d.ts +0 -26
  25. package/dist/script/build.d.ts +0 -6
  26. package/dist/script/bundle.d.ts +0 -6
  27. package/dist/script/dev.d.ts +0 -9
  28. package/dist/script/devServer.d.ts +0 -0
  29. package/dist/script/dts.d.ts +0 -27
  30. package/dist/script/httpBase.d.ts +0 -10
  31. package/dist/script/index.d.ts +0 -1
  32. package/dist/script/serve.d.ts +0 -9
  33. package/dist/store/cycle/autoDevBase.d.ts +0 -8
  34. package/dist/store/empConfig.d.ts +0 -64
  35. package/dist/store/empShare/fastMode.d.ts +0 -18
  36. package/dist/store/empShare/index.d.ts +0 -30
  37. package/dist/store/index.d.ts +0 -125
  38. package/dist/store/lifeCycle.d.ts +0 -18
  39. package/dist/store/rspack/common.d.ts +0 -12
  40. package/dist/store/rspack/css.d.ts +0 -10
  41. package/dist/store/rspack/entries.d.ts +0 -25
  42. package/dist/store/rspack/hook.d.ts +0 -24
  43. package/dist/store/rspack/index.d.ts +0 -7
  44. package/dist/store/rspack/module.d.ts +0 -20
  45. package/dist/store/rspack/plugin.d.ts +0 -13
  46. package/dist/types/config.d.ts +0 -338
  47. package/dist/types/env.d.ts +0 -1
  48. 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 empRoot
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
+ /**
264
+ * 同步 chain 配置到 rsConfig
265
+ */
266
+ toConfig(): void;
267
+ /**
268
+ * 打印 config
269
+ */
270
+ logConfig(): void;
271
+ get browserslistOptions(): {
272
+ default: string[];
273
+ h5: string[];
274
+ node: string[];
275
+ };
276
+ }
277
+ declare const _default$3: GlobalStore;
278
+
279
+ type EMP3PluginType = {
280
+ name: string;
281
+ rsConfig: (store: GlobalStore) => Promise<void>;
282
+ };
283
+ type EMP3PluginFnType = (o: any) => EMP3PluginType;
284
+
285
+ type LoggerType = 'debug' | 'info' | 'warn' | 'error';
286
+ type DebugType = {
287
+ loggerLevel?: LoggerType;
288
+ clearLog?: boolean;
289
+ progress?: boolean;
290
+ showRsconfig?: boolean | string | InspectOptions;
291
+ showPerformance?: boolean;
292
+ rspackCache?: boolean;
293
+ newTreeshaking?: boolean;
294
+ /**
295
+ * 是否显示执行日志
296
+ * @default false
297
+ */
298
+ infrastructureLogging?: Configuration['infrastructureLogging'];
299
+ };
300
+ type ServerType = Configuration$1 & {
301
+ /**
302
+ * 访问 host
303
+ * @default '0.0.0.0'
304
+ */
305
+ host?: string;
306
+ /**
307
+ * 访问 端口
308
+ * @default 8000
309
+ */
310
+ port?: number;
311
+ /**
312
+ * 自动打开
313
+ * @default false
314
+ */
315
+ open?: Configuration$1['open'];
316
+ /**
317
+ * 热重载
318
+ * @default true
319
+ */
320
+ hot?: Configuration$1['hot'];
321
+ };
322
+ type BuildType = {
323
+ /**
324
+ * 生成代码目录
325
+ * @default 'dist'
326
+ */
327
+ outDir?: string;
328
+ /**
329
+ * 生成静态目录
330
+ * @default 'assets'
331
+ */
332
+ assetsDir?: string;
333
+ /**
334
+ * 生成包含 js,css,asset 合集目录
335
+ * @default ''
336
+ */
337
+ staticDir?: string;
338
+ /**
339
+ * 静态文件路径
340
+ * @default 'public'
341
+ */
342
+ publicDir?: string;
343
+ /**
344
+ * named 使用有意义、方便调试的内容当作模块 id。此选项会在开发环境下默认开启。
345
+ * deterministic 使用对模块标识符哈希后的数字当作模块 id,有益于长期缓存。此选项会在生产环境下默认开启。
346
+ */
347
+ moduleIds?: 'named' | 'deterministic';
348
+ /**
349
+ * chunkIds
350
+ * @default named|deterministic
351
+ */
352
+ chunkIds?: false | 'natural' | 'named' | 'deterministic' | 'size' | 'total-size';
353
+ /**
354
+ * 是否生成 source map
355
+ * @default true
356
+ */
357
+ sourcemap?: boolean;
358
+ /**
359
+ * sourcemap 类型
360
+ * 默认 source-map
361
+ */
362
+ devtool?: Configuration['devtool'];
363
+ /**
364
+ * 是否压缩
365
+ * @default true
366
+ */
367
+ minify?: boolean;
368
+ /**
369
+ * 设置内置压缩器配置
370
+ * @default {}
371
+ */
372
+ minOptions?: SwcJsMinimizerRspackPluginOptions;
373
+ /**
374
+ * 生成代码 参考 https://swc.rs/docs/configuring-swc#jsctarget
375
+ */
376
+ target?: JscTarget;
377
+ /**
378
+ * 注入兼容代码
379
+ * module federation 入口 建议使用 entry
380
+ * @default false
381
+ */
382
+ polyfill?: 'entry' | 'usage' | false;
383
+ /**
384
+ * 手动注入兼容代码,避免usage出现分析纰漏问题
385
+ * @default ['es.object.values', 'es.object.entries', 'es.array.flat']
386
+ */
387
+ polyfillInclude?: string[];
388
+ /**
389
+ * 选择core-js的兼容版本有助于切换适当的代码体积
390
+ * @default stable
391
+ */
392
+ coreJsFeatures?: 'full' | 'actual' | 'stable' | 'es';
393
+ /**
394
+ * @swc/helpers 外置
395
+ * @default false
396
+ */
397
+ externalHelpers?: boolean;
398
+ /**
399
+ * 浏览器 兼容版本
400
+ */
401
+ browserslist?: string[];
402
+ /**
403
+ * swc 配置
404
+ */
405
+ swcConfig?: {
406
+ transform?: {
407
+ useDefineForClassFields?: boolean;
408
+ };
409
+ preserveAllComments?: boolean;
410
+ };
411
+ };
412
+ type JscTarget = 'es3' | 'es5' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022';
413
+ interface HtmlType extends HtmlRspackPluginOptions {
414
+ /**
415
+ * 基于项目的根目录 index.html url
416
+ * @default src/index.html
417
+ */
418
+ template?: string;
419
+ /**
420
+ * 基于项目的根目录 favicon url
421
+ * @default src/favicon.ico
422
+ */
423
+ favicon?: string;
424
+ /**
425
+ * 网站语言
426
+ */
427
+ lang?: string;
428
+ /**
429
+ * externals 文件插入到html
430
+ */
431
+ files?: {
432
+ /**
433
+ * 插入 css
434
+ */
435
+ css?: string[];
436
+ /**
437
+ * 插入 js
438
+ */
439
+ js?: string[];
440
+ };
441
+ /**
442
+ * 自定义 头部脚步内容 headTags[] bodyTags[]
443
+ */
444
+ tags?: {
445
+ headTags?: any[];
446
+ bodyTags?: any[];
447
+ };
448
+ }
449
+ type EntriesType = {
450
+ [entryFilename: string]: HtmlType;
451
+ };
452
+ interface ModuleTransform {
453
+ exclude?: RuleSetRule['exclude'][];
454
+ include?: RuleSetRule['include'][];
455
+ /**
456
+ * 默认exclude /(node_modules|bower_components)/
457
+ * @default false
458
+ */
459
+ defaultExclude?: boolean;
460
+ }
461
+ type CssSassOptionsType = {
462
+ api?: 'modern' | 'modern-compiler';
463
+ sassOptions?: Options<'async'>;
464
+ mode?: 'default' | 'modern' | 'legacy';
465
+ implementation?: object | string;
466
+ };
467
+ type EMPShareFastModeType = {
468
+ /**
469
+ * 共享库目录 优先读取 runtimeLib
470
+ */
471
+ runtimeHost?: string;
472
+ /**
473
+ * 共享库全路径
474
+ */
475
+ runtimeLib?: string;
476
+ /**
477
+ * 额外的库添加
478
+ */
479
+ externals?: any;
480
+ /**
481
+ * 当为 UMD时 暴露到 window 的全局变量
482
+ */
483
+ globalVal?: string;
484
+ /**
485
+ * 默认支持React
486
+ */
487
+ framework?: 'react';
488
+ };
489
+ type EMPShareType = ModuleFederationPluginOptions & {
490
+ /**
491
+ * emp 基于库共享模块
492
+ */
493
+ shareLib?: EMPshareLibItemType;
494
+ /**
495
+ * TODO
496
+ * 是否使用 importMap
497
+ */
498
+ useImportMap?: boolean;
499
+ /**
500
+ * 快速模式
501
+ */
502
+ fastMode?: EMPShareFastModeType;
503
+ };
504
+ type EMPshareLibItemType = {
505
+ [module: string]: {
506
+ entry: string;
507
+ global?: string;
508
+ type?: 'js' | 'css';
509
+ } | string | string[];
510
+ };
511
+ type RsTarget = Configuration['target'];
512
+ type AutoPagesType = {
513
+ /**
514
+ * 基于src寻找入口目录
515
+ * @default pages
516
+ */
517
+ path?: string;
518
+ };
519
+ type EmpOptions = {
520
+ /**
521
+ * publicPath 根路径 可参考webpack,业务模式默认为 auto
522
+ * html 部分 publicPath 默认为 undefined,可设置全量域名或子目录适配,也可以单独在html设置 Public
523
+ *
524
+ * @default undefined
525
+ */
526
+ base?: string;
527
+ /**
528
+ * 构建target
529
+ */
530
+ target?: Configuration['target'];
531
+ /**
532
+ * 启动后 自动设置 base 为当前 Ip+port的路径如 base = http://127.0.0.1:8080/ 并且固定 ws 方便代理调试
533
+ */
534
+ autoDevBase?: boolean;
535
+ /**
536
+ * 启动后 进入自动搜寻入口的方式
537
+ * 可以通过 html 或 entries 设置 模版配置
538
+ */
539
+ autoPages?: boolean | AutoPagesType;
540
+ /**
541
+ * 项目代码路径
542
+ * @default 'src'
543
+ */
544
+ appSrc?: string;
545
+ /**
546
+ * 项目代码入口文件 如 `src/index.js`
547
+ * (*)entries 设置后 该选项失效
548
+ * @default 'index.js'
549
+ */
550
+ appEntry?: string;
551
+ build?: BuildType;
552
+ plugins?: EMP3PluginType[];
553
+ html?: HtmlType;
554
+ entries?: EntriesType;
555
+ server?: ServerType;
556
+ debug?: DebugType;
557
+ chain?: (chain: WPChain) => void;
558
+ empShare?: EMPShareType;
559
+ /**
560
+ * css 相关设置
561
+ */
562
+ css?: {
563
+ sass?: CssSassOptionsType;
564
+ };
565
+ /**
566
+ * 模块编译
567
+ * 如 node_modules 模块 是否加入编译
568
+ */
569
+ moduleTransform?: ModuleTransform;
570
+ /**
571
+ * 缓存目录
572
+ * @default 'node_modules/.emp-cache'
573
+ */
574
+ cacheDir?: string;
575
+ /**
576
+ * 全局环境替换
577
+ */
578
+ define?: Record<string, any>;
579
+ /**
580
+ * 是否创建 cjs 的 process.env 或者 esm 的 import.meta.env
581
+ * all 两者创建
582
+ * esm 创建 import.meta.env
583
+ * cjs 创建 process.env
584
+ * none 不创建
585
+ * @default cjs
586
+ */
587
+ defineFix?: 'all' | 'esm' | 'cjs' | 'none';
588
+ /**
589
+ * externals
590
+ */
591
+ externals?: Externals;
592
+ /**
593
+ * resolve
594
+ */
595
+ resolve?: Resolve;
596
+ /**
597
+ * output
598
+ */
599
+ output?: Output;
600
+ /**
601
+ * emp 执行周期
602
+ */
603
+ lifeCycle?: LifeCycleOptions;
604
+ /**
605
+ * ignoreWarnings
606
+ * @default [/Conflicting order/]
607
+ */
608
+ ignoreWarnings?: Configuration['ignoreWarnings'];
609
+ };
610
+
611
+ declare function runScript(): void;
612
+
613
+ declare class DTSBundle {
614
+ list: string[];
615
+ outDir: string;
616
+ aliasName: string;
617
+ setup(outDir: string, aliasName: string): Promise<void>;
618
+ readDts(): Promise<any[]>;
619
+ readFile(src: string): Promise<{
620
+ src: string;
621
+ code: string;
622
+ }>;
623
+ replaceAliasPath({ src, code }: {
624
+ src: string;
625
+ code: string;
626
+ }): {
627
+ code: string;
628
+ src: string;
629
+ mod: string;
630
+ };
631
+ warpDeclareModule(mod: string, code: string): string;
632
+ writeCode(bs: {
633
+ src: string;
634
+ code: string;
635
+ mod: string;
636
+ }[]): Promise<void>;
637
+ }
638
+ declare const _default$2: DTSBundle;
639
+
640
+ declare const _default$1: {
641
+ lightGreen: chalk.ChalkInstance;
642
+ green: chalk.ChalkInstance;
643
+ lightCyan: chalk.ChalkInstance;
644
+ cyan: chalk.ChalkInstance;
645
+ lightRed: chalk.ChalkInstance;
646
+ red: chalk.ChalkInstance;
647
+ yellow: chalk.ChalkInstance;
648
+ orange: chalk.ChalkInstance;
649
+ lightBlue: chalk.ChalkInstance;
650
+ blue: chalk.ChalkInstance;
651
+ white: chalk.ChalkInstance;
652
+ lightMagenta: chalk.ChalkInstance;
653
+ magenta: chalk.ChalkInstance;
654
+ gray: chalk.ChalkInstance;
655
+ };
656
+
657
+ declare class Logger {
658
+ brandName: string;
659
+ fullName: string;
660
+ logLevel: string;
661
+ isLogTime: boolean;
662
+ setup({ brandName, logLevel, fullName }: any): void;
663
+ time: (...args: any[]) => false | void;
664
+ timeEnd: (...args: any[]) => false | 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 };