terser 3.10.13 → 3.13.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.

Potentially problematic release.


This version of terser might be problematic. Click here for more details.

@@ -0,0 +1,790 @@
1
+ import { RawSourceMap } from 'source-map';
2
+
3
+ export type ECMA = 5 | 6 | 7 | 8 | 9;
4
+
5
+ export interface ParseOptions {
6
+ bare_returns?: boolean;
7
+ ecma?: ECMA;
8
+ html5_comments?: boolean;
9
+ shebang?: boolean;
10
+ }
11
+
12
+ export interface CompressOptions {
13
+ arguments?: boolean;
14
+ arrows?: boolean;
15
+ booleans?: boolean;
16
+ collapse_vars?: boolean;
17
+ comparisons?: boolean;
18
+ conditionals?: boolean;
19
+ dead_code?: boolean;
20
+ defaults?: boolean;
21
+ directives?: boolean;
22
+ drop_console?: boolean;
23
+ drop_debugger?: boolean;
24
+ evaluate?: boolean;
25
+ expression?: boolean;
26
+ global_defs?: object;
27
+ hoist_funs?: boolean;
28
+ hoist_props?: boolean;
29
+ hoist_vars?: boolean;
30
+ if_return?: boolean;
31
+ inline?: boolean | InlineFunctions;
32
+ join_vars?: boolean;
33
+ keep_classnames?: boolean | RegExp;
34
+ keep_fargs?: boolean;
35
+ keep_fnames?: boolean | RegExp;
36
+ keep_infinity?: boolean;
37
+ loops?: boolean;
38
+ negate_iife?: boolean;
39
+ passes?: number;
40
+ properties?: boolean;
41
+ pure_funcs?: string[];
42
+ pure_getters?: boolean | 'strict';
43
+ reduce_funcs?: boolean;
44
+ reduce_vars?: boolean;
45
+ sequences?: boolean | number;
46
+ side_effects?: boolean;
47
+ switches?: boolean;
48
+ toplevel?: boolean;
49
+ top_retain?: null | string | string[] | RegExp;
50
+ typeofs?: boolean;
51
+ unsafe?: boolean;
52
+ unsafe_arrows?: boolean;
53
+ unsafe_comps?: boolean;
54
+ unsafe_Function?: boolean;
55
+ unsafe_math?: boolean;
56
+ unsafe_methods?: boolean;
57
+ unsafe_proto?: boolean;
58
+ unsafe_regexp?: boolean;
59
+ unsafe_undefined?: boolean;
60
+ unused?: boolean;
61
+ warnings?: boolean;
62
+ }
63
+
64
+ export enum InlineFunctions {
65
+ Disabled = 0,
66
+ SimpleFunctions = 1,
67
+ WithArguments = 2,
68
+ WithArgumentsAndVariables = 3
69
+ }
70
+
71
+ export interface MangleOptions {
72
+ eval?: boolean;
73
+ keep_classnames?: boolean | RegExp;
74
+ keep_fnames?: boolean | RegExp;
75
+ module?: boolean;
76
+ properties?: boolean | ManglePropertiesOptions;
77
+ reserved?: string[];
78
+ safari10?: boolean;
79
+ toplevel?: boolean;
80
+ }
81
+
82
+ export interface ManglePropertiesOptions {
83
+ builtins?: boolean;
84
+ debug?: boolean;
85
+ keep_quoted?: boolean;
86
+ regex?: RegExp;
87
+ reserved?: string[];
88
+ }
89
+
90
+ export interface OutputOptions {
91
+ ascii_only?: boolean;
92
+ beautify?: boolean;
93
+ braces?: boolean;
94
+ comments?: boolean | 'all' | 'some' | RegExp;
95
+ ecma?: ECMA;
96
+ indent_level?: number;
97
+ indent_start?: boolean;
98
+ inline_script?: boolean;
99
+ ie8?: boolean;
100
+ keep_quoted_props?: boolean;
101
+ max_line_len?: boolean;
102
+ preamble?: string;
103
+ quote_keys?: boolean;
104
+ quote_style?: OutputQuoteStyle;
105
+ safari10?: boolean;
106
+ semicolons?: boolean;
107
+ shebang?: boolean;
108
+ shorthand?: boolean;
109
+ source_map?: SourceMapOptions;
110
+ webkit?: boolean;
111
+ width?: number;
112
+ wrap_iife?: boolean;
113
+ }
114
+
115
+ export enum OutputQuoteStyle {
116
+ PreferDouble = 0,
117
+ AlwaysSingle = 1,
118
+ AlwaysDouble = 2,
119
+ AlwaysOriginal = 3
120
+ }
121
+
122
+ export interface MinifyOptions {
123
+ compress?: boolean | CompressOptions;
124
+ ecma?: ECMA;
125
+ ie8?: boolean;
126
+ keep_classnames?: boolean | RegExp;
127
+ keep_fnames?: boolean | RegExp;
128
+ mangle?: boolean | MangleOptions;
129
+ module?: boolean;
130
+ nameCache?: object;
131
+ output?: OutputOptions;
132
+ parse?: ParseOptions;
133
+ safari10?: boolean;
134
+ sourceMap?: boolean | SourceMapOptions;
135
+ toplevel?: boolean;
136
+ warnings?: boolean | 'verbose';
137
+ }
138
+
139
+ export interface MinifyOutput {
140
+ ast?: AST_Node;
141
+ code?: string;
142
+ error?: Error;
143
+ map?: string;
144
+ warnings?: string[];
145
+ }
146
+
147
+ export interface SourceMapOptions {
148
+ content?: RawSourceMap;
149
+ includeSources?: boolean;
150
+ filename?: string;
151
+ root?: string;
152
+ url?: string | 'inline';
153
+ }
154
+
155
+ declare function parse(text: string, options?: ParseOptions): AST_Node;
156
+
157
+ export class TreeWalker {
158
+ constructor(callback: (node: AST_Node, descend?: (node: AST_Node) => void) => boolean | undefined);
159
+ directives: object;
160
+ find_parent(type: AST_Node): AST_Node | undefined;
161
+ has_directive(type: string): boolean;
162
+ loopcontrol_target(node: AST_Node): AST_Node | undefined;
163
+ parent(n: number): AST_Node | undefined;
164
+ pop(): void;
165
+ push(node: AST_Node): void;
166
+ self(): AST_Node | undefined;
167
+ stack: AST_Node[];
168
+ visit: (node: AST_Node, descend: boolean) => any;
169
+ }
170
+
171
+ export class TreeTransformer extends TreeWalker {
172
+ constructor(
173
+ before: (node: AST_Node, descend?: (node: AST_Node, tw: TreeWalker) => void, in_list?: boolean) => AST_Node | undefined,
174
+ after?: (node: AST_Node, in_list?: boolean) => AST_Node | undefined
175
+ );
176
+ before: (node: AST_Node) => AST_Node;
177
+ after?: (node: AST_Node) => AST_Node;
178
+ }
179
+
180
+ export function push_uniq<T>(array: T[], el: T): void;
181
+
182
+ type DictEachCallback = (val: any, key: string) => any;
183
+
184
+ export class Dictionary {
185
+ static fromObject(obj: object): Dictionary;
186
+ add(key: string, val: any): this;
187
+ clone(): Dictionary;
188
+ del(key: string): this;
189
+ each(fn: DictEachCallback): void;
190
+ get(key: string): any;
191
+ has(key: string): boolean;
192
+ map(fn: DictEachCallback): any[];
193
+ set(key: string, val: any): this;
194
+ size(): number;
195
+ }
196
+
197
+ export function minify(files: string | string[] | { [file: string]: string } | AST_Node, options?: MinifyOptions): MinifyOutput;
198
+
199
+ export class AST_Node {
200
+ constructor(props?: object);
201
+ static BASE?: AST_Node;
202
+ static PROPS: string[];
203
+ static SELF_PROPS: string[];
204
+ static SUBCLASSES: AST_Node[];
205
+ static documentation: string;
206
+ static propdoc?: Record<string, string>;
207
+ static expressions?: AST_Node[];
208
+ static warn?: (text: string, props: any) => void;
209
+ static from_mozilla_ast?: (node: AST_Node) => any;
210
+ walk: (visitor: TreeWalker) => void;
211
+ print_to_string: (options?: OutputOptions) => string;
212
+ transform: (tt: TreeTransformer, in_list?: boolean) => AST_Node;
213
+ TYPE: string;
214
+ CTOR: typeof AST_Node;
215
+ }
216
+
217
+ declare class SymbolDef {
218
+ constructor(scope?: AST_Scope, orig?: object, init?: object);
219
+ name: string;
220
+ orig: AST_SymbolRef[];
221
+ init: AST_SymbolRef;
222
+ eliminated: number;
223
+ scope: AST_Scope;
224
+ references: AST_SymbolRef[];
225
+ replaced: number;
226
+ global: boolean;
227
+ export: boolean;
228
+ mangled_name: null | string;
229
+ undeclared: boolean;
230
+ id: number;
231
+ }
232
+
233
+ type ArgType = AST_SymbolFunarg | AST_DefaultAssign | AST_Destructuring | AST_Expansion;
234
+
235
+ declare class AST_Statement extends AST_Node {
236
+ constructor(props?: object);
237
+ }
238
+
239
+ declare class AST_Debugger extends AST_Statement {
240
+ constructor(props?: object);
241
+ }
242
+
243
+ declare class AST_Directive extends AST_Statement {
244
+ constructor(props?: object);
245
+ value: string;
246
+ quote: string;
247
+ }
248
+
249
+ declare class AST_SimpleStatement extends AST_Statement {
250
+ constructor(props?: object);
251
+ body: AST_Node[];
252
+ }
253
+
254
+ declare class AST_Block extends AST_Statement {
255
+ constructor(props?: object);
256
+ body: AST_Node[];
257
+ block_scope: AST_Scope | null;
258
+ }
259
+
260
+ declare class AST_BlockStatement extends AST_Block {
261
+ constructor(props?: object);
262
+ }
263
+
264
+ declare class AST_Scope extends AST_Block {
265
+ constructor(props?: object);
266
+ variables: any;
267
+ functions: any;
268
+ uses_with: boolean;
269
+ uses_eval: boolean;
270
+ parent_scope: AST_Scope | null;
271
+ enclosed: any;
272
+ cname: any;
273
+ }
274
+
275
+ declare class AST_Toplevel extends AST_Scope {
276
+ constructor(props?: object);
277
+ globals: any;
278
+ }
279
+
280
+ declare class AST_Lambda extends AST_Scope {
281
+ constructor(props?: object);
282
+ name: AST_SymbolDeclaration | null;
283
+ argnames: ArgType[];
284
+ uses_arguments: boolean;
285
+ is_generator: boolean;
286
+ async: boolean;
287
+ }
288
+
289
+ declare class AST_Accessor extends AST_Lambda {
290
+ constructor(props?: object);
291
+ }
292
+
293
+ declare class AST_Function extends AST_Lambda {
294
+ constructor(props?: object);
295
+ inlined: boolean;
296
+ }
297
+
298
+ declare class AST_Arrow extends AST_Lambda {
299
+ constructor(props?: object);
300
+ inlined: boolean;
301
+ }
302
+
303
+ declare class AST_Defun extends AST_Lambda {
304
+ constructor(props?: object);
305
+ inlined: boolean;
306
+ }
307
+
308
+ declare class AST_Class extends AST_Scope {
309
+ constructor(props?: object);
310
+ name: AST_SymbolClass | AST_SymbolDefClass | null;
311
+ extends: AST_Node | null;
312
+ properties: AST_ObjectProperty[];
313
+ inlined: boolean;
314
+ }
315
+
316
+ declare class AST_DefClass extends AST_Class {
317
+ constructor(props?: object);
318
+ }
319
+
320
+ declare class AST_ClassExpression extends AST_Class {
321
+ constructor(props?: object);
322
+ }
323
+
324
+ declare class AST_Switch extends AST_Block {
325
+ constructor(props?: object);
326
+ expression: AST_Node;
327
+ }
328
+
329
+ declare class AST_SwitchBranch extends AST_Block {
330
+ constructor(props?: object);
331
+ }
332
+
333
+ declare class AST_Default extends AST_SwitchBranch {
334
+ constructor(props?: object);
335
+ }
336
+
337
+ declare class AST_Case extends AST_SwitchBranch {
338
+ constructor(props?: object);
339
+ expression: AST_Node;
340
+ }
341
+
342
+ declare class AST_Try extends AST_Block {
343
+ constructor(props?: object);
344
+ bcatch: AST_Catch;
345
+ bfinally: null | AST_Finally;
346
+ }
347
+
348
+ declare class AST_Catch extends AST_Block {
349
+ constructor(props?: object);
350
+ argname: ArgType;
351
+ }
352
+
353
+ declare class AST_Finally extends AST_Block {
354
+ constructor(props?: object);
355
+ }
356
+
357
+ declare class AST_EmptyStatement extends AST_Statement {
358
+ constructor(props?: object);
359
+ }
360
+
361
+ declare class AST_StatementWithBody extends AST_Statement {
362
+ constructor(props?: object);
363
+ body: AST_Node[];
364
+ }
365
+
366
+ declare class AST_LabeledStatement extends AST_StatementWithBody {
367
+ constructor(props?: object);
368
+ label: AST_Label;
369
+ }
370
+
371
+ declare class AST_IterationStatement extends AST_StatementWithBody {
372
+ constructor(props?: object);
373
+ block_scope: AST_Scope | null;
374
+ }
375
+
376
+ declare class AST_DWLoop extends AST_IterationStatement {
377
+ constructor(props?: object);
378
+ condition: AST_Node;
379
+ }
380
+
381
+ declare class AST_Do extends AST_DWLoop {
382
+ constructor(props?: object);
383
+ }
384
+
385
+ declare class AST_While extends AST_DWLoop {
386
+ constructor(props?: object);
387
+ }
388
+
389
+ declare class AST_For extends AST_IterationStatement {
390
+ constructor(props?: object);
391
+ init: AST_Node | null;
392
+ condition: AST_Node | null;
393
+ step: AST_Node | null;
394
+ }
395
+
396
+ declare class AST_ForIn extends AST_IterationStatement {
397
+ constructor(props?: object);
398
+ init: AST_Node | null;
399
+ object: AST_Node;
400
+ }
401
+
402
+ declare class AST_ForOf extends AST_ForIn {
403
+ constructor(props?: object);
404
+ await: boolean;
405
+ }
406
+
407
+ declare class AST_With extends AST_StatementWithBody {
408
+ constructor(props?: object);
409
+ expression: AST_Node;
410
+ }
411
+
412
+ declare class AST_If extends AST_StatementWithBody {
413
+ constructor(props?: object);
414
+ condition: AST_Node;
415
+ alternative: AST_Node | null;
416
+ }
417
+
418
+ declare class AST_Jump extends AST_Statement {
419
+ constructor(props?: object);
420
+ }
421
+
422
+ declare class AST_Exit extends AST_Jump {
423
+ constructor(props?: object);
424
+ value: AST_Node | null;
425
+ }
426
+
427
+ declare class AST_Return extends AST_Exit {
428
+ constructor(props?: object);
429
+ }
430
+
431
+ declare class AST_Throw extends AST_Exit {
432
+ constructor(props?: object);
433
+ }
434
+
435
+ declare class AST_LoopControl extends AST_Jump {
436
+ constructor(props?: object);
437
+ label: null | AST_LabelRef;
438
+ }
439
+
440
+ declare class AST_Break extends AST_LoopControl {
441
+ constructor(props?: object);
442
+ }
443
+
444
+ declare class AST_Continue extends AST_LoopControl {
445
+ constructor(props?: object);
446
+ }
447
+
448
+ declare class AST_Definitions extends AST_Statement {
449
+ constructor(props?: object);
450
+ definitions: AST_VarDef[];
451
+ }
452
+
453
+ declare class AST_Var extends AST_Definitions {
454
+ constructor(props?: object);
455
+ }
456
+
457
+ declare class AST_Let extends AST_Definitions {
458
+ constructor(props?: object);
459
+ }
460
+
461
+ declare class AST_Const extends AST_Definitions {
462
+ constructor(props?: object);
463
+ }
464
+
465
+ declare class AST_Export extends AST_Statement {
466
+ constructor(props?: object);
467
+ exported_definition: AST_Definitions | AST_Lambda | AST_DefClass | null;
468
+ exported_value: AST_Node | null;
469
+ is_default: boolean;
470
+ exported_names: AST_NameMapping[];
471
+ module_name: AST_String;
472
+ }
473
+
474
+ declare class AST_Expansion extends AST_Node {
475
+ constructor(props?: object);
476
+ expression: AST_Node;
477
+ }
478
+
479
+ declare class AST_Destructuring extends AST_Node {
480
+ constructor(props?: object);
481
+ names: AST_Node[];
482
+ is_array: boolean;
483
+ }
484
+
485
+ declare class AST_PrefixedTemplateString extends AST_Node {
486
+ constructor(props?: object);
487
+ template_string: AST_TemplateString;
488
+ prefix: AST_Node;
489
+ }
490
+
491
+ declare class AST_TemplateString extends AST_Node {
492
+ constructor(props?: object);
493
+ segments: AST_Node[];
494
+ }
495
+
496
+ declare class AST_TemplateSegment extends AST_Node {
497
+ constructor(props?: object);
498
+ value: string;
499
+ raw: string;
500
+ }
501
+
502
+ declare class AST_NameMapping extends AST_Node {
503
+ constructor(props?: object);
504
+ foreign_name: AST_Symbol;
505
+ name: AST_SymbolExport | AST_SymbolImport;
506
+ }
507
+
508
+ declare class AST_Import extends AST_Node {
509
+ constructor(props?: object);
510
+ imported_name: null | AST_SymbolImport;
511
+ imported_names: AST_NameMapping[];
512
+ module_name: AST_String;
513
+ }
514
+
515
+ declare class AST_VarDef extends AST_Node {
516
+ constructor(props?: object);
517
+ name: AST_Destructuring | AST_SymbolConst | AST_SymbolLet | AST_SymbolVar;
518
+ value: AST_Node | null;
519
+ }
520
+
521
+ declare class AST_Call extends AST_Node {
522
+ constructor(props?: object);
523
+ expression: AST_Node;
524
+ args: AST_Node[];
525
+ }
526
+
527
+ declare class AST_New extends AST_Call {
528
+ constructor(props?: object);
529
+ }
530
+
531
+ declare class AST_Sequence extends AST_Node {
532
+ constructor(props?: object);
533
+ expressions: AST_Node[];
534
+ }
535
+
536
+ declare class AST_PropAccess extends AST_Node {
537
+ constructor(props?: object);
538
+ expression: AST_Node;
539
+ property: AST_Node | string;
540
+ }
541
+
542
+ declare class AST_Dot extends AST_PropAccess {
543
+ constructor(props?: object);
544
+ }
545
+
546
+ declare class AST_Sub extends AST_PropAccess {
547
+ constructor(props?: object);
548
+ }
549
+
550
+ declare class AST_Unary extends AST_Node {
551
+ constructor(props?: object);
552
+ operator: string;
553
+ expression: AST_Node;
554
+ }
555
+
556
+ declare class AST_UnaryPrefix extends AST_Unary {
557
+ constructor(props?: object);
558
+ }
559
+
560
+ declare class AST_UnaryPostfix extends AST_Unary {
561
+ constructor(props?: object);
562
+ }
563
+
564
+ declare class AST_Binary extends AST_Node {
565
+ constructor(props?: object);
566
+ operator: string;
567
+ left: AST_Node;
568
+ right: AST_Node;
569
+ }
570
+
571
+ declare class AST_Assign extends AST_Binary {
572
+ constructor(props?: object);
573
+ }
574
+
575
+ declare class AST_DefaultAssign extends AST_Binary {
576
+ constructor(props?: object);
577
+ }
578
+
579
+ declare class AST_Conditional extends AST_Node {
580
+ constructor(props?: object);
581
+ condition: AST_Node;
582
+ consequent: AST_Node;
583
+ alternative: AST_Node;
584
+ }
585
+
586
+ declare class AST_Array extends AST_Node {
587
+ constructor(props?: object);
588
+ elements: AST_Node[];
589
+ }
590
+
591
+ declare class AST_Object extends AST_Node {
592
+ constructor(props?: object);
593
+ properties: AST_ObjectProperty[];
594
+ }
595
+
596
+ declare class AST_ObjectProperty extends AST_Node {
597
+ constructor(props?: object);
598
+ key: string | number | AST_Node;
599
+ value: AST_Node;
600
+ }
601
+
602
+ declare class AST_ObjectKeyVal extends AST_ObjectProperty {
603
+ constructor(props?: object);
604
+ quote: string;
605
+ }
606
+
607
+ declare class AST_ObjectSetter extends AST_ObjectProperty {
608
+ constructor(props?: object);
609
+ quote: string;
610
+ static: boolean;
611
+ }
612
+
613
+ declare class AST_ObjectGetter extends AST_ObjectProperty {
614
+ constructor(props?: object);
615
+ quote: string;
616
+ static: boolean;
617
+ }
618
+
619
+ declare class AST_ConciseMethod extends AST_ObjectProperty {
620
+ constructor(props?: object);
621
+ quote: string;
622
+ static: boolean;
623
+ is_generator: boolean;
624
+ async: boolean;
625
+ }
626
+
627
+ declare class AST_Symbol extends AST_Node {
628
+ constructor(props?: object);
629
+ scope: AST_Scope;
630
+ name: string;
631
+ thedef: SymbolDef;
632
+ }
633
+
634
+ declare class AST_SymbolDeclaration extends AST_Symbol {
635
+ constructor(props?: object);
636
+ init: AST_Node | null;
637
+ }
638
+
639
+ declare class AST_SymbolVar extends AST_SymbolDeclaration {
640
+ constructor(props?: object);
641
+ }
642
+
643
+ declare class AST_SymbolFunarg extends AST_SymbolVar {
644
+ constructor(props?: object);
645
+ }
646
+
647
+ declare class AST_SymbolBlockDeclaration extends AST_SymbolDeclaration {
648
+ constructor(props?: object);
649
+ }
650
+
651
+ declare class AST_SymbolConst extends AST_SymbolBlockDeclaration {
652
+ constructor(props?: object);
653
+ }
654
+
655
+ declare class AST_SymbolLet extends AST_SymbolBlockDeclaration {
656
+ constructor(props?: object);
657
+ }
658
+
659
+ declare class AST_SymbolDefClass extends AST_SymbolBlockDeclaration {
660
+ constructor(props?: object);
661
+ }
662
+
663
+ declare class AST_SymbolCatch extends AST_SymbolBlockDeclaration {
664
+ constructor(props?: object);
665
+ }
666
+
667
+ declare class AST_SymbolImport extends AST_SymbolBlockDeclaration {
668
+ constructor(props?: object);
669
+ }
670
+
671
+ declare class AST_SymbolDefun extends AST_SymbolDeclaration {
672
+ constructor(props?: object);
673
+ }
674
+
675
+ declare class AST_SymbolLambda extends AST_SymbolDeclaration {
676
+ constructor(props?: object);
677
+ }
678
+
679
+ declare class AST_SymbolClass extends AST_SymbolDeclaration {
680
+ constructor(props?: object);
681
+ }
682
+
683
+ declare class AST_SymbolMethod extends AST_Symbol {
684
+ constructor(props?: object);
685
+ }
686
+
687
+ declare class AST_SymbolImportForeign extends AST_Symbol {
688
+ constructor(props?: object);
689
+ }
690
+
691
+ declare class AST_Label extends AST_Symbol {
692
+ constructor(props?: object);
693
+ references: AST_LoopControl | null;
694
+ }
695
+
696
+ declare class AST_SymbolRef extends AST_Symbol {
697
+ constructor(props?: object);
698
+ }
699
+
700
+ declare class AST_SymbolExport extends AST_SymbolRef {
701
+ constructor(props?: object);
702
+ }
703
+
704
+ declare class AST_SymbolExportForeign extends AST_Symbol {
705
+ constructor(props?: object);
706
+ }
707
+
708
+ declare class AST_LabelRef extends AST_Symbol {
709
+ constructor(props?: object);
710
+ }
711
+
712
+ declare class AST_This extends AST_Symbol {
713
+ constructor(props?: object);
714
+ }
715
+
716
+ declare class AST_Super extends AST_This {
717
+ constructor(props?: object);
718
+ }
719
+
720
+ declare class AST_NewTarget extends AST_Node {
721
+ constructor(props?: object);
722
+ }
723
+
724
+ declare class AST_Constant extends AST_Node {
725
+ constructor(props?: object);
726
+ }
727
+
728
+ declare class AST_String extends AST_Constant {
729
+ constructor(props?: object);
730
+ value: string;
731
+ quote: string;
732
+ }
733
+
734
+ declare class AST_Number extends AST_Constant {
735
+ constructor(props?: object);
736
+ value: number;
737
+ literal: string;
738
+ }
739
+
740
+ declare class AST_RegExp extends AST_Constant {
741
+ constructor(props?: object);
742
+ value: RegExp;
743
+ }
744
+
745
+ declare class AST_Atom extends AST_Constant {
746
+ constructor(props?: object);
747
+ }
748
+
749
+ declare class AST_Null extends AST_Atom {
750
+ constructor(props?: object);
751
+ }
752
+
753
+ declare class AST_NaN extends AST_Atom {
754
+ constructor(props?: object);
755
+ }
756
+
757
+ declare class AST_Undefined extends AST_Atom {
758
+ constructor(props?: object);
759
+ }
760
+
761
+ declare class AST_Hole extends AST_Atom {
762
+ constructor(props?: object);
763
+ }
764
+
765
+ declare class AST_Infinity extends AST_Atom {
766
+ constructor(props?: object);
767
+ }
768
+
769
+ declare class AST_Boolean extends AST_Atom {
770
+ constructor(props?: object);
771
+ }
772
+
773
+ declare class AST_False extends AST_Boolean {
774
+ constructor(props?: object);
775
+ }
776
+
777
+ declare class AST_True extends AST_Boolean {
778
+ constructor(props?: object);
779
+ }
780
+
781
+ declare class AST_Await extends AST_Node {
782
+ constructor(props?: object);
783
+ expression: AST_Node;
784
+ }
785
+
786
+ declare class AST_Yield extends AST_Node {
787
+ constructor(props?: object);
788
+ expression: AST_Node;
789
+ is_star: boolean;
790
+ }