1 | export type Task<T> = () => Promise<T>;
|
2 | export type SourceMapInput = import("@jridgewell/trace-mapping").SourceMapInput;
|
3 | export type TerserFormatOptions = import("terser").FormatOptions;
|
4 | export type TerserOptions = import("terser").MinifyOptions;
|
5 | export type TerserCompressOptions = import("terser").CompressOptions;
|
6 | export type TerserECMA = import("terser").ECMA;
|
7 | export type ExtractCommentsOptions =
|
8 | import("./index.js").ExtractCommentsOptions;
|
9 | export type ExtractCommentsFunction =
|
10 | import("./index.js").ExtractCommentsFunction;
|
11 | export type ExtractCommentsCondition =
|
12 | import("./index.js").ExtractCommentsCondition;
|
13 | export type Input = import("./index.js").Input;
|
14 | export type MinimizedResult = import("./index.js").MinimizedResult;
|
15 | export type PredefinedOptions = import("./index.js").PredefinedOptions;
|
16 | export type CustomOptions = import("./index.js").CustomOptions;
|
17 | export type ExtractedComments = Array<string>;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export function throttleAll<T>(limit: number, tasks: Task<T>[]): Promise<T[]>;
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export function memoize<T>(fn: (() => any) | undefined): () => T;
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 | export function terserMinify(
|
44 | input: Input,
|
45 | sourceMap: SourceMapInput | undefined,
|
46 | minimizerOptions: PredefinedOptions & CustomOptions,
|
47 | extractComments: ExtractCommentsOptions | undefined
|
48 | ): Promise<MinimizedResult>;
|
49 | export namespace terserMinify {
|
50 | |
51 |
|
52 |
|
53 | function getMinimizerVersion(): string | undefined;
|
54 | }
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | export function uglifyJsMinify(
|
63 | input: Input,
|
64 | sourceMap: SourceMapInput | undefined,
|
65 | minimizerOptions: PredefinedOptions & CustomOptions,
|
66 | extractComments: ExtractCommentsOptions | undefined
|
67 | ): Promise<MinimizedResult>;
|
68 | export namespace uglifyJsMinify {
|
69 | |
70 |
|
71 |
|
72 | function getMinimizerVersion(): string | undefined;
|
73 | }
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 | export function swcMinify(
|
81 | input: Input,
|
82 | sourceMap: SourceMapInput | undefined,
|
83 | minimizerOptions: PredefinedOptions & CustomOptions
|
84 | ): Promise<MinimizedResult>;
|
85 | export namespace swcMinify {
|
86 | |
87 |
|
88 |
|
89 | function getMinimizerVersion(): string | undefined;
|
90 | }
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 | export function esbuildMinify(
|
98 | input: Input,
|
99 | sourceMap: SourceMapInput | undefined,
|
100 | minimizerOptions: PredefinedOptions & CustomOptions
|
101 | ): Promise<MinimizedResult>;
|
102 | export namespace esbuildMinify {
|
103 | |
104 |
|
105 |
|
106 | function getMinimizerVersion(): string | undefined;
|
107 | }
|