terser.d.ts 19 KB

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