@aussieljk/forkbook 0.0.1-2 → 0.0.1-21

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 (536) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +35 -53
  3. package/assets/addon-vitest/templates/vitest.config.4.template.ts +2 -2
  4. package/assets/browser/favicon-wrapper.svg +4 -4
  5. package/assets/browser/favicon.svg +1 -1
  6. package/assets/browser/inter-LICENSE.txt +92 -0
  7. package/assets/browser/inter-variable-italic.woff2 +0 -0
  8. package/assets/browser/inter-variable.woff2 +0 -0
  9. package/assets/browser/mirror-ball.png +0 -0
  10. package/assets/builder-vite/iframe.html +8 -24
  11. package/assets/create/rendererAssets/common/Configure.mdx +100 -100
  12. package/assets/create/rendererAssets/common/button.css +7 -7
  13. package/assets/create/rendererAssets/common/header.css +6 -6
  14. package/assets/create/rendererAssets/common/page.css +12 -12
  15. package/assets/create/templates/react-native/index.expo.js +4 -4
  16. package/assets/create/templates/react-native/index.js +5 -5
  17. package/assets/server/base-preview-body.html +32 -32
  18. package/assets/server/base-preview-head.html +86 -86
  19. package/assets/server/template.ejs +31 -26
  20. package/dist/_browser-chunks/{Color-PCLE2J36.js → Color-7FO5YFB5.js} +8 -8
  21. package/dist/_browser-chunks/{DocsRenderer-JXND3PVQ.js → DocsRenderer-DKXSW2OY.js} +2 -2
  22. package/dist/_browser-chunks/WithTooltip-QWFSUQZP.js +199 -0
  23. package/dist/_browser-chunks/{chunk-RBCHTR7C.js → chunk-2ELGJRFZ.js} +1 -1
  24. package/dist/_browser-chunks/{chunk-PFRNG3UC.js → chunk-2WZWS7GJ.js} +5 -5
  25. package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-3QNZOMD7.js} +8 -3
  26. package/dist/_browser-chunks/{chunk-LV5PIKV4.js → chunk-3QPZOXB7.js} +6 -8
  27. package/dist/_browser-chunks/{chunk-ODVJ3XZJ.js → chunk-4BOJAE7P.js} +14 -10
  28. package/dist/_browser-chunks/{chunk-2MEPHP35.js → chunk-4KIQBRD2.js} +1 -1
  29. package/dist/_browser-chunks/{chunk-KQ7CRO2B.js → chunk-5Z3MWCFR.js} +12 -12
  30. package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
  31. package/dist/_browser-chunks/{chunk-W5M6NPS3.js → chunk-6SL45YM3.js} +15 -18
  32. package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-AN2LJG5I.js} +1 -1
  33. package/dist/_browser-chunks/{chunk-P6PK47TQ.js → chunk-BLCZ3C5M.js} +48 -83
  34. package/dist/_browser-chunks/{chunk-RSPAQWVJ.js → chunk-BNP234B4.js} +1 -1
  35. package/dist/_browser-chunks/{chunk-JYVGARBG.js → chunk-BSYOFSF6.js} +770 -720
  36. package/dist/_browser-chunks/{chunk-JSBKXXXF.js → chunk-DHTLVXAL.js} +38 -45
  37. package/dist/_browser-chunks/{chunk-GNZY6LOW.js → chunk-DISGPOF4.js} +54 -51
  38. package/dist/_browser-chunks/chunk-DNJ3OSLB.js +6021 -0
  39. package/dist/_browser-chunks/{chunk-6SXYJQST.js → chunk-E6QKKKLO.js} +21 -6
  40. package/dist/_browser-chunks/{chunk-FJGWSWL5.js → chunk-EBSOKHFG.js} +10 -4
  41. package/dist/_browser-chunks/{chunk-CFAOWGL7.js → chunk-ECMVTOVD.js} +1 -1
  42. package/dist/_browser-chunks/{chunk-CFWWCCZV.js → chunk-ENHFQXYS.js} +9 -7
  43. package/dist/_browser-chunks/{chunk-YTIT5NA5.js → chunk-EW2M3URL.js} +91 -84
  44. package/dist/_browser-chunks/chunk-FAOLWWRN.js +20 -0
  45. package/dist/_browser-chunks/{chunk-MFMDGWP6.js → chunk-FCULT3AE.js} +3 -3
  46. package/dist/_browser-chunks/{chunk-46Z7NGAS.js → chunk-HX443LKV.js} +1 -1
  47. package/dist/_browser-chunks/chunk-HZFHNYRC.js +53 -0
  48. package/dist/_browser-chunks/chunk-IFADVEQE.js +669 -0
  49. package/dist/_browser-chunks/{chunk-OQWFVDIN.js → chunk-KQJ4T6JL.js} +31 -25
  50. package/dist/_browser-chunks/{chunk-RNTIV5CE.js → chunk-LYYXDWR2.js} +9 -9
  51. package/dist/_browser-chunks/{chunk-V5M7Q4HT.js → chunk-MJIDTL3X.js} +4 -14
  52. package/dist/_browser-chunks/{chunk-V2G23FV7.js → chunk-N5WQGLI7.js} +1 -1
  53. package/dist/_browser-chunks/{chunk-EIYAKDGP.js → chunk-NA4ITZTK.js} +127 -105
  54. package/dist/_browser-chunks/{chunk-RMYQ3QN3.js → chunk-NK5SGJNG.js} +22 -17
  55. package/dist/_browser-chunks/chunk-NPNIBOPF.js +18 -0
  56. package/dist/_browser-chunks/{chunk-YEKO6BHJ.js → chunk-ONTSNQON.js} +1 -1
  57. package/dist/_browser-chunks/chunk-OOETBSA7.js +502 -0
  58. package/dist/_browser-chunks/chunk-PFYL47RM.js +45 -0
  59. package/dist/_browser-chunks/{chunk-OD6IBQCC.js → chunk-PQRPDA4U.js} +5 -5
  60. package/dist/_browser-chunks/{chunk-2JDQ35OA.js → chunk-PU7D2WDP.js} +0 -11
  61. package/dist/_browser-chunks/chunk-PZQRXPVR.js +21 -0
  62. package/dist/_browser-chunks/{chunk-5WMXI5GW.js → chunk-QFO2B4X2.js} +31 -28
  63. package/dist/_browser-chunks/{chunk-2JT76G3E.js → chunk-SBOQ4QPY.js} +15 -15
  64. package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
  65. package/dist/_browser-chunks/{chunk-5I7E4GMO.js → chunk-WY2LUGOH.js} +1 -1
  66. package/dist/_browser-chunks/chunk-XKTORVEQ.js +255 -0
  67. package/dist/_browser-chunks/chunk-XSVERCGB.js +91 -0
  68. package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-XTQCLWVH.js} +325 -1635
  69. package/dist/_browser-chunks/{chunk-MDOL7KML.js → chunk-YJO5BK52.js} +7 -3
  70. package/dist/_browser-chunks/{chunk-66OCZ54D.js → chunk-ZF37BMDS.js} +6 -2
  71. package/dist/_browser-chunks/{chunk-C3D4HEFY.js → chunk-ZIZCGWCG.js} +348 -170
  72. package/dist/_browser-chunks/{matchers-YLBYSYAF.js → matchers-2HVLNCVO.js} +4 -4
  73. package/dist/_browser-chunks/{react-dom-client-4OHE3QDV.js → react-dom-client-SLBUX3U3.js} +1 -1
  74. package/dist/_node-chunks/{attached-runtime-I2G4WLJI.js → attached-runtime-UC2CB4GH.js} +37 -35
  75. package/dist/_node-chunks/builder-manager-S5UUKVOR.js +1174 -0
  76. package/dist/_node-chunks/{chunk-OUW6R7C3.js → chunk-3335ZZIO.js} +6 -6
  77. package/dist/_node-chunks/{chunk-V2DY426G.js → chunk-3D6N6P2R.js} +283 -306
  78. package/dist/_node-chunks/{chunk-3Y6AAY5H.js → chunk-3ER54PQM.js} +8 -8
  79. package/dist/_node-chunks/{chunk-DC7DKR5K.js → chunk-3H5C52QU.js} +6 -6
  80. package/dist/_node-chunks/chunk-3UI3TQ7R.js +28 -0
  81. package/dist/_node-chunks/{chunk-Q7QNUM5H.js → chunk-4C3ACAHV.js} +6 -6
  82. package/dist/_node-chunks/{chunk-XGIUVY52.js → chunk-4UTCKJEQ.js} +7 -7
  83. package/dist/_node-chunks/chunk-53A5CYDK.js +572 -0
  84. package/dist/_node-chunks/{chunk-4FEANXWU.js → chunk-53PSBDRK.js} +140 -118
  85. package/dist/_node-chunks/{chunk-3W7F2B7P.js → chunk-54MO4QLB.js} +6 -6
  86. package/dist/_node-chunks/{chunk-7GUDZVRQ.js → chunk-5CJMRQZ6.js} +6 -6
  87. package/dist/_node-chunks/chunk-5HOM7B4V.js +20 -0
  88. package/dist/_node-chunks/{chunk-BSKFCWQD.js → chunk-5QG6AXK4.js} +7 -7
  89. package/dist/_node-chunks/chunk-67XVZZUO.js +405 -0
  90. package/dist/_node-chunks/{chunk-EWOX7HPJ.js → chunk-6HQJJDLH.js} +6 -6
  91. package/dist/_node-chunks/chunk-6IPHWCFI.js +29 -0
  92. package/dist/_node-chunks/{chunk-NDWKJ4CL.js → chunk-6XYOFBRD.js} +98 -129
  93. package/dist/_node-chunks/{chunk-TNJIXE37.js → chunk-7IAYDGYH.js} +6 -6
  94. package/dist/_node-chunks/{chunk-ICPBH3E7.js → chunk-7P67PUU2.js} +7 -7
  95. package/dist/_node-chunks/{chunk-XLP2ZKXV.js → chunk-AAK5BBF2.js} +7 -7
  96. package/dist/_node-chunks/{chunk-CCOTJ4FC.js → chunk-BGUVBOOU.js} +10 -10
  97. package/dist/_node-chunks/chunk-BNGBOASQ.js +25 -0
  98. package/dist/_node-chunks/{chunk-VLOXOXXE.js → chunk-BWZWCVVH.js} +9 -9
  99. package/dist/_node-chunks/{chunk-SWO5CDYU.js → chunk-C6HQ6WLU.js} +8 -8
  100. package/dist/_node-chunks/chunk-CJHRH777.js +20 -0
  101. package/dist/_node-chunks/{chunk-IK4FGZLR.js → chunk-COEW4ORP.js} +6 -6
  102. package/dist/_node-chunks/{chunk-JGGFYIG5.js → chunk-CVHDAEDZ.js} +7 -7
  103. package/dist/_node-chunks/{chunk-YCMRA6RX.js → chunk-CXGOQNGI.js} +7 -7
  104. package/dist/_node-chunks/chunk-D4XTQWRM.js +11 -0
  105. package/dist/_node-chunks/{chunk-BS2WMZMR.js → chunk-D5V6CZ6U.js} +7 -7
  106. package/dist/_node-chunks/{chunk-XHL2LVBM.js → chunk-DCTXJ4TT.js} +14 -16
  107. package/dist/_node-chunks/{chunk-WCULS5TP.js → chunk-DP6WFY3D.js} +7 -7
  108. package/dist/_node-chunks/chunk-E23GDXG6.js +271 -0
  109. package/dist/_node-chunks/{chunk-GEFQN7K3.js → chunk-E3ZFMURC.js} +8 -8
  110. package/dist/_node-chunks/{chunk-WZJF2OUH.js → chunk-E6O3NA44.js} +7 -7
  111. package/dist/_node-chunks/{chunk-RWFIFGO5.js → chunk-ECS3WDOU.js} +8 -8
  112. package/dist/_node-chunks/{chunk-XI6B6P47.js → chunk-FB5YJWOH.js} +6 -6
  113. package/dist/_node-chunks/{chunk-3SDUYDXH.js → chunk-FCK5FM6D.js} +7 -7
  114. package/dist/_node-chunks/{chunk-6YKBRP72.js → chunk-FJUGPEJK.js} +6 -6
  115. package/dist/_node-chunks/{chunk-TFEWM4E3.js → chunk-FPYXI76E.js} +75 -75
  116. package/dist/_node-chunks/chunk-GEWVOY3F.js +62 -0
  117. package/dist/_node-chunks/{chunk-ET7PWEO7.js → chunk-GHZ44BFB.js} +14 -13
  118. package/dist/_node-chunks/{chunk-LXBD4UL4.js → chunk-GJMFISS3.js} +8 -8
  119. package/dist/_node-chunks/{chunk-FK7KGTV7.js → chunk-GK2Y2RFX.js} +7 -7
  120. package/dist/_node-chunks/{chunk-FPZB5OI7.js → chunk-GP6YBA2R.js} +6 -6
  121. package/dist/_node-chunks/{chunk-34EO2PUT.js → chunk-GQUFGJ4D.js} +6 -6
  122. package/dist/_node-chunks/{chunk-HMP2G23X.js → chunk-H4CRQDTK.js} +6 -6
  123. package/dist/_node-chunks/{chunk-2BUPBPFB.js → chunk-HCDG54OG.js} +7 -7
  124. package/dist/_node-chunks/{chunk-U5W53R2J.js → chunk-HGJMP4EI.js} +506 -494
  125. package/dist/_node-chunks/chunk-HSX6BDBA.js +18 -0
  126. package/dist/_node-chunks/{chunk-UMUBKI6E.js → chunk-IPFPWMT5.js} +1320 -437
  127. package/dist/_node-chunks/chunk-KRIOC4WF.js +281 -0
  128. package/dist/_node-chunks/{chunk-TINO74G5.js → chunk-KUL2MJ6N.js} +6 -6
  129. package/dist/_node-chunks/{chunk-LO56I6E2.js → chunk-LUR6QTYB.js} +10 -10
  130. package/dist/_node-chunks/{chunk-YZFWBA5L.js → chunk-LYS7TI35.js} +368 -321
  131. package/dist/_node-chunks/chunk-MDTXL6SN.js +2613 -0
  132. package/dist/_node-chunks/{chunk-LCK4ZQKG.js → chunk-MIIPXT4S.js} +9 -9
  133. package/dist/_node-chunks/chunk-MLWGAA2I.js +138 -0
  134. package/dist/_node-chunks/{chunk-42UWAGPW.js → chunk-MWUGCUB5.js} +52 -22
  135. package/dist/_node-chunks/{chunk-JDXXX6LB.js → chunk-MX5MVLEK.js} +6 -6
  136. package/dist/_node-chunks/chunk-N44UIGCO.js +47 -0
  137. package/dist/_node-chunks/{chunk-OISX4AGQ.js → chunk-NP2JHOFY.js} +37 -31
  138. package/dist/_node-chunks/chunk-OMNGOPNG.js +52 -0
  139. package/dist/_node-chunks/{chunk-ZWBCQ4MJ.js → chunk-OO2GTHUF.js} +9 -17
  140. package/dist/_node-chunks/{chunk-F3ZFKBHY.js → chunk-PC57BIYZ.js} +8 -8
  141. package/dist/_node-chunks/chunk-PHWMAF5C.js +49 -0
  142. package/dist/_node-chunks/{chunk-B5J7Q7J4.js → chunk-PLIQQETC.js} +7 -7
  143. package/dist/_node-chunks/{chunk-H32DYT6P.js → chunk-QMYCIS2U.js} +6 -6
  144. package/dist/_node-chunks/{chunk-DUR55DJJ.js → chunk-QZIDK3GX.js} +89 -71
  145. package/dist/_node-chunks/{chunk-UVINFLGY.js → chunk-ROJ6RSIJ.js} +7 -7
  146. package/dist/_node-chunks/{chunk-E6YESGLX.js → chunk-S2NB6QEG.js} +542 -1049
  147. package/dist/_node-chunks/{chunk-TWI4GVH7.js → chunk-S6VCOSQS.js} +6 -6
  148. package/dist/_node-chunks/{chunk-KISMCCP5.js → chunk-SEVOOOB2.js} +474 -479
  149. package/dist/_node-chunks/{chunk-JZOO7GGC.js → chunk-SFT6ZAVN.js} +6 -6
  150. package/dist/_node-chunks/{chunk-RRN2V55B.js → chunk-SXBUK4F6.js} +7 -7
  151. package/dist/_node-chunks/{chunk-WNZ2UMFM.js → chunk-TGF6Q66I.js} +15 -9
  152. package/dist/_node-chunks/{chunk-NIBT7XDZ.js → chunk-TGFHWGGT.js} +9 -6
  153. package/dist/_node-chunks/chunk-TTLSBLPQ.js +620 -0
  154. package/dist/_node-chunks/{chunk-SVTBJ7Q3.js → chunk-UUAEW2AR.js} +6 -6
  155. package/dist/_node-chunks/chunk-VQHM66NL.js +534 -0
  156. package/dist/_node-chunks/{chunk-H4PPVMP5.js → chunk-VSTTY3TM.js} +6 -6
  157. package/dist/_node-chunks/{chunk-2DSIDINN.js → chunk-XDBSAFUB.js} +650 -9
  158. package/dist/_node-chunks/{chunk-OWNFOGTA.js → chunk-XTQQGAUZ.js} +7 -7
  159. package/dist/_node-chunks/{chunk-CXRU72ET.js → chunk-YMJVSFJT.js} +6 -6
  160. package/dist/_node-chunks/{chunk-DHJFTB4K.js → chunk-YXEKWVJQ.js} +7 -7
  161. package/dist/_node-chunks/{chunk-SLWQNBGO.js → chunk-Z6CUUWJO.js} +34 -949
  162. package/dist/_node-chunks/{chunk-TD5PLLQG.js → chunk-ZAIGR7EV.js} +64 -17
  163. package/dist/_node-chunks/{chunk-6KEHV53S.js → chunk-ZCFXEFR6.js} +33 -41
  164. package/dist/_node-chunks/{chunk-FW2HQUBQ.js → chunk-ZHUBOYOD.js} +6 -6
  165. package/dist/_node-chunks/{chunk-MA24JW6C.js → chunk-ZHUBTBP2.js} +25 -8
  166. package/dist/_node-chunks/{chunk-RXNJDRGO.js → chunk-ZSTIFZHY.js} +21 -25
  167. package/dist/_node-chunks/dist-TRTHRODT.js +16 -0
  168. package/dist/_node-chunks/dist-XPLJ5T4W.js +27 -0
  169. package/dist/_node-chunks/{local-runtime-NTKIN2QT.js → local-runtime-AC7MOWYK.js} +21 -22
  170. package/dist/_node-chunks/{mdx-plugin-MWISDWDQ.js → mdx-plugin-ZW26VGEP.js} +2263 -130
  171. package/dist/_node-chunks/{monorepo-LIRFMQXE.js → monorepo-T2KZK62Q.js} +12 -12
  172. package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-CPDW4XTW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-2CWUUF6H.js} +12 -12
  173. package/dist/_node-chunks/optimized-tests-4AK3PFSX.js +22 -0
  174. package/dist/_node-chunks/{pattern-copy-play-EKHIUAU2.js → pattern-copy-play-CMRGEXHM.js} +12 -12
  175. package/dist/_node-chunks/postinstallAddon-OUQENFYO.js +20 -0
  176. package/dist/_node-chunks/{rehype-external-links-BUN3HUCO.js → rehype-external-links-LHOAIJ2E.js} +9 -9
  177. package/dist/_node-chunks/{rehype-slug-PLADX223.js → rehype-slug-K54MMYY6.js} +9 -9
  178. package/dist/_node-chunks/{relaxed-limits-GBHW6KIQ.js → relaxed-limits-TTL4PWH7.js} +12 -12
  179. package/dist/_node-chunks/{run-NL66VTNR.js → run-6DXBB5F7.js} +294 -30
  180. package/dist/_node-chunks/{run-KDTIZNSY.js → run-BMTV5ZAO.js} +18 -18
  181. package/dist/_node-chunks/{setup-MGC7BQO6.js → setup-FDPYW25Y.js} +9 -9
  182. package/dist/_node-chunks/{vitest.config.4.template-JH2THZFG.js → vitest.config.4.template-2TCFWAAI.js} +9 -9
  183. package/dist/actions/decorator.js +18 -22
  184. package/dist/actions/index.d.ts +4 -4
  185. package/dist/actions/index.js +3 -2
  186. package/dist/addon-a11y/index.d.ts +3 -3
  187. package/dist/addon-a11y/index.js +3 -2
  188. package/dist/addon-a11y/manager.js +41 -38
  189. package/dist/addon-a11y/preset.js +7 -7
  190. package/dist/addon-a11y/preview.d.ts +8 -2
  191. package/dist/addon-a11y/preview.js +3 -2
  192. package/dist/addon-comments/manager.js +353 -0
  193. package/dist/addon-comments/preset.js +80 -0
  194. package/dist/addon-comments/preview.js +101 -0
  195. package/dist/addon-docs/blocks.d.ts +123 -85
  196. package/dist/addon-docs/blocks.js +159 -85
  197. package/dist/addon-docs/index.d.ts +21 -21
  198. package/dist/addon-docs/index.js +3 -3
  199. package/dist/addon-docs/manager.js +6 -6
  200. package/dist/addon-docs/preset.js +12 -12
  201. package/dist/addon-docs/preview.d.ts +3 -1
  202. package/dist/addon-docs/preview.js +1 -1
  203. package/dist/addon-links/index.d.ts +2 -1
  204. package/dist/addon-links/index.js +5 -2
  205. package/dist/addon-links/preview.d.ts +1 -1
  206. package/dist/addon-links/preview.js +5 -2
  207. package/dist/addon-links/react/index.js +4 -1
  208. package/dist/addon-mcp/preset.js +203 -84
  209. package/dist/addon-mcp/preview.js +1 -1
  210. package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +71 -71
  211. package/dist/addon-ondevice-actions/index.js +5 -1
  212. package/dist/addon-ondevice-actions/register.js +5 -1
  213. package/dist/addon-ondevice-controls/index.js +1 -1
  214. package/dist/addon-ondevice-controls/register.js +1 -1
  215. package/dist/addon-pseudo-states/index.d.ts +1 -1
  216. package/dist/addon-pseudo-states/index.js +1 -1
  217. package/dist/addon-pseudo-states/manager.js +2 -2
  218. package/dist/addon-pseudo-states/preview.d.ts +1 -1
  219. package/dist/addon-pseudo-states/preview.js +1 -1
  220. package/dist/addon-themes/index.d.ts +7 -6
  221. package/dist/addon-themes/index.js +2 -2
  222. package/dist/addon-themes/manager.js +4 -4
  223. package/dist/addon-themes/postinstall.js +7 -7
  224. package/dist/addon-themes/preview.js +2 -2
  225. package/dist/addon-vitest/constants.js +8 -8
  226. package/dist/addon-vitest/manager.js +32 -23
  227. package/dist/addon-vitest/node/coverage-reporter.js +11 -11
  228. package/dist/addon-vitest/node/vitest.js +37 -37
  229. package/dist/addon-vitest/postinstall.js +10 -10
  230. package/dist/addon-vitest/preset.js +26 -26
  231. package/dist/addon-vitest/vitest-plugin/global-setup.js +23 -23
  232. package/dist/addon-vitest/vitest-plugin/index.js +83 -73
  233. package/dist/addon-vitest/vitest-plugin/setup-file-with-project-annotations.js +3 -3
  234. package/dist/addon-vitest/vitest-plugin/setup-file.js +1 -1
  235. package/dist/babel/index.d.ts +241 -995
  236. package/dist/babel/index.js +30583 -38
  237. package/dist/backgrounds/index.d.ts +1 -1
  238. package/dist/bin/core.js +122 -110
  239. package/dist/bin/dispatcher.js +18 -16
  240. package/dist/bin/loader.js +17 -16
  241. package/dist/builder-next/index.d.ts +59 -0
  242. package/dist/builder-next/index.js +201 -0
  243. package/dist/builder-vite/index.d.ts +8 -3
  244. package/dist/builder-vite/index.js +80 -25
  245. package/dist/builder-vite/preset.js +13 -13
  246. package/dist/channels/index.d.ts +3 -2
  247. package/dist/channels/index.js +97 -24
  248. package/dist/{chunk-Dr3R0DXk.d.ts → chunk-B-NVyPqN.d.ts} +2 -2
  249. package/dist/{chunk-C2p5r3Vt.d.ts → chunk-B53gRJBs.d.ts} +838 -703
  250. package/dist/{chunk-DoIGKY33.d.ts → chunk-BLZXEm1K.d.ts} +6 -8
  251. package/dist/chunk-BcYKnZln.d.ts +10 -0
  252. package/dist/{chunk-Bpi2tz-6.d.ts → chunk-BspNQvZn.d.ts} +21 -23
  253. package/dist/{chunk-BCoJQE-f.d.ts → chunk-BtKww7r1.d.ts} +6 -4
  254. package/dist/chunk-CFhJCPSB.d.ts +48 -0
  255. package/dist/{chunk-DtHByo32.d.ts → chunk-CFk6djyM.d.ts} +5 -5
  256. package/dist/{chunk-CwQKNaYL.d.ts → chunk-CMx6bGAU.d.ts} +2 -2
  257. package/dist/{chunk-DEVFdzxR.d.ts → chunk-CRmUwbkb.d.ts} +4 -4
  258. package/dist/{chunk-CMeX4WRe.d.ts → chunk-CT2iXaHz.d.ts} +1 -1
  259. package/dist/{chunk-pcFXCimE.d.ts → chunk-CmV7WZzR.d.ts} +124 -2
  260. package/dist/{chunk-BGkgZp-H.d.ts → chunk-D3uSIa6H.d.ts} +9 -1
  261. package/dist/{chunk-DzuY9DXg.d.ts → chunk-DDd8BhTY.d.ts} +2 -2
  262. package/dist/{chunk-Dw1z1Pki.d.ts → chunk-DNCU78oW.d.ts} +160 -323
  263. package/dist/chunk-DVIvUVkS.d.ts +195 -0
  264. package/dist/{chunk-gCX81nOr.d.ts → chunk-DgzPaTw9.d.ts} +3 -3
  265. package/dist/{chunk-Kt1tW-D1.d.ts → chunk-Dm-iHJ-s.d.ts} +3 -3
  266. package/dist/{chunk-C-bavsOH.d.ts → chunk-Dw_4ad2Y.d.ts} +6 -6
  267. package/dist/chunk-Susgfkap.d.ts +20 -0
  268. package/dist/{chunk-B2t1tGRh.d.ts → chunk-bhl-7rRD.d.ts} +40 -15
  269. package/dist/{chunk-BXLImeLy.d.ts → chunk-r-Vjut9o.d.ts} +52 -11
  270. package/dist/cli/index.d.ts +15 -904
  271. package/dist/cli/index.js +49 -5209
  272. package/dist/cli/skills/content/index.d.ts +3 -3
  273. package/dist/cli/skills/content/index.js +3 -3
  274. package/dist/cli/tools/sdk/child-host.d.ts +1 -1
  275. package/dist/cli/tools/sdk/child-host.js +17 -17
  276. package/dist/cli/tools/sdk/index.d.ts +4 -4
  277. package/dist/cli/tools/sdk/index.js +18 -18
  278. package/dist/cli-commands/bin/index.js +7 -7
  279. package/dist/client-logger/index.d.ts +20 -21
  280. package/dist/client-logger/index.js +5 -2
  281. package/dist/common/index.d.ts +32 -44
  282. package/dist/common/index.js +89 -98
  283. package/dist/components/index.d.ts +86 -272
  284. package/dist/components/index.js +2759 -8547
  285. package/dist/core-events/index.d.ts +16 -7
  286. package/dist/core-events/index.js +5 -5
  287. package/dist/core-server/index.d.ts +95 -26
  288. package/dist/core-server/index.js +1675 -408
  289. package/dist/core-server/presets/common-manager.js +837 -1335
  290. package/dist/core-server/presets/common-override-preset.js +12 -10
  291. package/dist/core-server/presets/common-preset.js +100 -282
  292. package/dist/create/bin/index.js +7 -7
  293. package/dist/create/index.js +15 -15
  294. package/dist/csf/csf-utils.d.ts +1 -1
  295. package/dist/csf/index.d.ts +6 -6
  296. package/dist/csf/index.js +90 -159
  297. package/dist/csf-tools/index.d.ts +66 -54
  298. package/dist/csf-tools/index.js +19 -17
  299. package/dist/docs-tools/index.d.ts +332 -16
  300. package/dist/docs-tools/index.js +3 -3
  301. package/dist/highlight/index.d.ts +1 -1
  302. package/dist/instrumenter/index.d.ts +5 -5
  303. package/dist/instrumenter/index.js +31 -19
  304. package/dist/manager/_manager-chunks/{globals-runtime-BvM-NY2g.js → globals-runtime-B4NRbNSS.js} +638 -1731
  305. package/dist/{preview/_chunks/runtime-CqHxptiK.js → manager/_manager-chunks/globals-runtime-BC43T1rL.js} +3413 -173
  306. package/dist/manager/_manager-chunks/{globals-runtime-qKvCZHFY.js → globals-runtime-BJ6EZqH7.js} +1035 -623
  307. package/dist/manager/_manager-chunks/{globals-runtime-Rp_zjGnh.js → globals-runtime-BfXaq_CP.js} +2 -2
  308. package/dist/manager/_manager-chunks/{globals-runtime-C02fvgcd.js → globals-runtime-BkSn_Jpe.js} +411 -379
  309. package/dist/manager/_manager-chunks/{globals-runtime-eLPTIfX-.js → globals-runtime-BnQ7i5wq.js} +232 -370
  310. package/dist/manager/_manager-chunks/globals-runtime-BtduS2C2.js +10601 -0
  311. package/dist/manager/_manager-chunks/globals-runtime-BzuYs3dZ.js +1971 -0
  312. package/dist/manager/_manager-chunks/globals-runtime-CBviMKtt.js +446 -0
  313. package/dist/manager/_manager-chunks/globals-runtime-CS41oTca.js +1808 -0
  314. package/dist/manager/_manager-chunks/{globals-runtime-BmphMP6z.js → globals-runtime-Cisw9IIE.js} +11 -11
  315. package/dist/manager/_manager-chunks/globals-runtime-CoTrrHG3.js +1163 -0
  316. package/dist/manager/_manager-chunks/{globals-runtime-FC201B7s.js → globals-runtime-DCmvKMN5.js} +2 -1
  317. package/dist/manager/_manager-chunks/globals-runtime-DgO0hT2p.js +32 -0
  318. package/dist/manager/_manager-chunks/{globals-runtime-DpNYC-qi.js → globals-runtime-DpvE_zRs.js} +1013 -782
  319. package/dist/manager/_manager-chunks/globals-runtime-Me9Bl-sx.js +156 -0
  320. package/dist/manager/_manager-chunks/globals-runtime-nQMRiA0J.js +19 -0
  321. package/dist/manager/_manager-chunks/globals-runtime-oRjPg2jY.js +8935 -0
  322. package/dist/manager/_manager-chunks/{globals-runtime-sGpNlIJ1.js → globals-runtime-wV08sCKl.js} +715 -620
  323. package/dist/manager/_manager-chunks/{runtime-cp5pazY2.js → runtime-4OQZWibO.js} +1717 -1536
  324. package/dist/manager/_manager-chunks/runtime-BYxbyNm0.js +201 -0
  325. package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
  326. package/dist/manager/_manager-chunks/runtime-CM4Z8aKR.js +735 -0
  327. package/dist/manager/_manager-chunks/{runtime-eDVAYF7N.js → runtime-Cjo1UL1u.js} +57 -76
  328. package/dist/manager/_manager-chunks/runtime-Cx1-wr6J.js +294 -0
  329. package/dist/manager/_manager-chunks/{runtime-BhkT2CXl.js → runtime-Cxe_uJRb.js} +220 -406
  330. package/dist/manager/_manager-chunks/runtime-D702FFTO.js +551 -0
  331. package/dist/manager/_manager-chunks/{runtime-D94Vq3oR.js → runtime-DnWFp6Zw.js} +8 -534
  332. package/dist/manager/_manager-chunks/{runtime-D0UOWx0U.js → runtime-DoYPE6g6.js} +232 -158
  333. package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
  334. package/dist/manager/_manager-chunks/{runtime-i-PDAHLR.js → runtime-sppa-0ll.js} +741 -698
  335. package/dist/manager/globals-runtime.js +1 -1
  336. package/dist/manager/globals.d.ts +12 -12
  337. package/dist/manager/globals.js +12 -12
  338. package/dist/manager/runtime.js +1 -1
  339. package/dist/manager-api/index.d.ts +1 -1
  340. package/dist/manager-api/index.js +538 -528
  341. package/dist/manager-errors.d.ts +1 -1
  342. package/dist/manager-errors.js +2 -2
  343. package/dist/mcp/index.d.ts +10 -10
  344. package/dist/mcp/index.js +11 -11
  345. package/dist/mocking-utils/index.d.ts +7 -5
  346. package/dist/mocking-utils/index.js +34 -34
  347. package/dist/mocking-utils/mocker-runtime.js +2 -2
  348. package/dist/next/index.d.ts +231 -0
  349. package/dist/next/index.js +398 -0
  350. package/dist/nextjs-vite/export-mocks/headers/index.js +3 -1
  351. package/dist/nextjs-vite/export-mocks/link/index.d.ts +4 -1
  352. package/dist/nextjs-vite/export-mocks/navigation/index.d.ts +9 -1
  353. package/dist/nextjs-vite/export-mocks/router/index.js +13 -7
  354. package/dist/nextjs-vite/index.d.ts +4 -4
  355. package/dist/nextjs-vite/index.js +10 -5
  356. package/dist/nextjs-vite/node/index.d.ts +2 -2
  357. package/dist/nextjs-vite/node/index.js +7 -7
  358. package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
  359. package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
  360. package/dist/nextjs-vite/preset.js +117 -15
  361. package/dist/nextjs-vite/preview.d.ts +2 -1
  362. package/dist/nextjs-vite/preview.js +1 -1
  363. package/dist/nextjs-vite/vite-plugin/index.d.ts +2 -2
  364. package/dist/nextjs-vite/vite-plugin/index.js +9 -9
  365. package/dist/nextjs-vite-plugin/index.d.ts +2 -3
  366. package/dist/nextjs-vite-plugin/index.js +24 -49
  367. package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
  368. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-image.js +2 -2
  369. package/dist/nextjs-vite-plugin/plugins/next-image/alias/next-legacy-image.js +2 -2
  370. package/dist/nextjs-vite-plugin/plugins/next-mocks/alias/router/index.js +10 -6
  371. package/dist/node-logger/index.d.ts +89 -90
  372. package/dist/node-logger/index.js +11 -12
  373. package/dist/oxc-parser/index.js +15 -14
  374. package/dist/oxc-parser/worker.js +10 -10
  375. package/dist/{manager/_manager-chunks/globals-runtime-8HkdnU2F.js → preview/_chunks/runtime-BYRCSYBN.js} +4440 -179
  376. package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-Bvh_rfnQ.js} +29 -64
  377. package/dist/preview/_chunks/{runtime-iXdo8CR8.js → runtime-Cbq5WjbL.js} +772 -418
  378. package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-D2MPrqbU.js} +2 -2
  379. package/dist/preview/_chunks/{runtime-DrTjJkPY.js → runtime-DDEUZops.js} +453 -161
  380. package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-DS0s7U3c.js} +482 -334
  381. package/dist/preview/_chunks/{runtime-CsV4HZPV.js → runtime-DsjyhLpG.js} +397 -176
  382. package/dist/preview/_chunks/{runtime-CxZK_Ln3.js → runtime-Dwi6NFcX.js} +3 -3
  383. package/dist/preview/globals.d.ts +10 -10
  384. package/dist/preview/globals.js +10 -10
  385. package/dist/preview/runtime.js +1 -1
  386. package/dist/preview-api/index.d.ts +3 -3
  387. package/dist/preview-api/index.js +12 -10
  388. package/dist/preview-errors.d.ts +1 -1
  389. package/dist/preview-errors.js +2 -2
  390. package/dist/react/docgen/docgen-worker.js +11 -12
  391. package/dist/react/entry-preview-argtypes.js +1 -1
  392. package/dist/react/entry-preview-docs.js +1 -1
  393. package/dist/react/entry-preview.js +2 -1
  394. package/dist/react/index.d.ts +9 -11
  395. package/dist/react/index.js +8 -6
  396. package/dist/react/preset.js +13 -14
  397. package/dist/react/preview.d.ts +1 -1
  398. package/dist/react/preview.js +5 -4
  399. package/dist/react-native/bin/get-stories.js +12 -12
  400. package/dist/react-native/index.d.ts +48 -47
  401. package/dist/react-native/index.js +64 -249
  402. package/dist/react-native/metro/node.d.ts +3 -3
  403. package/dist/react-native/metro/node.js +10 -9
  404. package/dist/react-native/metro/{withStorybook.d.ts → withForkbook.d.ts} +18 -18
  405. package/dist/react-native/metro/{withStorybook.js → withForkbook.js} +27 -26
  406. package/dist/react-native/preview.js +4 -1
  407. package/dist/react-native/scripts/generate.d.ts +1 -1
  408. package/dist/react-native/scripts/generate.js +8 -8
  409. package/dist/react-native/stub.js +1 -1
  410. package/dist/react-native-theming/index.d.ts +2 -58
  411. package/dist/react-native-theming/index.js +63 -2338
  412. package/dist/react-native-ui/index.d.ts +14 -14
  413. package/dist/react-native-ui/index.js +8 -15
  414. package/dist/react-native-ui-common/index.d.ts +32 -12
  415. package/dist/react-native-ui-common/index.js +26 -31
  416. package/dist/react-vite/index.d.ts +2 -2
  417. package/dist/react-vite/node/index.d.ts +3 -3
  418. package/dist/react-vite/node/index.js +7 -7
  419. package/dist/react-vite/preset.d.ts +3 -1
  420. package/dist/react-vite/preset.js +16 -9
  421. package/dist/router/index.d.ts +80 -3
  422. package/dist/router/index.js +66 -12
  423. package/dist/server-errors.d.ts +1 -1
  424. package/dist/server-errors.js +9 -9
  425. package/dist/shared/open-service/index.d.ts +3 -3
  426. package/dist/shared/open-service/index.js +2 -2
  427. package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
  428. package/dist/shared/open-service/toolsets/docs/public.d.ts +28 -28
  429. package/dist/telemetry/index.d.ts +38 -274
  430. package/dist/telemetry/index.js +11 -68
  431. package/dist/test/index.d.ts +2 -2
  432. package/dist/test/index.js +765 -511
  433. package/dist/theming/create.d.ts +1 -1
  434. package/dist/theming/create.js +2 -1
  435. package/dist/theming/index.d.ts +6 -6
  436. package/dist/theming/index.js +41 -16
  437. package/dist/types/index.d.ts +2 -2
  438. package/dist/types/index.js +5 -5
  439. package/dist/viewport/index.d.ts +1 -1
  440. package/package.json +69 -69
  441. package/skills/setup/SKILL.md +14 -0
  442. package/skills/stories/SKILL.md +21 -0
  443. package/skills/write-story/SKILL.md +14 -0
  444. package/template/nextjs-vite/cli/js/Button.jsx +2 -2
  445. package/template/nextjs-vite/cli/js/Button.stories.js +6 -6
  446. package/template/nextjs-vite/cli/js/Configure.mdx +100 -100
  447. package/template/nextjs-vite/cli/js/Header.jsx +1 -1
  448. package/template/nextjs-vite/cli/js/Header.stories.js +2 -2
  449. package/template/nextjs-vite/cli/js/Page.jsx +3 -3
  450. package/template/nextjs-vite/cli/js/Page.stories.js +2 -2
  451. package/template/nextjs-vite/cli/ts/Button.stories.ts +6 -6
  452. package/template/nextjs-vite/cli/ts/Button.tsx +2 -2
  453. package/template/nextjs-vite/cli/ts/Configure.mdx +84 -84
  454. package/template/nextjs-vite/cli/ts/Header.stories.ts +2 -2
  455. package/template/nextjs-vite/cli/ts/Header.tsx +1 -1
  456. package/template/nextjs-vite/cli/ts/Page.stories.ts +2 -2
  457. package/template/nextjs-vite/cli/ts/Page.tsx +3 -3
  458. package/template/react/cli/js/Button.jsx +2 -2
  459. package/template/react/cli/js/Button.stories.js +6 -6
  460. package/template/react/cli/js/Header.jsx +1 -1
  461. package/template/react/cli/js/Header.stories.js +2 -2
  462. package/template/react/cli/js/Page.jsx +3 -3
  463. package/template/react/cli/js/Page.stories.js +2 -2
  464. package/template/react/cli/ts/Button.stories.ts +6 -6
  465. package/template/react/cli/ts/Button.tsx +2 -2
  466. package/template/react/cli/ts/Header.stories.ts +2 -2
  467. package/template/react/cli/ts/Header.tsx +1 -1
  468. package/template/react/cli/ts/Page.stories.ts +2 -2
  469. package/template/react/cli/ts/Page.tsx +3 -3
  470. package/template/react-vite/cli/js/Button.jsx +2 -2
  471. package/template/react-vite/cli/js/Button.stories.js +6 -6
  472. package/template/react-vite/cli/js/Header.jsx +1 -1
  473. package/template/react-vite/cli/js/Header.stories.js +2 -2
  474. package/template/react-vite/cli/js/Page.jsx +3 -3
  475. package/template/react-vite/cli/js/Page.stories.js +2 -2
  476. package/template/react-vite/cli/ts/Button.stories.ts +6 -6
  477. package/template/react-vite/cli/ts/Button.tsx +2 -2
  478. package/template/react-vite/cli/ts/Header.stories.ts +2 -2
  479. package/template/react-vite/cli/ts/Header.tsx +1 -1
  480. package/template/react-vite/cli/ts/Page.stories.ts +2 -2
  481. package/template/react-vite/cli/ts/Page.tsx +3 -3
  482. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  483. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  484. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  485. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  486. package/dist/_browser-chunks/WithTooltip-XSQFTBMB.js +0 -1619
  487. package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
  488. package/dist/_browser-chunks/chunk-JMC7AIKT.js +0 -108
  489. package/dist/_node-chunks/builder-manager-VVHYQXCH.js +0 -1661
  490. package/dist/_node-chunks/chunk-2RU7BKEW.js +0 -23
  491. package/dist/_node-chunks/chunk-3BKIBF5S.js +0 -3008
  492. package/dist/_node-chunks/chunk-3T4ZSNPH.js +0 -662
  493. package/dist/_node-chunks/chunk-5DQFEZEA.js +0 -40
  494. package/dist/_node-chunks/chunk-6LMWA44H.js +0 -3837
  495. package/dist/_node-chunks/chunk-BXVYT7SB.js +0 -36
  496. package/dist/_node-chunks/chunk-CQKMLL5J.js +0 -33
  497. package/dist/_node-chunks/chunk-EHUNOMDD.js +0 -52345
  498. package/dist/_node-chunks/chunk-FY6UXW6G.js +0 -11
  499. package/dist/_node-chunks/chunk-GRBLDJCR.js +0 -989
  500. package/dist/_node-chunks/chunk-IDEL2J23.js +0 -23
  501. package/dist/_node-chunks/chunk-JPAZLYJ3.js +0 -29
  502. package/dist/_node-chunks/chunk-MK2KYAI6.js +0 -5414
  503. package/dist/_node-chunks/chunk-NPO45IMH.js +0 -33
  504. package/dist/_node-chunks/chunk-QEQLR22M.js +0 -1877
  505. package/dist/_node-chunks/chunk-RZMQ7S3L.js +0 -92
  506. package/dist/_node-chunks/chunk-SIEXZVCR.js +0 -51
  507. package/dist/_node-chunks/chunk-TEQGGSP7.js +0 -33
  508. package/dist/_node-chunks/chunk-TFCEV2XX.js +0 -155
  509. package/dist/_node-chunks/chunk-UBOGWBEA.js +0 -148
  510. package/dist/_node-chunks/chunk-W4OMYLSP.js +0 -1297
  511. package/dist/_node-chunks/chunk-WAXVSN3O.js +0 -18
  512. package/dist/_node-chunks/chunk-ZMAMXQKP.js +0 -4731
  513. package/dist/_node-chunks/dist-VTSTZKUB.js +0 -16
  514. package/dist/_node-chunks/globby-OEMHPBFY.js +0 -2884
  515. package/dist/_node-chunks/jiti-NFX6UU74.js +0 -3848
  516. package/dist/_node-chunks/lib-MDVARD7W.js +0 -366
  517. package/dist/_node-chunks/optimized-tests-HDOLR3EY.js +0 -22
  518. package/dist/_node-chunks/postinstallAddon-GYGMWDL6.js +0 -20
  519. package/dist/_node-chunks/session-id-KIIVOQLR.js +0 -23
  520. package/dist/chunk-BTVrWliM.d.ts +0 -115
  521. package/dist/chunk-BfBzpgct.d.ts +0 -916
  522. package/dist/chunk-BxWufQms.d.ts +0 -142
  523. package/dist/chunk-DaVb55-_.d.ts +0 -124
  524. package/dist/core-server/presets/common-manager.css +0 -170
  525. package/dist/manager/_manager-chunks/globals-runtime-BIKBO23x.js +0 -3389
  526. package/dist/manager/_manager-chunks/globals-runtime-DkAPXCvc.js +0 -9766
  527. package/dist/manager/_manager-chunks/globals-runtime-DtcOnYHR.js +0 -5357
  528. package/dist/manager/_manager-chunks/globals-runtime-ZHrQFa3-.js +0 -10463
  529. package/dist/manager/_manager-chunks/runtime-B1L9TH89.js +0 -452
  530. package/dist/manager/_manager-chunks/runtime-BK0zF7FN.js +0 -22
  531. package/dist/manager/_manager-chunks/runtime-Bly6WJLN.js +0 -998
  532. package/dist/manager/_manager-chunks/runtime-DMig8mT7.js +0 -77
  533. package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
  534. package/dist/preview/_chunks/runtime-BwSxqk3t.js +0 -63
  535. package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
  536. package/dist/preview/_chunks/runtime-DuHdxMFA.js +0 -387
@@ -1,299 +1,8 @@
1
- import { $ as DeclareModuleExports, $i as TSTypeAnnotation, $n as NumberLiteralTypeAnnotation, $r as TSAsExpression, $t as Identifier, A as ClassBody, Aa as TypeParameterInstantiation, Ai as TSModuleBlock, An as JSXSpreadAttribute, Ar as QualifiedTypeIdentifier, At as ExportSpecifier, B as CompletionStatement, Ba as VariableDeclarator, Bi as TSParameterProperty, Bn as Method, Br as SpreadProperty$1, Bt as For, C as BooleanLiteralTypeAnnotation, Ca as TupleExpression, Ci as TSInterfaceBody, Cn as JSXExpressionContainer, Cr as PipelineTopicExpression, Ct as ExistsTypeAnnotation, D as CatchClause, Da as TypeCastExpression, Di as TSLiteralType, Dn as JSXNamespacedName, Dr as Program, Dt as ExportDefaultSpecifier, E as CallExpression, Ea as TypeAnnotation, Ei as TSIntrinsicKeyword, En as JSXMemberExpression, Er as PrivateName, Et as ExportDefaultDeclaration, F as ClassPrivateMethod, Fa as UnionTypeAnnotation, Fi as TSNonNullExpression, Fn as Literal, Fr as RestProperty$1, Ft as Flow, G as DecimalLiteral, Ga as WhileStatement, Gi as TSSatisfiesExpression, Gn as ModuleSpecifier, Gr as StringLiteralTypeAnnotation, Gt as Function, H as ConditionalExpression, Ha as VoidPattern, Hi as TSPropertySignature, Hn as MixedTypeAnnotation, Hr as Statement, Ht as ForOfStatement, I as ClassPrivateProperty, Ia as UpdateExpression, Ii as TSNullKeyword, In as LogicalExpression, Ir as ReturnStatement, It as FlowBaseAnnotation, J as DeclareExportAllDeclaration, Ja as index_d_exports$1, Ji as TSTemplateLiteralType, Jn as Noop, Jr as SwitchCase, Jt as FunctionParameter, K as Declaration, Ka as WithStatement, Ki as TSStringKeyword, Kn as NewExpression, Kr as StringTypeAnnotation, Kt as FunctionDeclaration, L as ClassProperty, La as UserWhitespacable, Li as TSNumberKeyword, Ln as Loop, Lr as Scopable, Lt as FlowDeclaration, M as ClassExpression, Ma as TypeofTypeAnnotation, Mi as TSNamedTupleMember, Mn as JSXText, Mr as RegExpLiteral, Mt as ExpressionStatement, N as ClassImplements, Na as UnaryExpression, Ni as TSNamespaceExportDeclaration, Nn as LVal, Nr as RegexLiteral$1, Nt as ExpressionWrapper, O as Class, Oa as TypeParameter, Oi as TSMappedType, On as JSXOpeningElement, Or as Property, Ot as ExportNamedDeclaration, P as ClassMethod, Pa as UnaryLike, Pi as TSNeverKeyword, Pn as LabeledStatement, Pr as RestElement, Pt as File, Q as DeclareModule, Qi as TSTypeAliasDeclaration, Qn as NumberLiteral$1, Qr as TSArrayType, Qt as GenericTypeAnnotation, R as Comment, Ra as V8IntrinsicIdentifier, Ri as TSObjectKeyword, Rn as MemberExpression, Rr as SequenceExpression, Rt as FlowPredicate, S as BooleanLiteral, Sa as TryStatement, Si as TSInstantiationExpression, Sn as JSXEmptyExpression, Sr as PipelinePrimaryTopicReference, St as EnumSymbolBody, T as BreakStatement, Ta as TypeAlias, Ti as TSIntersectionType, Tn as JSXIdentifier, Tr as Private, Tt as ExportDeclaration, U as ContinueStatement, Ua as VoidTypeAnnotation, Ui as TSQualifiedName, Un as ModuleDeclaration, Ur as StaticBlock, Ut as ForStatement, V as Conditional, Va as Variance, Vi as TSParenthesizedType, Vn as Miscellaneous, Vr as Standardized, Vt as ForInStatement, W as DebuggerStatement, Wa as While, Wi as TSRestType, Wn as ModuleExpression, Wr as StringLiteral, Wt as ForXStatement, X as DeclareFunction, Xi as TSTupleType, Xn as NullLiteralTypeAnnotation, Xr as SymbolTypeAnnotation, Xt as FunctionTypeAnnotation, Y as DeclareExportDeclaration, Yi as TSThisType, Yn as NullLiteral, Yr as SwitchStatement, Yt as FunctionParent, Z as DeclareInterface, Zi as TSType, Zn as NullableTypeAnnotation, Zr as TSAnyKeyword, Zt as FunctionTypeParam, _ as BinaryExpression, _a as Terminatorless, _i as TSImportEqualsDeclaration, _n as JSX, _r as Options$1, _t as EnumMember, a as Aliases, aa as TSTypeParameterDeclaration, ai as TSConstructSignatureDeclaration, an as ImportDefaultSpecifier, ar as ObjectPattern, at as DeprecatedAliases, b as BlockParent, ba as ThrowStatement, bi as TSIndexedAccessType, bn as JSXClosingFragment, br as PatternLike, bt as EnumStringBody, c as ArrayExpression, ca as TSTypeQuery, ci as TSDeclareMethod, cn as ImportOrExportDeclaration, cr as ObjectTypeCallProperty, ct as DoExpression, d as ArrowFunctionExpression, da as TSUnionType, di as TSEnumDeclaration, dn as InferredPredicate, dr as ObjectTypeProperty, dt as EmptyTypeAnnotation, ea as TSTypeAssertion, ei as TSBaseType, en as IfStatement, er as NumberTypeAnnotation, et as DeclareOpaqueType, f as AssignmentExpression, fa as TSUnknownKeyword, fi as TSEnumMember, fn as InterfaceDeclaration, fr as ObjectTypeSpreadProperty, ft as EnumBody, g as Binary, ga as TemplateLiteral, gi as TSFunctionType, gn as IntersectionTypeAnnotation, gr as OptionalMemberExpression, gt as EnumDefaultedMember, h as BigIntLiteral, ha as TemplateElement, hi as TSExternalModuleReference, hn as InterpreterDirective, hr as OptionalIndexedAccessType, ht as EnumDeclaration, i as Accessor, ia as TSTypeParameter, ii as TSConditionalType, in as ImportDeclaration, ir as ObjectMethod, it as Decorator, j as ClassDeclaration, ja as TypeScript, ji as TSModuleDeclaration, jn as JSXSpreadChild, jr as RecordExpression, jt as Expression, k as ClassAccessorProperty, ka as TypeParameterDeclaration, ki as TSMethodSignature, kn as JSXOpeningFragment, kr as Pureish, kt as ExportNamespaceSpecifier, l as ArrayPattern, la as TSTypeReference, li as TSEntityName, ln as ImportSpecifier, lr as ObjectTypeIndexer, lt as DoWhileStatement, m as AwaitExpression, ma as TaggedTemplateExpression, mi as TSExpressionWithTypeArguments, mn as InterfaceTypeAnnotation, mr as OptionalCallExpression, mt as EnumBooleanMember, na as TSTypeLiteral, ni as TSBooleanKeyword, nn as Import, nr as ObjectExpression, nt as DeclareVariable, o as AnyTypeAnnotation, oa as TSTypeParameterInstantiation, oi as TSConstructorType, on as ImportExpression, or as ObjectProperty, ot as Directive, p as AssignmentPattern, pa as TSVoidKeyword, pi as TSExportAssignment, pn as InterfaceExtends, pr as OpaqueType, pt as EnumBooleanBody, q as DeclareClass, qa as YieldExpression, qi as TSSymbolKeyword, qn as Node$1, qr as Super, qt as FunctionExpression, r as generate$1, ra as TSTypeOperator, ri as TSCallSignatureDeclaration, rn as ImportAttribute, rr as ObjectMember, rt as DeclaredPredicate, s as ArgumentPlaceholder, sa as TSTypePredicate, si as TSDeclareFunction, sn as ImportNamespaceSpecifier, sr as ObjectTypeAnnotation, st as DirectiveLiteral, t as GeneratorOptions, ta as TSTypeElement, ti as TSBigIntKeyword, tn as Immutable, tr as NumericLiteral, tt as DeclareTypeAlias, u as ArrayTypeAnnotation, ua as TSUndefinedKeyword, ui as TSEnumBody, un as IndexedAccessType, ur as ObjectTypeInternalSlot, ut as EmptyStatement, v as BindExpression, va as ThisExpression, vi as TSImportType, vn as JSXAttribute, vr as ParenthesizedExpression, vt as EnumNumberBody, w as BooleanTypeAnnotation, wa as TupleTypeAnnotation, wi as TSInterfaceDeclaration, wn as JSXFragment, wr as Placeholder, wt as ExportAllDeclaration, x as BlockStatement, xa as TopicReference, xi as TSInferType, xn as JSXElement, xr as PipelineBareFunction, xt as EnumStringMember, y as Block, ya as ThisTypeAnnotation, yi as TSIndexSignature, yn as JSXClosingElement, yr as Pattern, yt as EnumNumberMember, z as CommentTypeShorthand, za as VariableDeclaration, zi as TSOptionalType, zn as MetaProperty, zr as SpreadElement, zt as FlowType } from "../chunk-D7DwV41f.js";
1
+ import { $ as DeclareModuleExports, $i as TSTypeAnnotation, $n as NumberLiteralTypeAnnotation, $r as TSAsExpression, $t as Identifier, A as ClassBody, Aa as TypeParameterInstantiation, Ai as TSModuleBlock, An as JSXSpreadAttribute, Ar as QualifiedTypeIdentifier, At as ExportSpecifier, B as CompletionStatement, Ba as VariableDeclarator, Bi as TSParameterProperty, Bn as Method, Br as SpreadProperty$1, Bt as For, C as BooleanLiteralTypeAnnotation, Ca as TupleExpression, Ci as TSInterfaceBody, Cn as JSXExpressionContainer, Cr as PipelineTopicExpression, Ct as ExistsTypeAnnotation, D as CatchClause, Da as TypeCastExpression, Di as TSLiteralType, Dn as JSXNamespacedName, Dr as Program, Dt as ExportDefaultSpecifier, E as CallExpression, Ea as TypeAnnotation, Ei as TSIntrinsicKeyword, En as JSXMemberExpression, Er as PrivateName, Et as ExportDefaultDeclaration, F as ClassPrivateMethod, Fa as UnionTypeAnnotation, Fi as TSNonNullExpression, Fn as Literal, Fr as RestProperty$1, Ft as Flow, G as DecimalLiteral, Ga as WhileStatement, Gi as TSSatisfiesExpression, Gn as ModuleSpecifier, Gr as StringLiteralTypeAnnotation, Gt as Function, H as ConditionalExpression, Ha as VoidPattern, Hi as TSPropertySignature, Hn as MixedTypeAnnotation, Hr as Statement, Ht as ForOfStatement, I as ClassPrivateProperty, Ia as UpdateExpression, Ii as TSNullKeyword, In as LogicalExpression, Ir as ReturnStatement, It as FlowBaseAnnotation, J as DeclareExportAllDeclaration, Ja as index_d_exports, Ji as TSTemplateLiteralType, Jn as Noop, Jr as SwitchCase, Jt as FunctionParameter, K as Declaration, Ka as WithStatement, Ki as TSStringKeyword, Kn as NewExpression, Kr as StringTypeAnnotation, Kt as FunctionDeclaration, L as ClassProperty, La as UserWhitespacable, Li as TSNumberKeyword, Ln as Loop, Lr as Scopable, Lt as FlowDeclaration, M as ClassExpression, Ma as TypeofTypeAnnotation, Mi as TSNamedTupleMember, Mn as JSXText, Mr as RegExpLiteral, Mt as ExpressionStatement, N as ClassImplements, Na as UnaryExpression, Ni as TSNamespaceExportDeclaration, Nn as LVal, Nr as RegexLiteral$1, Nt as ExpressionWrapper, O as Class, Oa as TypeParameter, Oi as TSMappedType, On as JSXOpeningElement, Or as Property, Ot as ExportNamedDeclaration, P as ClassMethod, Pa as UnaryLike, Pi as TSNeverKeyword, Pn as LabeledStatement, Pr as RestElement, Pt as File, Q as DeclareModule, Qi as TSTypeAliasDeclaration, Qn as NumberLiteral$1, Qr as TSArrayType, Qt as GenericTypeAnnotation, R as Comment, Ra as V8IntrinsicIdentifier, Ri as TSObjectKeyword, Rn as MemberExpression, Rr as SequenceExpression, Rt as FlowPredicate, S as BooleanLiteral, Sa as TryStatement, Si as TSInstantiationExpression, Sn as JSXEmptyExpression, Sr as PipelinePrimaryTopicReference, St as EnumSymbolBody, T as BreakStatement, Ta as TypeAlias, Ti as TSIntersectionType, Tn as JSXIdentifier, Tr as Private, Tt as ExportDeclaration, U as ContinueStatement, Ua as VoidTypeAnnotation, Ui as TSQualifiedName, Un as ModuleDeclaration, Ur as StaticBlock, Ut as ForStatement, V as Conditional, Va as Variance, Vi as TSParenthesizedType, Vn as Miscellaneous, Vr as Standardized, Vt as ForInStatement, W as DebuggerStatement, Wa as While, Wi as TSRestType, Wn as ModuleExpression, Wr as StringLiteral, Wt as ForXStatement, X as DeclareFunction, Xi as TSTupleType, Xn as NullLiteralTypeAnnotation, Xr as SymbolTypeAnnotation, Xt as FunctionTypeAnnotation, Y as DeclareExportDeclaration, Yi as TSThisType, Yn as NullLiteral, Yr as SwitchStatement, Yt as FunctionParent, Z as DeclareInterface, Zi as TSType, Zn as NullableTypeAnnotation, Zr as TSAnyKeyword, Zt as FunctionTypeParam, _ as BinaryExpression, _a as Terminatorless, _i as TSImportEqualsDeclaration, _n as JSX, _r as Options$1, _t as EnumMember, a as Aliases, aa as TSTypeParameterDeclaration, ai as TSConstructSignatureDeclaration, an as ImportDefaultSpecifier, ar as ObjectPattern, at as DeprecatedAliases, b as BlockParent, ba as ThrowStatement, bi as TSIndexedAccessType, bn as JSXClosingFragment, br as PatternLike, bt as EnumStringBody, c as ArrayExpression, ca as TSTypeQuery, ci as TSDeclareMethod, cn as ImportOrExportDeclaration, cr as ObjectTypeCallProperty, ct as DoExpression, d as ArrowFunctionExpression, da as TSUnionType, di as TSEnumDeclaration, dn as InferredPredicate, dr as ObjectTypeProperty, dt as EmptyTypeAnnotation, ea as TSTypeAssertion, ei as TSBaseType, en as IfStatement, er as NumberTypeAnnotation, et as DeclareOpaqueType, f as AssignmentExpression, fa as TSUnknownKeyword, fi as TSEnumMember, fn as InterfaceDeclaration, fr as ObjectTypeSpreadProperty, ft as EnumBody, g as Binary, ga as TemplateLiteral, gi as TSFunctionType, gn as IntersectionTypeAnnotation, gr as OptionalMemberExpression, gt as EnumDefaultedMember, h as BigIntLiteral, ha as TemplateElement, hi as TSExternalModuleReference, hn as InterpreterDirective, hr as OptionalIndexedAccessType, ht as EnumDeclaration, i as Accessor, ia as TSTypeParameter, ii as TSConditionalType, in as ImportDeclaration, ir as ObjectMethod, it as Decorator, j as ClassDeclaration, ja as TypeScript, ji as TSModuleDeclaration, jn as JSXSpreadChild, jr as RecordExpression, jt as Expression, k as ClassAccessorProperty, ka as TypeParameterDeclaration, ki as TSMethodSignature, kn as JSXOpeningFragment, kr as Pureish, kt as ExportNamespaceSpecifier, l as ArrayPattern, la as TSTypeReference, li as TSEntityName, ln as ImportSpecifier, lr as ObjectTypeIndexer, lt as DoWhileStatement, m as AwaitExpression, ma as TaggedTemplateExpression, mi as TSExpressionWithTypeArguments, mn as InterfaceTypeAnnotation, mr as OptionalCallExpression, mt as EnumBooleanMember, na as TSTypeLiteral, ni as TSBooleanKeyword, nn as Import, nr as ObjectExpression, nt as DeclareVariable, o as AnyTypeAnnotation, oa as TSTypeParameterInstantiation, oi as TSConstructorType, on as ImportExpression, or as ObjectProperty, ot as Directive, p as AssignmentPattern, pa as TSVoidKeyword, pi as TSExportAssignment, pn as InterfaceExtends, pr as OpaqueType, pt as EnumBooleanBody, q as DeclareClass, qa as YieldExpression, qi as TSSymbolKeyword, qn as Node, qr as Super, qt as FunctionExpression, r as generate$1, ra as TSTypeOperator, ri as TSCallSignatureDeclaration, rn as ImportAttribute, rr as ObjectMember, rt as DeclaredPredicate, s as ArgumentPlaceholder, sa as TSTypePredicate, si as TSDeclareFunction, sn as ImportNamespaceSpecifier, sr as ObjectTypeAnnotation, st as DirectiveLiteral, t as GeneratorOptions, ta as TSTypeElement, ti as TSBigIntKeyword, tn as Immutable, tr as NumericLiteral, tt as DeclareTypeAlias, u as ArrayTypeAnnotation, ua as TSUndefinedKeyword, ui as TSEnumBody, un as IndexedAccessType, ur as ObjectTypeInternalSlot, ut as EmptyStatement, v as BindExpression, va as ThisExpression, vi as TSImportType, vn as JSXAttribute, vr as ParenthesizedExpression, vt as EnumNumberBody, w as BooleanTypeAnnotation, wa as TupleTypeAnnotation, wi as TSInterfaceDeclaration, wn as JSXFragment, wr as Placeholder, wt as ExportAllDeclaration, x as BlockStatement, xa as TopicReference, xi as TSInferType, xn as JSXElement, xr as PipelineBareFunction, xt as EnumStringMember, y as Block, ya as ThisTypeAnnotation, yi as TSIndexSignature, yn as JSXClosingElement, yr as Pattern, yt as EnumNumberMember, z as CommentTypeShorthand, za as VariableDeclaration, zi as TSOptionalType, zn as MetaProperty, zr as SpreadElement, zt as FlowType } from "../chunk-D7DwV41f.js";
2
2
  import * as recast from "recast";
3
3
  import { Options as RecastOptions } from "recast";
4
4
 
5
- //#region ../../node_modules/@babel/parser/typings/babel-parser.d.ts
6
- declare namespace babel_parser_d_exports {
7
- export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult$1 as ParseResult, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse$1 as parse, parseExpression, tokTypes };
8
- }
9
- declare class Position {
10
- line: number;
11
- column: number;
12
- index: number;
13
- constructor(line: number, col: number, index: number);
14
- }
15
- type SyntaxPlugin = "flow" | "typescript" | "jsx" | "functionBind" | "pipelineOperator" | "placeholders";
16
- type ParseErrorCode = "BABEL_PARSER_SYNTAX_ERROR" | "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";
17
- interface ParseErrorSpecification<ErrorDetails> {
18
- code: ParseErrorCode;
19
- reasonCode: string;
20
- syntaxPlugin?: SyntaxPlugin;
21
- missingPlugin?: string | string[];
22
- loc: Position;
23
- details: ErrorDetails;
24
- pos: number;
25
- }
26
- type ParseError$1<ErrorDetails> = SyntaxError & ParseErrorSpecification<ErrorDetails>;
27
- type BABEL_8_BREAKING = false;
28
- type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never;
29
- type Plugin$1 = "asyncDoExpressions" | IF_BABEL_7<"asyncGenerators"> | IF_BABEL_7<"bigInt"> | IF_BABEL_7<"classPrivateMethods"> | IF_BABEL_7<"classPrivateProperties"> | IF_BABEL_7<"classProperties"> | IF_BABEL_7<"classStaticBlock"> | IF_BABEL_7<"decimal"> | "decorators-legacy" | "deferredImportEvaluation" | "decoratorAutoAccessors" | "destructuringPrivate" | IF_BABEL_7<"deprecatedImportAssert"> | "doExpressions" | IF_BABEL_7<"dynamicImport"> | IF_BABEL_7<"explicitResourceManagement"> | "exportDefaultFrom" | IF_BABEL_7<"exportNamespaceFrom"> | "flow" | "flowComments" | "functionBind" | "functionSent" | "importMeta" | "jsx" | IF_BABEL_7<"jsonStrings"> | IF_BABEL_7<"logicalAssignment"> | IF_BABEL_7<"importAssertions"> | IF_BABEL_7<"importReflection"> | "moduleBlocks" | IF_BABEL_7<"moduleStringNames"> | IF_BABEL_7<"nullishCoalescingOperator"> | IF_BABEL_7<"numericSeparator"> | IF_BABEL_7<"objectRestSpread"> | IF_BABEL_7<"optionalCatchBinding"> | IF_BABEL_7<"optionalChaining"> | "partialApplication" | "placeholders" | IF_BABEL_7<"privateIn"> | IF_BABEL_7<"regexpUnicodeSets"> | "sourcePhaseImports" | "throwExpressions" | IF_BABEL_7<"topLevelAwait"> | "v8intrinsic" | ParserPluginWithOptions[0];
30
- type ParserPluginWithOptions = ["decorators", DecoratorsPluginOptions] | ["discardBinding", {
31
- syntaxType: "void";
32
- }] | ["estree", {
33
- classFeatures?: boolean;
34
- }] | IF_BABEL_7<["importAttributes", {
35
- deprecatedAssertSyntax: boolean;
36
- }]> | IF_BABEL_7<["moduleAttributes", {
37
- version: "may-2020";
38
- }]> | ["optionalChainingAssign", {
39
- version: "2023-07";
40
- }] | ["pipelineOperator", PipelineOperatorPluginOptions] | ["recordAndTuple", RecordAndTuplePluginOptions] | ["flow", FlowPluginOptions] | ["typescript", TypeScriptPluginOptions];
41
- type PluginConfig = Plugin$1 | ParserPluginWithOptions;
42
- interface DecoratorsPluginOptions {
43
- decoratorsBeforeExport?: boolean;
44
- allowCallParenthesized?: boolean;
45
- }
46
- interface PipelineOperatorPluginOptions {
47
- proposal: BABEL_8_BREAKING extends false ? "minimal" | "fsharp" | "hack" | "smart" : "fsharp" | "hack";
48
- topicToken?: "%" | "#" | "@@" | "^^" | "^";
49
- }
50
- interface RecordAndTuplePluginOptions {
51
- syntaxType: "bar" | "hash";
52
- }
53
- type FlowPluginOptions = BABEL_8_BREAKING extends true ? {
54
- all?: boolean;
55
- enums?: boolean;
56
- } : {
57
- all?: boolean;
58
- };
59
- interface TypeScriptPluginOptions {
60
- dts?: boolean;
61
- disallowAmbiguousJSXLike?: boolean;
62
- }
63
- type Plugin = PluginConfig;
64
- type SourceType = "script" | "commonjs" | "module" | "unambiguous";
65
- interface Options {
66
- /**
67
- * By default, import and export declarations can only appear at a program's top level.
68
- * Setting this option to true allows them anywhere where a statement is allowed.
69
- */
70
- allowImportExportEverywhere?: boolean;
71
- /**
72
- * By default, await use is not allowed outside of an async function.
73
- * Set this to true to accept such code.
74
- */
75
- allowAwaitOutsideFunction?: boolean;
76
- /**
77
- * By default, a return statement at the top level raises an error.
78
- * Set this to true to accept such code.
79
- */
80
- allowReturnOutsideFunction?: boolean;
81
- /**
82
- * By default, new.target use is not allowed outside of a function or class.
83
- * Set this to true to accept such code.
84
- */
85
- allowNewTargetOutsideFunction?: boolean;
86
- /**
87
- * By default, super calls are not allowed outside of a method.
88
- * Set this to true to accept such code.
89
- */
90
- allowSuperOutsideMethod?: boolean;
91
- /**
92
- * By default, exported identifiers must refer to a declared variable.
93
- * Set this to true to allow export statements to reference undeclared variables.
94
- */
95
- allowUndeclaredExports?: boolean;
96
- /**
97
- * By default, yield use is not allowed outside of a generator function.
98
- * Set this to true to accept such code.
99
- */
100
- allowYieldOutsideFunction?: boolean;
101
- /**
102
- * By default, Babel parser JavaScript code according to Annex B syntax.
103
- * Set this to `false` to disable such behavior.
104
- */
105
- annexB?: boolean;
106
- /**
107
- * By default, Babel attaches comments to adjacent AST nodes.
108
- * When this option is set to false, comments are not attached.
109
- * It can provide up to 30% performance improvement when the input code has many comments.
110
- * @babel/eslint-parser will set it for you.
111
- * It is not recommended to use attachComment: false with Babel transform,
112
- * as doing so removes all the comments in output code, and renders annotations such as
113
- * /* istanbul ignore next *\/ nonfunctional.
114
- */
115
- attachComment?: boolean;
116
- /**
117
- * By default, Babel always throws an error when it finds some invalid code.
118
- * When this option is set to true, it will store the parsing error and
119
- * try to continue parsing the invalid input file.
120
- */
121
- errorRecovery?: boolean;
122
- /**
123
- * Indicate the mode the code should be parsed in.
124
- * Can be one of "script", "commonjs", "module", or "unambiguous". Defaults to "script".
125
- * "unambiguous" will make @babel/parser attempt to guess, based on the presence
126
- * of ES6 import or export statements.
127
- * Files with ES6 imports and exports are considered "module" and are otherwise "script".
128
- *
129
- * Use "commonjs" to parse code that is intended to be run in a CommonJS environment such as Node.js.
130
- */
131
- sourceType?: SourceType;
132
- /**
133
- * Correlate output AST nodes with their source filename.
134
- * Useful when generating code and source maps from the ASTs of multiple input files.
135
- */
136
- sourceFilename?: string;
137
- /**
138
- * By default, all source indexes start from 0.
139
- * You can provide a start index to alternatively start with.
140
- * Useful for integration with other source tools.
141
- */
142
- startIndex?: number;
143
- /**
144
- * By default, the first line of code parsed is treated as line 1.
145
- * You can provide a line number to alternatively start with.
146
- * Useful for integration with other source tools.
147
- */
148
- startLine?: number;
149
- /**
150
- * By default, the parsed code is treated as if it starts from line 1, column 0.
151
- * You can provide a column number to alternatively start with.
152
- * Useful for integration with other source tools.
153
- */
154
- startColumn?: number;
155
- /**
156
- * Array containing the plugins that you want to enable.
157
- */
158
- plugins?: Plugin[];
159
- /**
160
- * Should the parser work in strict mode.
161
- * Defaults to true if sourceType === 'module'. Otherwise, false.
162
- */
163
- strictMode?: boolean;
164
- /**
165
- * Adds a ranges property to each node: [node.start, node.end]
166
- */
167
- ranges?: boolean;
168
- /**
169
- * Adds all parsed tokens to a tokens property on the File node.
170
- */
171
- tokens?: boolean;
172
- /**
173
- * By default, the parser adds information about parentheses by setting
174
- * `extra.parenthesized` to `true` as needed.
175
- * When this option is `true` the parser creates `ParenthesizedExpression`
176
- * AST nodes instead of using the `extra` property.
177
- */
178
- createParenthesizedExpressions?: boolean;
179
- /**
180
- * The default is false in Babel 7 and true in Babel 8
181
- * Set this to true to parse it as an `ImportExpression` node.
182
- * Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
183
- */
184
- createImportExpressions?: boolean;
185
- }
186
- type ParserOptions = Partial<Options>;
187
- type ParseError = ParseError$1<object>;
188
- type ParseResult$1<Result extends File | Expression = File> = Result & {
189
- comments: File["comments"];
190
- errors: null | ParseError[];
191
- tokens?: File["tokens"];
192
- };
193
- /**
194
- * Parse the provided code as an entire ECMAScript program.
195
- */
196
- declare function parse$1(input: string, options?: ParserOptions): ParseResult$1<File>;
197
- declare function parseExpression(input: string, options?: ParserOptions): ParseResult$1<Expression>;
198
- declare const tokTypes: {
199
- // todo(flow->ts) real token type
200
- [name: string]: any;
201
- };
202
- //#endregion
203
- //#region ../../node_modules/@types/babel__template/index.d.ts
204
- interface TemplateBuilderOptions extends ParserOptions {
205
- /**
206
- * A set of placeholder names to automatically accept.
207
- * Items in this list do not need to match `placeholderPattern`.
208
- *
209
- * This option cannot be used when using `%%foo%%` style placeholders.
210
- */
211
- placeholderWhitelist?: Set<string> | null | undefined;
212
- /**
213
- * A pattern to search for when looking for `Identifier` and `StringLiteral`
214
- * nodes that should be considered as placeholders.
215
- *
216
- * `false` will disable placeholder searching placeholders, leaving only
217
- * the `placeholderWhitelist` value to find replacements.
218
- *
219
- * This option cannot be used when using `%%foo%%` style placeholders.
220
- *
221
- * @default /^[_$A-Z0-9]+$/
222
- */
223
- placeholderPattern?: RegExp | false | null | undefined;
224
- /**
225
- * Set this to `true` to preserve comments from the template string
226
- * into the resulting AST, or `false` to automatically discard comments.
227
- *
228
- * @default false
229
- */
230
- preserveComments?: boolean | null | undefined;
231
- /**
232
- * Set to `true` to use `%%foo%%` style placeholders, `false` to use legacy placeholders
233
- * described by `placeholderPattern` or `placeholderWhitelist`.
234
- *
235
- * When it is not set, it behaves as `true` if there are syntactic placeholders, otherwise as `false`.
236
- *
237
- * @since 7.4.0
238
- */
239
- syntacticPlaceholders?: boolean | null | undefined;
240
- }
241
- interface TemplateBuilder<T> {
242
- /**
243
- * Build a new builder, merging the given options with the previous ones.
244
- */
245
- (opts: TemplateBuilderOptions): TemplateBuilder<T>;
246
- /**
247
- * Building from a string produces an AST builder function by default.
248
- */
249
- (code: string, opts?: TemplateBuilderOptions): (arg?: PublicReplacements) => T;
250
- /**
251
- * Building from a template literal produces an AST builder function by default.
252
- */
253
- (tpl: TemplateStringsArray, ...args: unknown[]): (arg?: PublicReplacements) => T;
254
- /**
255
- * Allow users to explicitly create templates that produce ASTs,
256
- * skipping the need for an intermediate function.
257
- *
258
- * Does not allow `%%foo%%` style placeholders.
259
- */
260
- ast: {
261
- (tpl: string, opts?: TemplateBuilderOptions): T;
262
- (tpl: TemplateStringsArray, ...args: unknown[]): T;
263
- };
264
- }
265
- type PublicReplacements = {
266
- [index: string]: unknown;
267
- } | unknown[];
268
- declare const smart: TemplateBuilder<Statement | Statement[]>;
269
- declare const statement: TemplateBuilder<Statement>;
270
- declare const statements: TemplateBuilder<Statement[]>;
271
- declare const expression: TemplateBuilder<Expression>;
272
- declare const program: TemplateBuilder<Program>;
273
- type DefaultTemplateBuilder = typeof smart & {
274
- smart: typeof smart;
275
- statement: typeof statement;
276
- statements: typeof statements;
277
- expression: typeof expression;
278
- program: typeof program;
279
- ast: typeof smart.ast;
280
- };
281
- declare const templateBuilder: DefaultTemplateBuilder;
282
- //#endregion
283
5
  //#region ../../node_modules/@types/babel__traverse/index.d.ts
284
- declare const traverse$1: {
285
- <S>(parent: Node$1, opts: TraverseOptions<S>, scope: Scope | undefined, state: S, parentPath?: NodePath): void;
286
- (parent: Node$1, opts?: TraverseOptions, scope?: Scope, state?: any, parentPath?: NodePath): void;
287
- visitors: typeof visitors;
288
- verify: typeof visitors.verify;
289
- explode: typeof visitors.explode;
290
- cheap: (node: Node$1, enter: (node: Node$1) => void) => void;
291
- node: (node: Node$1, opts: TraverseOptions, scope?: Scope, state?: any, path?: NodePath, skipKeys?: Record<string, boolean>) => void;
292
- clearNode: (node: Node$1, opts?: Options$1) => void;
293
- removeProperties: (tree: Node$1, opts?: Options$1) => Node$1;
294
- hasType: (tree: Node$1, type: Node$1["type"], denylistTypes?: string[]) => boolean;
295
- cache: typeof cache;
296
- };
297
6
  declare namespace visitors {
298
7
  /**
299
8
  * `explode()` will take a `Visitor` object with all of the various shorthands
@@ -309,21 +18,21 @@ declare namespace visitors {
309
18
  * - Visitors of virtual types are wrapped, so that they are only visited when their dynamic check passes
310
19
  * - `enter` and `exit` functions are wrapped in arrays, to ease merging of visitors
311
20
  */
312
- function explode<S = unknown>(visitor: Visitor<S>): { [Type in Exclude<Node$1, DeprecatedAliases>["type"]]?: VisitNodeObject<S, Extract<Node$1, {
21
+ function explode<S = unknown>(visitor: Visitor<S>): { [Type in Exclude<Node, DeprecatedAliases>["type"]]?: VisitNodeObject<S, Extract<Node, {
313
22
  type: Type;
314
23
  }>> };
315
24
  function verify(visitor: Visitor): void;
316
25
  function merge<State>(visitors: Array<Visitor<State>>): Visitor<State>;
317
- function merge(visitors: Visitor[], states?: any[], wrapper?: (stateKey: any, visitorKey: keyof Visitor, func: VisitNodeFunction<unknown, Node$1>) => VisitNodeFunction<unknown, Node$1> | null): Visitor;
26
+ function merge(visitors: Visitor[], states?: any[], wrapper?: (stateKey: any, visitorKey: keyof Visitor, func: VisitNodeFunction<unknown, Node>) => VisitNodeFunction<unknown, Node> | null): Visitor;
318
27
  }
319
28
  declare namespace cache {
320
- let path: WeakMap<Node$1, Map<Node$1, NodePath>>;
321
- let scope: WeakMap<Node$1, Scope>;
29
+ let path: WeakMap<Node, Map<Node, NodePath>>;
30
+ let scope: WeakMap<Node, Scope>;
322
31
  function clear(): void;
323
32
  function clearPath(): void;
324
33
  function clearScope(): void;
325
34
  }
326
- type TraverseOptions<S = Node$1> = {
35
+ type TraverseOptions<S = Node> = {
327
36
  scope?: Scope;
328
37
  noScope?: boolean;
329
38
  denylist?: NodeType[]; /** @deprecated will be removed in Babel 8 */
@@ -338,9 +47,9 @@ declare class Scope {
338
47
  constructor(path: NodePath, parentScope?: Scope);
339
48
  uid: number;
340
49
  path: NodePath;
341
- block: Node$1;
50
+ block: Node;
342
51
  labels: Map<string, NodePath<LabeledStatement>>;
343
- parentBlock: Node$1;
52
+ parentBlock: Node;
344
53
  parent: Scope;
345
54
  hub: HubInterface;
346
55
  bindings: {
@@ -361,8 +70,8 @@ declare class Scope {
361
70
  /** Variables available in current context. */
362
71
  static contextVariables: string[];
363
72
  /** Traverse node with current scope and path. */
364
- traverse<S>(node: Node$1 | Node$1[], opts: TraverseOptions<S>, state: S): void;
365
- traverse(node: Node$1 | Node$1[], opts?: TraverseOptions, state?: any): void;
73
+ traverse<S>(node: Node | Node[], opts: TraverseOptions<S>, state: S): void;
74
+ traverse(node: Node | Node[], opts?: TraverseOptions, state?: any): void;
366
75
  /** Generate a unique identifier and add it to the current scope. */
367
76
  generateDeclaredUidIdentifier(name?: string): Identifier;
368
77
  /** Generate a unique identifier. */
@@ -370,7 +79,7 @@ declare class Scope {
370
79
  /** Generate a unique `_id1` binding. */
371
80
  generateUid(name?: string): string;
372
81
  /** Generate a unique identifier based on a node. */
373
- generateUidIdentifierBasedOnNode(parent: Node$1, defaultName?: string): Identifier;
82
+ generateUidIdentifierBasedOnNode(parent: Node, defaultName?: string): Identifier;
374
83
  /**
375
84
  * Determine whether evaluating the specific input `node` is a consequenceless reference. ie.
376
85
  * evaluating it wont result in potentially arbitrary code from being ran. The following are
@@ -380,13 +89,13 @@ declare class Scope {
380
89
  * - `super` expressions
381
90
  * - Bound identifiers
382
91
  */
383
- isStatic(node: Node$1): boolean;
92
+ isStatic(node: Node): boolean;
384
93
  /** Possibly generate a memoised identifier if it is not static and has consequences. */
385
- maybeGenerateMemoised(node: Node$1, dontPush?: boolean): Identifier;
94
+ maybeGenerateMemoised(node: Node, dontPush?: boolean): Identifier;
386
95
  checkBlockScopedCollisions(local: Binding, kind: BindingKind, name: string, id: object): void;
387
- rename(oldName: string, newName?: string, block?: Node$1): void;
96
+ rename(oldName: string, newName?: string, block?: Node): void;
388
97
  dump(): void;
389
- toArray(node: Node$1, i?: number | boolean, arrayLikeIsIterable?: boolean): ArrayExpression | CallExpression | Identifier;
98
+ toArray(node: Node, i?: number | boolean, arrayLikeIsIterable?: boolean): ArrayExpression | CallExpression | Identifier;
390
99
  hasLabel(name: string): boolean;
391
100
  getLabel(name: string): NodePath<LabeledStatement> | undefined;
392
101
  registerLabel(path: NodePath<LabeledStatement>): void;
@@ -398,7 +107,7 @@ declare class Scope {
398
107
  hasUid(name: string): boolean;
399
108
  hasGlobal(name: string): boolean;
400
109
  hasReference(name: string): boolean;
401
- isPure(node: Node$1, constantsOnly?: boolean): boolean;
110
+ isPure(node: Node, constantsOnly?: boolean): boolean;
402
111
  /**
403
112
  * Set some arbitrary data on the current scope.
404
113
  */
@@ -439,7 +148,7 @@ declare class Scope {
439
148
  getAllBindings(): Record<string, Binding>;
440
149
  /** Walks the scope tree and gathers all declarations of `kind`. */
441
150
  getAllBindingsOfKind(...kinds: string[]): Record<string, Binding>;
442
- bindingIdentifierEquals(name: string, node: Node$1): boolean;
151
+ bindingIdentifierEquals(name: string, node: Node): boolean;
443
152
  getBinding(name: string): Binding | undefined;
444
153
  getOwnBinding(name: string): Binding | undefined;
445
154
  getBindingIdentifier(name: string): Identifier;
@@ -498,28 +207,28 @@ declare class Binding {
498
207
  /** Decrement the amount of references to this binding. */
499
208
  dereference(): void;
500
209
  }
501
- type Visitor<S = unknown> = VisitNodeObject<S, Node$1> & { [N in Node$1 as N["type"]]?: VisitNode<S, N extends {
210
+ type Visitor<S = unknown> = VisitNodeObject<S, Node> & { [N in Node as N["type"]]?: VisitNode<S, N extends {
502
211
  type: N["type"];
503
212
  } ? N : never> } & { [K in keyof Aliases]?: VisitNode<S, Aliases[K]> } & { [K in keyof VirtualTypeAliases]?: VisitNode<S, VirtualTypeAliases[K]> } & {
504
213
  // Babel supports `NodeTypesWithoutComment | NodeTypesWithoutComment | ... ` but it is
505
214
  // too complex for TS. So we type it as a general visitor only if the key contains `|`
506
215
  // this is good enough for non-visitor traverse options e.g. `noScope`
507
- [k: `${string}|${string}`]: VisitNode<S, Node$1>;
216
+ [k: `${string}|${string}`]: VisitNode<S, Node>;
508
217
  };
509
- type VisitNode<S, P extends Node$1> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;
510
- type VisitNodeFunction<S, P extends Node$1> = (this: S, path: NodePath<P>, state: S) => void;
511
- type NodeType = Node$1["type"] | keyof Aliases;
512
- interface VisitNodeObject<S, P extends Node$1> {
218
+ type VisitNode<S, P extends Node> = VisitNodeFunction<S, P> | VisitNodeObject<S, P>;
219
+ type VisitNodeFunction<S, P extends Node> = (this: S, path: NodePath<P>, state: S) => void;
220
+ type NodeType = Node["type"] | keyof Aliases;
221
+ interface VisitNodeObject<S, P extends Node> {
513
222
  enter?: VisitNodeFunction<S, P>;
514
223
  exit?: VisitNodeFunction<S, P>;
515
224
  }
516
- type NodeKeyOfArrays<T extends Node$1> = { [P in keyof T]-?: T[P] extends Array<Node$1 | null | undefined> ? P : never }[keyof T];
517
- type NodePaths<T extends Node$1 | readonly Node$1[]> = T extends readonly Node$1[] ? { -readonly [K in keyof T]: NodePath<Extract<T[K], Node$1>> } : T extends Node$1 ? [NodePath<T>] : never;
518
- type NodeListType<N, K extends keyof N> = N[K] extends Array<infer P> ? (P extends Node$1 ? P : never) : never;
519
- type NodesInsertionParam<T extends Node$1> = T | readonly T[] | [T, ...T[]];
520
- declare class NodePath<T = Node$1> {
521
- constructor(hub: HubInterface, parent: Node$1);
522
- parent: Node$1;
225
+ type NodeKeyOfArrays<T extends Node> = { [P in keyof T]-?: T[P] extends Array<Node | null | undefined> ? P : never }[keyof T];
226
+ type NodePaths<T extends Node | readonly Node[]> = T extends readonly Node[] ? { -readonly [K in keyof T]: NodePath<Extract<T[K], Node>> } : T extends Node ? [NodePath<T>] : never;
227
+ type NodeListType<N, K extends keyof N> = N[K] extends Array<infer P> ? (P extends Node ? P : never) : never;
228
+ type NodesInsertionParam<T extends Node> = T | readonly T[] | [T, ...T[]];
229
+ declare class NodePath<T = Node> {
230
+ constructor(hub: HubInterface, parent: Node);
231
+ parent: Node;
523
232
  hub: Hub;
524
233
  data: Record<string | symbol, unknown>;
525
234
  context: TraversalContext;
@@ -529,32 +238,32 @@ declare class NodePath<T = Node$1> {
529
238
  opts: any; // exploded TraverseOptions
530
239
  skipKeys: Record<string, boolean> | null;
531
240
  parentPath: T extends Program ? null : NodePath;
532
- container: Node$1 | Node$1[] | null;
241
+ container: Node | Node[] | null;
533
242
  listKey: string | null;
534
243
  key: string | number | null;
535
244
  node: T;
536
- type: T extends Node$1 ? T["type"] : T extends null | undefined ? undefined : Node$1["type"] | undefined;
245
+ type: T extends Node ? T["type"] : T extends null | undefined ? undefined : Node["type"] | undefined;
537
246
  shouldSkip: boolean;
538
247
  shouldStop: boolean;
539
248
  removed: boolean;
540
249
  inList: boolean;
541
250
  parentKey: string;
542
251
  typeAnnotation: object;
543
- static get<C extends Node$1, K extends keyof C>(opts: {
252
+ static get<C extends Node, K extends keyof C>(opts: {
544
253
  hub?: HubInterface;
545
254
  parentPath: NodePath | null;
546
- parent: Node$1;
255
+ parent: Node;
547
256
  container: C;
548
257
  key: K;
549
258
  }): NodePath<C[K]>;
550
- static get<C extends Node$1, L extends NodeKeyOfArrays<C>>(opts: {
259
+ static get<C extends Node, L extends NodeKeyOfArrays<C>>(opts: {
551
260
  hub?: HubInterface;
552
261
  parentPath: NodePath | null;
553
- parent: Node$1;
262
+ parent: Node;
554
263
  container: C;
555
264
  listKey: L;
556
265
  key: number;
557
- }): C[L] extends Array<Node$1 | null | undefined> ? NodePath<C[L][number]> : never;
266
+ }): C[L] extends Array<Node | null | undefined> ? NodePath<C[L][number]> : never;
558
267
  getScope(scope: Scope): Scope;
559
268
  setData(key: string | symbol, val: any): any;
560
269
  getData(key: string | symbol, def?: any): any;
@@ -591,7 +300,7 @@ declare class NodePath<T = Node$1> {
591
300
  */
592
301
  getEarliestCommonAncestorFrom(paths: NodePath[]): NodePath;
593
302
  /** Get the earliest path in the tree where the provided `paths` intersect. */
594
- getDeepestCommonAncestorFrom(paths: NodePath[], filter?: (deepest: Node$1, i: number, ancestries: NodePath[][]) => NodePath): NodePath;
303
+ getDeepestCommonAncestorFrom(paths: NodePath[], filter?: (deepest: Node, i: number, ancestries: NodePath[][]) => NodePath): NodePath;
595
304
  /**
596
305
  * Build an array of node paths containing the entire ancestry of the current node path.
597
306
  *
@@ -622,7 +331,7 @@ declare class NodePath<T = Node$1> {
622
331
  * - Insert the provided nodes after the current node.
623
332
  * - Remove the current node.
624
333
  */
625
- replaceWithMultiple<Nodes extends Node$1 | readonly Node$1[] | [Node$1, ...Node$1[]]>(nodes: Nodes): NodePaths<Nodes>;
334
+ replaceWithMultiple<Nodes extends Node | readonly Node[] | [Node, ...Node[]]>(nodes: Nodes): NodePaths<Nodes>;
626
335
  /**
627
336
  * Parse a string as an expression and replace the current node with the result.
628
337
  *
@@ -632,7 +341,7 @@ declare class NodePath<T = Node$1> {
632
341
  */
633
342
  replaceWithSourceString(replacement: string): [NodePath];
634
343
  /** Replace the current node with another. */
635
- replaceWith<R extends Node$1>(replacementPath: R | NodePath<R>): [NodePath<R>];
344
+ replaceWith<R extends Node>(replacementPath: R | NodePath<R>): [NodePath<R>];
636
345
  replaceWith<R extends NodePath>(replacementPath: R): [R];
637
346
  /**
638
347
  * This method takes an array of statements nodes and then explodes it
@@ -640,7 +349,7 @@ declare class NodePath<T = Node$1> {
640
349
  * extremely important to retain original semantics.
641
350
  */
642
351
  replaceExpressionWithStatements(nodes: Statement[]): NodePaths<Expression | Statement>;
643
- replaceInline<Nodes extends Node$1 | readonly Node$1[] | [Node$1, ...Node$1[]]>(nodes: Nodes): NodePaths<Nodes>; // #endregion
352
+ replaceInline<Nodes extends Node | readonly Node[] | [Node, ...Node[]]>(nodes: Nodes): NodePaths<Nodes>; // #endregion
644
353
  // #region ------------------------- evaluation -------------------------
645
354
  /**
646
355
  * Walk the input `node` and statically evaluate if it's truthy.
@@ -712,7 +421,7 @@ declare class NodePath<T = Node$1> {
712
421
  * This is because arrow functions may implicitly return an expression, which
713
422
  * is the same as containing a block statement.
714
423
  */
715
- canSwapBetweenExpressionAndStatement(replacement: Node$1): boolean;
424
+ canSwapBetweenExpressionAndStatement(replacement: Node): boolean;
716
425
  /** Check whether the current path references a completion record */
717
426
  isCompletionRecord(allowInsideFunction?: boolean): boolean;
718
427
  /**
@@ -781,12 +490,12 @@ declare class NodePath<T = Node$1> {
781
490
  }>; // #endregion
782
491
  // #region ------------------------- modification -------------------------
783
492
  /** Insert the provided nodes before the current one. */
784
- insertBefore<Nodes extends NodesInsertionParam<Node$1>>(nodes: Nodes): NodePaths<Nodes>;
493
+ insertBefore<Nodes extends NodesInsertionParam<Node>>(nodes: Nodes): NodePaths<Nodes>;
785
494
  /**
786
495
  * Insert the provided nodes after the current one. When inserting nodes after an
787
496
  * expression, ensure that the completion record is correct by pushing the current node.
788
497
  */
789
- insertAfter<Nodes extends NodesInsertionParam<Node$1>>(nodes: Nodes): NodePaths<Nodes>;
498
+ insertAfter<Nodes extends NodesInsertionParam<Node>>(nodes: Nodes): NodePaths<Nodes>;
790
499
  /** Update all sibling node paths after `fromIndex` by `incrementBy`. */
791
500
  updateSiblingKeys(fromIndex: number, incrementBy: number): void;
792
501
  /**
@@ -794,13 +503,13 @@ declare class NodePath<T = Node$1> {
794
503
  * @param listKey - The key at which the child nodes are stored (usually body).
795
504
  * @param nodes - the nodes to insert.
796
505
  */
797
- unshiftContainer<T extends Node$1, K extends NodeKeyOfArrays<T>, Nodes extends NodesInsertionParam<NodeListType<T, K>>>(this: NodePath<T>, listKey: K, nodes: Nodes): NodePaths<Nodes>;
506
+ unshiftContainer<T extends Node, K extends NodeKeyOfArrays<T>, Nodes extends NodesInsertionParam<NodeListType<T, K>>>(this: NodePath<T>, listKey: K, nodes: Nodes): NodePaths<Nodes>;
798
507
  /**
799
508
  * Insert child nodes at the end of the current node.
800
509
  * @param listKey - The key at which the child nodes are stored (usually body).
801
510
  * @param nodes - the nodes to insert.
802
511
  */
803
- pushContainer<T extends Node$1, K extends NodeKeyOfArrays<T>, Nodes extends NodesInsertionParam<NodeListType<T, K>>>(this: NodePath<T>, listKey: K, nodes: Nodes): NodePaths<Nodes>;
512
+ pushContainer<T extends Node, K extends NodeKeyOfArrays<T>, Nodes extends NodesInsertionParam<NodeListType<T, K>>>(this: NodePath<T>, listKey: K, nodes: Nodes): NodePaths<Nodes>;
804
513
  /** Hoist the current node to the highest scope possible and return a UID referencing it. */
805
514
  hoist(scope: Scope): void; // #endregion
806
515
  // #region ------------------------- family -------------------------
@@ -1478,14 +1187,14 @@ interface HubInterface {
1478
1187
  getCode(): string | undefined;
1479
1188
  getScope(): Scope | undefined;
1480
1189
  addHelper(name: string): any;
1481
- buildError(node: Node$1, msg: string, Error: ErrorConstructor): Error;
1190
+ buildError(node: Node, msg: string, Error: ErrorConstructor): Error;
1482
1191
  }
1483
1192
  declare class Hub implements HubInterface {
1484
1193
  constructor();
1485
1194
  getCode(): string | undefined;
1486
1195
  getScope(): Scope | undefined;
1487
1196
  addHelper(name: string): any;
1488
- buildError(node: Node$1, msg: string, Error?: ErrorConstructor): Error;
1197
+ buildError(node: Node, msg: string, Error?: ErrorConstructor): Error;
1489
1198
  }
1490
1199
  interface TraversalContext<S = unknown> {
1491
1200
  parentPath: NodePath;
@@ -1498,719 +1207,221 @@ interface TraversalContext<S = unknown> {
1498
1207
  type ImplGetOfArray<T extends readonly unknown[], K extends string> = K extends `${infer N extends number}` ? T[N] : K extends keyof T ? T[K] : never; // dprint-ignore
1499
1208
  type ImplGetByKey<T, K extends string> = T extends readonly unknown[] ? ImplGetOfArray<T, K> : K extends keyof T ? T[K] : K extends `${infer N extends number}` ? N extends keyof T ? T[N] : never : never; // dprint-ignore
1500
1209
  type ImplGetRecursive<T, K extends string> = K extends `${infer L}.${infer R}` ? ImplGetRecursive<ImplGetByKey<T, L>, R> : ImplGetByKey<T, K>;
1501
- type NodePathResult<T> = (Extract<T, Node$1 | null | undefined> extends never ? never : NodePath<Extract<T, Node$1 | null | undefined>>) | (T extends Array<Node$1 | null | undefined> ? Array<NodePath<T[number]>> : never);
1210
+ type NodePathResult<T> = (Extract<T, Node | null | undefined> extends never ? never : NodePath<Extract<T, Node | null | undefined>>) | (T extends Array<Node | null | undefined> ? Array<NodePath<T[number]>> : never);
1502
1211
  interface VirtualTypeAliases {
1503
1212
  BindingIdentifier: Identifier;
1504
- BlockScoped: Node$1;
1213
+ BlockScoped: Node;
1505
1214
  ExistentialTypeParam: ExistsTypeAnnotation;
1506
1215
  Flow: Flow | ImportDeclaration | ExportDeclaration | ImportSpecifier;
1507
1216
  ForAwaitStatement: ForOfStatement;
1508
- Generated: Node$1;
1217
+ Generated: Node;
1509
1218
  NumericLiteralTypeAnnotation: NumberLiteralTypeAnnotation;
1510
- Pure: Node$1;
1511
- Referenced: Node$1;
1219
+ Pure: Node;
1220
+ Referenced: Node;
1512
1221
  ReferencedIdentifier: Identifier | JSXIdentifier;
1513
1222
  ReferencedMemberExpression: MemberExpression;
1514
1223
  RestProperty: RestElement;
1515
1224
  Scope: Scopable | Pattern;
1516
1225
  SpreadProperty: RestElement;
1517
- User: Node$1;
1226
+ User: Node;
1518
1227
  Var: VariableDeclaration;
1519
1228
  }
1520
- declare namespace index_d_exports {
1521
- export { BabelFile, BabelFileMetadata, BabelFileModulesMetadata, BabelFileResult, ConfigAPI, ConfigFunction, ConfigItem, CreateConfigItemOptions, DEFAULT_EXTENSIONS, EnvFunction, FileParseCallback, FileResultCallback, GeneratorOptions, MatchPattern, MatchPatternContext, Node, NodePath, ParseResult, ParserOptions, PartialConfig, PluginItem, PluginObj, PluginOptions, PluginPass, PluginTarget, SimpleCacheCallback, SimpleCacheConfigurator, SimpleCacheKey, TransformCaller, TransformOptions, Visitor, createConfigItem, loadOptions, loadPartialConfig, loadPartialConfigAsync, parse, parseAsync, parseSync, resolvePlugin, resolvePreset, templateBuilder as template, transform, transformAsync, transformFile, transformFileAsync, transformFileSync, transformFromAst, transformFromAstAsync, transformFromAstSync, transformSync, traverse$1 as traverse, index_d_exports$1 as types, version };
1229
+ declare namespace babel_parser_d_exports {
1230
+ export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, PluginConfig as ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };
1522
1231
  }
1523
- type Node = Node$1;
1524
- type ParseResult = ReturnType<typeof parse$1>;
1525
- declare const version: string;
1526
- declare const DEFAULT_EXTENSIONS: [".js", ".jsx", ".es6", ".es", ".mjs"];
1527
- /**
1528
- * Source map standard format as to revision 3
1529
- * @see {@link https://sourcemaps.info/spec.html}
1530
- * @see {@link https://github.com/mozilla/source-map/blob/HEAD/source-map.d.ts}
1531
- */
1532
- interface InputSourceMap {
1533
- version: number;
1534
- sources: string[];
1535
- names: string[];
1536
- sourceRoot?: string | undefined;
1537
- sourcesContent?: string[] | undefined;
1538
- mappings: string;
1539
- file: string;
1232
+ declare class Position {
1233
+ line: number;
1234
+ column: number;
1235
+ index: number;
1236
+ constructor(line: number, col: number, index: number);
1540
1237
  }
1541
- interface TransformOptions {
1542
- /**
1543
- * Specify which assumptions it can make about your code, to better optimize the compilation result. **NOTE**: This replaces the various `loose` options in plugins in favor of
1544
- * top-level options that can apply to multiple plugins
1545
- *
1546
- * @see https://babeljs.io/docs/en/assumptions
1547
- */
1548
- assumptions?: {
1549
- [name: string]: boolean;
1550
- } | null | undefined;
1551
- /**
1552
- * Include the AST in the returned object
1553
- *
1554
- * Default: `false`
1555
- */
1556
- ast?: boolean | null | undefined;
1557
- /**
1558
- * Attach a comment after all non-user injected code
1559
- *
1560
- * Default: `null`
1561
- */
1562
- auxiliaryCommentAfter?: string | null | undefined;
1563
- /**
1564
- * Attach a comment before all non-user injected code
1565
- *
1566
- * Default: `null`
1567
- */
1568
- auxiliaryCommentBefore?: string | null | undefined;
1569
- /**
1570
- * Specify the "root" folder that defines the location to search for "babel.config.js", and the default folder to allow `.babelrc` files inside of.
1571
- *
1572
- * Default: `"."`
1573
- */
1574
- root?: string | null | undefined;
1575
- /**
1576
- * This option, combined with the "root" value, defines how Babel chooses its project root.
1577
- * The different modes define different ways that Babel can process the "root" value to get
1578
- * the final project root.
1579
- *
1580
- * @see https://babeljs.io/docs/en/next/options#rootmode
1581
- */
1582
- rootMode?: "root" | "upward" | "upward-optional" | undefined;
1583
- /**
1584
- * The config file to load Babel's config from. Defaults to searching for "babel.config.js" inside the "root" folder. `false` will disable searching for config files.
1585
- *
1586
- * Default: `undefined`
1587
- */
1588
- configFile?: string | boolean | null | undefined;
1589
- /**
1590
- * Specify whether or not to use .babelrc and
1591
- * .babelignore files.
1592
- *
1593
- * Default: `true`
1594
- */
1595
- babelrc?: boolean | null | undefined;
1596
- /**
1597
- * Specify which packages should be search for .babelrc files when they are being compiled. `true` to always search, or a path string or an array of paths to packages to search
1598
- * inside of. Defaults to only searching the "root" package.
1599
- *
1600
- * Default: `(root)`
1601
- */
1602
- babelrcRoots?: boolean | MatchPattern | MatchPattern[] | null | undefined;
1603
- /**
1604
- * Toggles whether or not browserslist config sources are used, which includes searching for any browserslist files or referencing the browserslist key inside package.json.
1605
- * This is useful for projects that use a browserslist config for files that won't be compiled with Babel.
1606
- *
1607
- * If a string is specified, it must represent the path of a browserslist configuration file. Relative paths are resolved relative to the configuration file which specifies
1608
- * this option, or to `cwd` when it's passed as part of the programmatic options.
1609
- *
1610
- * Default: `true`
1611
- */
1612
- browserslistConfigFile?: boolean | null | undefined;
1613
- /**
1614
- * The Browserslist environment to use.
1615
- *
1616
- * Default: `undefined`
1617
- */
1618
- browserslistEnv?: string | null | undefined;
1619
- /**
1620
- * By default `babel.transformFromAst` will clone the input AST to avoid mutations.
1621
- * Specifying `cloneInputAst: false` can improve parsing performance if the input AST is not used elsewhere.
1622
- *
1623
- * Default: `true`
1624
- */
1625
- cloneInputAst?: boolean | null | undefined;
1626
- /**
1627
- * Defaults to environment variable `BABEL_ENV` if set, or else `NODE_ENV` if set, or else it defaults to `"development"`
1628
- *
1629
- * Default: env vars
1630
- */
1631
- envName?: string | undefined;
1632
- /**
1633
- * If any of patterns match, the current configuration object is considered inactive and is ignored during config processing.
1634
- */
1635
- exclude?: MatchPattern | MatchPattern[] | undefined;
1636
- /**
1637
- * Enable code generation
1638
- *
1639
- * Default: `true`
1640
- */
1641
- code?: boolean | null | undefined;
1642
- /**
1643
- * Output comments in generated output
1644
- *
1645
- * Default: `true`
1646
- */
1647
- comments?: boolean | null | undefined;
1648
- /**
1649
- * Do not include superfluous whitespace characters and line terminators. When set to `"auto"` compact is set to `true` on input sizes of >500KB
1650
- *
1651
- * Default: `"auto"`
1652
- */
1653
- compact?: boolean | "auto" | null | undefined;
1654
- /**
1655
- * The working directory that Babel's programmatic options are loaded relative to.
1656
- *
1657
- * Default: `"."`
1658
- */
1659
- cwd?: string | null | undefined;
1660
- /**
1661
- * Utilities may pass a caller object to identify themselves to Babel and
1662
- * pass capability-related flags for use by configs, presets and plugins.
1663
- *
1664
- * @see https://babeljs.io/docs/en/next/options#caller
1665
- */
1666
- caller?: TransformCaller | undefined;
1667
- /**
1668
- * This is an object of keys that represent different environments. For example, you may have: `{ env: { production: { \/* specific options *\/ } } }`
1669
- * which will use those options when the `envName` is `production`
1670
- *
1671
- * Default: `{}`
1672
- */
1673
- env?: {
1674
- [index: string]: TransformOptions | null | undefined;
1675
- } | null | undefined;
1676
- /**
1677
- * A path to a `.babelrc` file to extend
1678
- *
1679
- * Default: `null`
1680
- */
1681
- extends?: string | null | undefined;
1682
- /**
1683
- * Filename for use in errors etc
1684
- *
1685
- * Default: `"unknown"`
1686
- */
1687
- filename?: string | null | undefined;
1688
- /**
1689
- * Filename relative to `sourceRoot`
1690
- *
1691
- * Default: `(filename)`
1692
- */
1693
- filenameRelative?: string | null | undefined;
1694
- /**
1695
- * An object containing the options to be passed down to the babel code generator, @babel/generator
1696
- *
1697
- * Default: `{}`
1698
- */
1699
- generatorOpts?: GeneratorOptions | null | undefined;
1700
- /**
1701
- * Specify a custom callback to generate a module id with. Called as `getModuleId(moduleName)`. If falsy value is returned then the generated module id is used
1702
- *
1703
- * Default: `null`
1704
- */
1705
- getModuleId?: ((moduleName: string) => string | null | undefined) | null | undefined;
1706
- /**
1707
- * ANSI highlight syntax error code frames
1708
- *
1709
- * Default: `true`
1710
- */
1711
- highlightCode?: boolean | null | undefined;
1712
- /**
1713
- * Opposite to the `only` option. `ignore` is disregarded if `only` is specified
1714
- *
1715
- * Default: `null`
1716
- */
1717
- ignore?: MatchPattern[] | null | undefined;
1718
- /**
1719
- * This option is a synonym for "test"
1720
- */
1721
- include?: MatchPattern | MatchPattern[] | undefined;
1722
- /**
1723
- * A source map object that the output source map will be based on
1724
- *
1725
- * Default: `null`
1726
- */
1727
- inputSourceMap?: InputSourceMap | null | undefined;
1728
- /**
1729
- * Should the output be minified (not printing last semicolons in blocks, printing literal string values instead of escaped ones, stripping `()` from `new` when safe)
1730
- *
1731
- * Default: `false`
1732
- */
1733
- minified?: boolean | null | undefined;
1734
- /**
1735
- * Specify a custom name for module ids
1736
- *
1737
- * Default: `null`
1738
- */
1739
- moduleId?: string | null | undefined;
1740
- /**
1741
- * If truthy, insert an explicit id for modules. By default, all modules are anonymous. (Not available for `common` modules)
1742
- *
1743
- * Default: `false`
1744
- */
1745
- moduleIds?: boolean | null | undefined;
1746
- /**
1747
- * Optional prefix for the AMD module formatter that will be prepend to the filename on module definitions
1748
- *
1749
- * Default: `(sourceRoot)`
1750
- */
1751
- moduleRoot?: string | null | undefined;
1752
- /**
1753
- * A glob, regex, or mixed array of both, matching paths to **only** compile. Can also be an array of arrays containing paths to explicitly match. When attempting to compile
1754
- * a non-matching file it's returned verbatim
1755
- *
1756
- * Default: `null`
1757
- */
1758
- only?: MatchPattern[] | null | undefined;
1759
- /**
1760
- * Allows users to provide an array of options that will be merged into the current configuration one at a time.
1761
- * This feature is best used alongside the "test"/"include"/"exclude" options to provide conditions for which an override should apply
1762
- */
1763
- overrides?: TransformOptions[] | undefined;
1238
+ type SyntaxPlugin = "flow" | "typescript" | "jsx" | "functionBind" | "pipelineOperator" | "placeholders";
1239
+ type ParseErrorCode = "BABEL_PARSER_SYNTAX_ERROR" | "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";
1240
+ interface ParseErrorSpecification<ErrorDetails> {
1241
+ code: ParseErrorCode;
1242
+ reasonCode: string;
1243
+ syntaxPlugin?: SyntaxPlugin;
1244
+ missingPlugin?: string | string[];
1245
+ loc: Position;
1246
+ details: ErrorDetails;
1247
+ pos: number;
1248
+ }
1249
+ type ParseError$1<ErrorDetails> = SyntaxError & ParseErrorSpecification<ErrorDetails>;
1250
+ type BABEL_8_BREAKING = false;
1251
+ type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never;
1252
+ type Plugin$1 = "asyncDoExpressions" | IF_BABEL_7<"asyncGenerators"> | IF_BABEL_7<"bigInt"> | IF_BABEL_7<"classPrivateMethods"> | IF_BABEL_7<"classPrivateProperties"> | IF_BABEL_7<"classProperties"> | IF_BABEL_7<"classStaticBlock"> | IF_BABEL_7<"decimal"> | "decorators-legacy" | "deferredImportEvaluation" | "decoratorAutoAccessors" | "destructuringPrivate" | IF_BABEL_7<"deprecatedImportAssert"> | "doExpressions" | IF_BABEL_7<"dynamicImport"> | IF_BABEL_7<"explicitResourceManagement"> | "exportDefaultFrom" | IF_BABEL_7<"exportNamespaceFrom"> | "flow" | "flowComments" | "functionBind" | "functionSent" | "importMeta" | "jsx" | IF_BABEL_7<"jsonStrings"> | IF_BABEL_7<"logicalAssignment"> | IF_BABEL_7<"importAssertions"> | IF_BABEL_7<"importReflection"> | "moduleBlocks" | IF_BABEL_7<"moduleStringNames"> | IF_BABEL_7<"nullishCoalescingOperator"> | IF_BABEL_7<"numericSeparator"> | IF_BABEL_7<"objectRestSpread"> | IF_BABEL_7<"optionalCatchBinding"> | IF_BABEL_7<"optionalChaining"> | "partialApplication" | "placeholders" | IF_BABEL_7<"privateIn"> | IF_BABEL_7<"regexpUnicodeSets"> | "sourcePhaseImports" | "throwExpressions" | IF_BABEL_7<"topLevelAwait"> | "v8intrinsic" | ParserPluginWithOptions[0];
1253
+ type ParserPluginWithOptions = ["decorators", DecoratorsPluginOptions] | ["discardBinding", {
1254
+ syntaxType: "void";
1255
+ }] | ["estree", {
1256
+ classFeatures?: boolean;
1257
+ }] | IF_BABEL_7<["importAttributes", {
1258
+ deprecatedAssertSyntax: boolean;
1259
+ }]> | IF_BABEL_7<["moduleAttributes", {
1260
+ version: "may-2020";
1261
+ }]> | ["optionalChainingAssign", {
1262
+ version: "2023-07";
1263
+ }] | ["pipelineOperator", PipelineOperatorPluginOptions] | ["recordAndTuple", RecordAndTuplePluginOptions] | ["flow", FlowPluginOptions] | ["typescript", TypeScriptPluginOptions];
1264
+ type PluginConfig = Plugin$1 | ParserPluginWithOptions;
1265
+ interface DecoratorsPluginOptions {
1266
+ decoratorsBeforeExport?: boolean;
1267
+ allowCallParenthesized?: boolean;
1268
+ }
1269
+ interface PipelineOperatorPluginOptions {
1270
+ proposal: BABEL_8_BREAKING extends false ? "minimal" | "fsharp" | "hack" | "smart" : "fsharp" | "hack";
1271
+ topicToken?: "%" | "#" | "@@" | "^^" | "^";
1272
+ }
1273
+ interface RecordAndTuplePluginOptions {
1274
+ syntaxType: "bar" | "hash";
1275
+ }
1276
+ type FlowPluginOptions = BABEL_8_BREAKING extends true ? {
1277
+ all?: boolean;
1278
+ enums?: boolean;
1279
+ } : {
1280
+ all?: boolean;
1281
+ };
1282
+ interface TypeScriptPluginOptions {
1283
+ dts?: boolean;
1284
+ disallowAmbiguousJSXLike?: boolean;
1285
+ }
1286
+ type Plugin = PluginConfig;
1287
+ type SourceType = "script" | "commonjs" | "module" | "unambiguous";
1288
+ interface Options {
1764
1289
  /**
1765
- * An object containing the options to be passed down to the babel parser, @babel/parser
1766
- *
1767
- * Default: `{}`
1290
+ * By default, import and export declarations can only appear at a program's top level.
1291
+ * Setting this option to true allows them anywhere where a statement is allowed.
1768
1292
  */
1769
- parserOpts?: ParserOptions | null | undefined;
1293
+ allowImportExportEverywhere?: boolean;
1770
1294
  /**
1771
- * List of plugins to load and use
1772
- *
1773
- * Default: `[]`
1295
+ * By default, await use is not allowed outside of an async function.
1296
+ * Set this to true to accept such code.
1774
1297
  */
1775
- plugins?: PluginItem[] | null | undefined;
1298
+ allowAwaitOutsideFunction?: boolean;
1776
1299
  /**
1777
- * List of presets (a set of plugins) to load and use
1778
- *
1779
- * Default: `[]`
1300
+ * By default, a return statement at the top level raises an error.
1301
+ * Set this to true to accept such code.
1780
1302
  */
1781
- presets?: PluginItem[] | null | undefined;
1303
+ allowReturnOutsideFunction?: boolean;
1782
1304
  /**
1783
- * Retain line numbers. This will lead to wacky code but is handy for scenarios where you can't use source maps. (**NOTE**: This will not retain the columns)
1784
- *
1785
- * Default: `false`
1305
+ * By default, new.target use is not allowed outside of a function or class.
1306
+ * Set this to true to accept such code.
1786
1307
  */
1787
- retainLines?: boolean | null | undefined;
1308
+ allowNewTargetOutsideFunction?: boolean;
1788
1309
  /**
1789
- * An optional callback that controls whether a comment should be output or not. Called as `shouldPrintComment(commentContents)`. **NOTE**: This overrides the `comment` option when used
1790
- *
1791
- * Default: `null`
1310
+ * By default, super calls are not allowed outside of a method.
1311
+ * Set this to true to accept such code.
1792
1312
  */
1793
- shouldPrintComment?: ((commentContents: string) => boolean) | null | undefined;
1313
+ allowSuperOutsideMethod?: boolean;
1794
1314
  /**
1795
- * Set `sources[0]` on returned source map
1796
- *
1797
- * Default: `(filenameRelative)`
1315
+ * By default, exported identifiers must refer to a declared variable.
1316
+ * Set this to true to allow export statements to reference undeclared variables.
1798
1317
  */
1799
- sourceFileName?: string | null | undefined;
1318
+ allowUndeclaredExports?: boolean;
1800
1319
  /**
1801
- * If truthy, adds a `map` property to returned output. If set to `"inline"`, a comment with a sourceMappingURL directive is added to the bottom of the returned code. If set to `"both"`
1802
- * then a `map` property is returned as well as a source map comment appended. **This does not emit sourcemap files by itself!**
1803
- *
1804
- * Default: `false`
1320
+ * By default, yield use is not allowed outside of a generator function.
1321
+ * Set this to true to accept such code.
1805
1322
  */
1806
- sourceMaps?: boolean | "inline" | "both" | null | undefined;
1323
+ allowYieldOutsideFunction?: boolean;
1807
1324
  /**
1808
- * The root from which all sources are relative
1809
- *
1810
- * Default: `(moduleRoot)`
1325
+ * By default, Babel parser JavaScript code according to Annex B syntax.
1326
+ * Set this to `false` to disable such behavior.
1811
1327
  */
1812
- sourceRoot?: string | null | undefined;
1328
+ annexB?: boolean;
1813
1329
  /**
1814
- * Indicate the mode the code should be parsed in. Can be one of "script", "module", or "unambiguous". `"unambiguous"` will make Babel attempt to guess, based on the presence of ES6
1815
- * `import` or `export` statements. Files with ES6 `import`s and `export`s are considered `"module"` and are otherwise `"script"`.
1816
- *
1817
- * Default: `("module")`
1330
+ * By default, Babel attaches comments to adjacent AST nodes.
1331
+ * When this option is set to false, comments are not attached.
1332
+ * It can provide up to 30% performance improvement when the input code has many comments.
1333
+ * @babel/eslint-parser will set it for you.
1334
+ * It is not recommended to use attachComment: false with Babel transform,
1335
+ * as doing so removes all the comments in output code, and renders annotations such as
1336
+ * /* istanbul ignore next *\/ nonfunctional.
1818
1337
  */
1819
- sourceType?: "script" | "module" | "unambiguous" | null | undefined;
1338
+ attachComment?: boolean;
1820
1339
  /**
1821
- * If all patterns fail to match, the current configuration object is considered inactive and is ignored during config processing.
1340
+ * By default, Babel always throws an error when it finds some invalid code.
1341
+ * When this option is set to true, it will store the parsing error and
1342
+ * try to continue parsing the invalid input file.
1822
1343
  */
1823
- test?: MatchPattern | MatchPattern[] | undefined;
1344
+ errorRecovery?: boolean;
1824
1345
  /**
1825
- * Describes the environments you support/target for your project.
1826
- * This can either be a [browserslist-compatible](https://github.com/ai/browserslist) query (with [caveats](https://babeljs.io/docs/en/babel-preset-env#ineffective-browserslist-queries))
1346
+ * Indicate the mode the code should be parsed in.
1347
+ * Can be one of "script", "commonjs", "module", or "unambiguous". Defaults to "script".
1348
+ * "unambiguous" will make @babel/parser attempt to guess, based on the presence
1349
+ * of ES6 import or export statements.
1350
+ * Files with ES6 imports and exports are considered "module" and are otherwise "script".
1827
1351
  *
1828
- * Default: `{}`
1829
- */
1830
- targets?: string | string[] | {
1831
- esmodules?: boolean;
1832
- node?: Omit<string, "current"> | "current" | true;
1833
- safari?: Omit<string, "tp"> | "tp";
1834
- browsers?: string | string[];
1835
- android?: string;
1836
- chrome?: string;
1837
- deno?: string;
1838
- edge?: string;
1839
- electron?: string;
1840
- firefox?: string;
1841
- ie?: string;
1842
- ios?: string;
1843
- opera?: string;
1844
- rhino?: string;
1845
- samsung?: string;
1846
- };
1847
- /**
1848
- * An optional callback that can be used to wrap visitor methods. **NOTE**: This is useful for things like introspection, and not really needed for implementing anything. Called as
1849
- * `wrapPluginVisitorMethod(pluginAlias, visitorType, callback)`.
1850
- */
1851
- wrapPluginVisitorMethod?: ((pluginAlias: string, visitorType: "enter" | "exit", callback: (path: NodePath, state: any) => void) => (path: NodePath, state: any) => void) | null | undefined;
1852
- }
1853
- interface TransformCaller {
1854
- // the only required property
1855
- name: string; // e.g. set to true by `babel-loader` and false by `babel-jest`
1856
- supportsStaticESM?: boolean | undefined;
1857
- supportsDynamicImport?: boolean | undefined;
1858
- supportsExportNamespaceFrom?: boolean | undefined;
1859
- supportsTopLevelAwait?: boolean | undefined; // augment this with a "declare module '@babel/core' { ... }" if you need more keys
1860
- }
1861
- type FileResultCallback = (err: Error | null, result: BabelFileResult | null) => any;
1862
- interface MatchPatternContext {
1863
- envName: string;
1864
- dirname: string;
1865
- caller: TransformCaller | undefined;
1866
- }
1867
- type MatchPattern = string | RegExp | ((filename: string | undefined, context: MatchPatternContext) => boolean);
1868
- /**
1869
- * Transforms the passed in code. Calling a callback with an object with the generated code, source map, and AST.
1870
- */
1871
- declare function transform(code: string, callback: FileResultCallback): void;
1872
- /**
1873
- * Transforms the passed in code. Calling a callback with an object with the generated code, source map, and AST.
1874
- */
1875
- declare function transform(code: string, opts: TransformOptions | undefined, callback: FileResultCallback): void;
1876
- /**
1877
- * Here for backward-compatibility. Ideally use `transformSync` if you want a synchronous API.
1878
- */
1879
- declare function transform(code: string, opts?: TransformOptions): BabelFileResult | null;
1880
- /**
1881
- * Transforms the passed in code. Returning an object with the generated code, source map, and AST.
1882
- */
1883
- declare function transformSync(code: string, opts?: TransformOptions): BabelFileResult | null;
1884
- /**
1885
- * Transforms the passed in code. Calling a callback with an object with the generated code, source map, and AST.
1886
- */
1887
- declare function transformAsync(code: string, opts?: TransformOptions): Promise<BabelFileResult | null>;
1888
- /**
1889
- * Asynchronously transforms the entire contents of a file.
1890
- */
1891
- declare function transformFile(filename: string, callback: FileResultCallback): void;
1892
- /**
1893
- * Asynchronously transforms the entire contents of a file.
1894
- */
1895
- declare function transformFile(filename: string, opts: TransformOptions | undefined, callback: FileResultCallback): void;
1896
- /**
1897
- * Synchronous version of `babel.transformFile`. Returns the transformed contents of the `filename`.
1898
- */
1899
- declare function transformFileSync(filename: string, opts?: TransformOptions): BabelFileResult | null;
1900
- /**
1901
- * Asynchronously transforms the entire contents of a file.
1902
- */
1903
- declare function transformFileAsync(filename: string, opts?: TransformOptions): Promise<BabelFileResult | null>;
1904
- /**
1905
- * Given an AST, transform it.
1906
- */
1907
- declare function transformFromAst(ast: Node, code: string | undefined, callback: FileResultCallback): void;
1908
- /**
1909
- * Given an AST, transform it.
1910
- */
1911
- declare function transformFromAst(ast: Node, code: string | undefined, opts: TransformOptions | undefined, callback: FileResultCallback): void;
1912
- /**
1913
- * Here for backward-compatibility. Ideally use ".transformSync" if you want a synchronous API.
1914
- */
1915
- declare function transformFromAstSync(ast: Node, code?: string, opts?: TransformOptions): BabelFileResult | null;
1916
- /**
1917
- * Given an AST, transform it.
1918
- */
1919
- declare function transformFromAstAsync(ast: Node, code?: string, opts?: TransformOptions): Promise<BabelFileResult | null>;
1920
- // A babel plugin is a simple function which must return an object matching
1921
- // the following interface. Babel will throw if it finds unknown properties.
1922
- // The list of allowed plugin keys is here:
1923
- // https://github.com/babel/babel/blob/4e50b2d9d9c376cee7a2cbf56553fe5b982ea53c/packages/babel-core/src/config/option-manager.js#L71
1924
- interface PluginObj<S = PluginPass> {
1925
- name?: string | undefined;
1926
- manipulateOptions?(opts: any, parserOpts: any): void;
1927
- pre?(this: S, file: BabelFile): void;
1928
- visitor: Visitor<S>;
1929
- post?(this: S, file: BabelFile): void;
1930
- inherits?: any;
1931
- }
1932
- interface BabelFile {
1933
- ast: File;
1934
- opts: TransformOptions;
1935
- hub: Hub;
1936
- metadata: object;
1937
- path: NodePath<Program>;
1938
- scope: Scope;
1939
- inputMap: object | null;
1940
- code: string;
1941
- }
1942
- interface PluginPass {
1943
- file: BabelFile;
1944
- key: string;
1945
- opts: object;
1946
- cwd: string;
1947
- filename: string | undefined;
1948
- get(key: unknown): any;
1949
- set(key: unknown, value: unknown): void;
1950
- [key: string]: unknown;
1951
- }
1952
- interface BabelFileResult {
1953
- ast?: File | null | undefined;
1954
- code?: string | null | undefined;
1955
- ignored?: boolean | undefined;
1956
- map?: {
1957
- version: number;
1958
- sources: string[];
1959
- names: string[];
1960
- sourceRoot?: string | undefined;
1961
- sourcesContent?: string[] | undefined;
1962
- mappings: string;
1963
- file: string;
1964
- } | null | undefined;
1965
- metadata?: BabelFileMetadata | undefined;
1966
- }
1967
- interface BabelFileMetadata {
1968
- usedHelpers: string[];
1969
- marked: Array<{
1970
- type: string;
1971
- message: string;
1972
- loc: object;
1973
- }>;
1974
- modules: BabelFileModulesMetadata;
1975
- }
1976
- interface BabelFileModulesMetadata {
1977
- imports: object[];
1978
- exports: {
1979
- exported: object[];
1980
- specifiers: object[];
1981
- };
1982
- }
1983
- type FileParseCallback = (err: Error | null, result: ParseResult | null) => any;
1984
- /**
1985
- * Given some code, parse it using Babel's standard behavior.
1986
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
1987
- */
1988
- declare function parse(code: string, callback: FileParseCallback): void;
1989
- /**
1990
- * Given some code, parse it using Babel's standard behavior.
1991
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
1992
- */
1993
- declare function parse(code: string, options: TransformOptions | undefined, callback: FileParseCallback): void;
1994
- /**
1995
- * Given some code, parse it using Babel's standard behavior.
1996
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
1997
- */
1998
- declare function parse(code: string, options?: TransformOptions): ParseResult | null;
1999
- /**
2000
- * Given some code, parse it using Babel's standard behavior.
2001
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
2002
- */
2003
- declare function parseSync(code: string, options?: TransformOptions): ParseResult | null;
2004
- /**
2005
- * Given some code, parse it using Babel's standard behavior.
2006
- * Referenced presets and plugins will be loaded such that optional syntax plugins are automatically enabled.
2007
- */
2008
- declare function parseAsync(code: string, options?: TransformOptions): Promise<ParseResult | null>;
2009
- /**
2010
- * Resolve Babel's options fully, resulting in an options object where:
2011
- *
2012
- * * opts.plugins is a full list of Plugin instances.
2013
- * * opts.presets is empty and all presets are flattened into opts.
2014
- * * It can be safely passed back to Babel. Fields like babelrc have been set to false so that later calls to Babel
2015
- * will not make a second attempt to load config files.
2016
- *
2017
- * Plugin instances aren't meant to be manipulated directly, but often callers will serialize this opts to JSON to
2018
- * use it as a cache key representing the options Babel has received. Caching on this isn't 100% guaranteed to
2019
- * invalidate properly, but it is the best we have at the moment.
2020
- */
2021
- declare function loadOptions(options?: TransformOptions): object | null;
2022
- /**
2023
- * To allow systems to easily manipulate and validate a user's config, this function resolves the plugins and
2024
- * presets and proceeds no further. The expectation is that callers will take the config's .options, manipulate it
2025
- * as then see fit and pass it back to Babel again.
2026
- *
2027
- * * `babelrc: string | void` - The path of the `.babelrc` file, if there was one.
2028
- * * `babelignore: string | void` - The path of the `.babelignore` file, if there was one.
2029
- * * `options: ValidatedOptions` - The partially resolved options, which can be manipulated and passed back
2030
- * to Babel again.
2031
- * * `plugins: Array<ConfigItem>` - See below.
2032
- * * `presets: Array<ConfigItem>` - See below.
2033
- * * It can be safely passed back to Babel. Fields like `babelrc` have been set to false so that later calls to
2034
- * Babel will not make a second attempt to load config files.
2035
- *
2036
- * `ConfigItem` instances expose properties to introspect the values, but each item should be treated as
2037
- * immutable. If changes are desired, the item should be removed from the list and replaced with either a normal
2038
- * Babel config value, or with a replacement item created by `babel.createConfigItem`. See that function for
2039
- * information about `ConfigItem` fields.
2040
- */
2041
- declare function loadPartialConfig(options?: TransformOptions): Readonly<PartialConfig> | null;
2042
- declare function loadPartialConfigAsync(options?: TransformOptions): Promise<Readonly<PartialConfig> | null>;
2043
- interface PartialConfig {
2044
- options: TransformOptions;
2045
- babelrc?: string | undefined;
2046
- babelignore?: string | undefined;
2047
- config?: string | undefined;
2048
- hasFilesystemConfig: () => boolean;
2049
- }
2050
- interface ConfigItem {
2051
- /**
2052
- * The name that the user gave the plugin instance, e.g. `plugins: [ ['env', {}, 'my-env'] ]`
2053
- */
2054
- name?: string | undefined;
2055
- /**
2056
- * The resolved value of the plugin.
2057
- */
2058
- value: object | ((...args: any[]) => any);
2059
- /**
2060
- * The options object passed to the plugin.
2061
- */
2062
- options?: object | false | undefined;
2063
- /**
2064
- * The path that the options are relative to.
1352
+ * Use "commonjs" to parse code that is intended to be run in a CommonJS environment such as Node.js.
2065
1353
  */
2066
- dirname: string;
1354
+ sourceType?: SourceType;
2067
1355
  /**
2068
- * Information about the plugin's file, if Babel knows it.
2069
- * *
1356
+ * Correlate output AST nodes with their source filename.
1357
+ * Useful when generating code and source maps from the ASTs of multiple input files.
2070
1358
  */
2071
- file?: {
2072
- /**
2073
- * The file that the user requested, e.g. `"@babel/env"`
2074
- */
2075
- request: string;
2076
- /**
2077
- * The full path of the resolved file, e.g. `"/tmp/node_modules/@babel/preset-env/lib/index.js"`
2078
- */
2079
- resolved: string;
2080
- } | null | undefined;
2081
- }
2082
- type PluginOptions = object | undefined | false;
2083
- type PluginTarget = string | object | ((...args: any[]) => any);
2084
- type PluginItem = ConfigItem | PluginObj<any> | PluginTarget | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined];
2085
- declare function resolvePlugin(name: string, dirname: string): string | null;
2086
- declare function resolvePreset(name: string, dirname: string): string | null;
2087
- interface CreateConfigItemOptions {
2088
- dirname?: string | undefined;
2089
- type?: "preset" | "plugin" | undefined;
2090
- }
2091
- /**
2092
- * Allows build tooling to create and cache config items up front. If this function is called multiple times for a
2093
- * given plugin, Babel will call the plugin's function itself multiple times. If you have a clear set of expected
2094
- * plugins and presets to inject, pre-constructing the config items would be recommended.
2095
- */
2096
- declare function createConfigItem(value: PluginTarget | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined], options?: CreateConfigItemOptions): ConfigItem;
2097
- // NOTE: the documentation says the ConfigAPI also exposes @babel/core's exports, but it actually doesn't
2098
- /**
2099
- * @see https://babeljs.io/docs/en/next/config-files#config-function-api
2100
- */
2101
- interface ConfigAPI {
1359
+ sourceFilename?: string;
2102
1360
  /**
2103
- * The version string for the Babel version that is loading the config file.
2104
- *
2105
- * @see https://babeljs.io/docs/en/next/config-files#apiversion
1361
+ * By default, all source indexes start from 0.
1362
+ * You can provide a start index to alternatively start with.
1363
+ * Useful for integration with other source tools.
2106
1364
  */
2107
- version: string;
1365
+ startIndex?: number;
2108
1366
  /**
2109
- * @see https://babeljs.io/docs/en/next/config-files#apicache
1367
+ * By default, the first line of code parsed is treated as line 1.
1368
+ * You can provide a line number to alternatively start with.
1369
+ * Useful for integration with other source tools.
2110
1370
  */
2111
- cache: SimpleCacheConfigurator;
1371
+ startLine?: number;
2112
1372
  /**
2113
- * @see https://babeljs.io/docs/en/next/config-files#apienv
1373
+ * By default, the parsed code is treated as if it starts from line 1, column 0.
1374
+ * You can provide a column number to alternatively start with.
1375
+ * Useful for integration with other source tools.
2114
1376
  */
2115
- env: EnvFunction; // undocumented; currently hardcoded to return 'false'
2116
- // async(): boolean
1377
+ startColumn?: number;
2117
1378
  /**
2118
- * This API is used as a way to access the `caller` data that has been passed to Babel.
2119
- * Since many instances of Babel may be running in the same process with different `caller` values,
2120
- * this API is designed to automatically configure `api.cache`, the same way `api.env()` does.
2121
- *
2122
- * The `caller` value is available as the first parameter of the callback function.
2123
- * It is best used with something like this to toggle configuration behavior
2124
- * based on a specific environment:
2125
- *
2126
- * @example
2127
- * function isBabelRegister(caller?: { name: string }) {
2128
- * return !!(caller && caller.name === "@babel/register")
2129
- * }
2130
- * api.caller(isBabelRegister)
2131
- *
2132
- * @see https://babeljs.io/docs/en/next/config-files#apicallercb
1379
+ * Array containing the plugins that you want to enable.
2133
1380
  */
2134
- caller<T extends SimpleCacheKey>(callerCallback: (caller: TransformOptions["caller"]) => T): T;
1381
+ plugins?: Plugin[];
2135
1382
  /**
2136
- * While `api.version` can be useful in general, it's sometimes nice to just declare your version.
2137
- * This API exposes a simple way to do that with:
2138
- *
2139
- * @example
2140
- * api.assertVersion(7) // major version only
2141
- * api.assertVersion("^7.2")
2142
- *
2143
- * @see https://babeljs.io/docs/en/next/config-files#apiassertversionrange
1383
+ * Should the parser work in strict mode.
1384
+ * Defaults to true if sourceType === 'module'. Otherwise, false.
2144
1385
  */
2145
- assertVersion(versionRange: number | string): boolean; // NOTE: this is an undocumented reexport from "@babel/parser" but it's missing from its types
2146
- // tokTypes: typeof tokTypes
2147
- }
2148
- /**
2149
- * JS configs are great because they can compute a config on the fly,
2150
- * but the downside there is that it makes caching harder.
2151
- * Babel wants to avoid re-executing the config function every time a file is compiled,
2152
- * because then it would also need to re-execute any plugin and preset functions
2153
- * referenced in that config.
2154
- *
2155
- * To avoid this, Babel expects users of config functions to tell it how to manage caching
2156
- * within a config file.
2157
- *
2158
- * @see https://babeljs.io/docs/en/next/config-files#apicache
2159
- */
2160
- interface SimpleCacheConfigurator {
2161
- // there is an undocumented call signature that is a shorthand for forever()/never()/using().
2162
- // (ever: boolean): void
2163
- // <T extends SimpleCacheKey>(callback: CacheCallback<T>): T
1386
+ strictMode?: boolean;
2164
1387
  /**
2165
- * Permacache the computed config and never call the function again.
1388
+ * Adds a ranges property to each node: [node.start, node.end]
2166
1389
  */
2167
- forever(): void;
1390
+ ranges?: boolean;
2168
1391
  /**
2169
- * Do not cache this config, and re-execute the function every time.
1392
+ * Adds all parsed tokens to a tokens property on the File node.
2170
1393
  */
2171
- never(): void;
1394
+ tokens?: boolean;
2172
1395
  /**
2173
- * Any time the using callback returns a value other than the one that was expected,
2174
- * the overall config function will be called again and a new entry will be added to the cache.
2175
- *
2176
- * @example
2177
- * api.cache.using(() => process.env.NODE_ENV)
1396
+ * By default, the parser adds information about parentheses by setting
1397
+ * `extra.parenthesized` to `true` as needed.
1398
+ * When this option is `true` the parser creates `ParenthesizedExpression`
1399
+ * AST nodes instead of using the `extra` property.
2178
1400
  */
2179
- using<T extends SimpleCacheKey>(callback: SimpleCacheCallback<T>): T;
1401
+ createParenthesizedExpressions?: boolean;
2180
1402
  /**
2181
- * Any time the using callback returns a value other than the one that was expected,
2182
- * the overall config function will be called again and all entries in the cache will
2183
- * be replaced with the result.
2184
- *
2185
- * @example
2186
- * api.cache.invalidate(() => process.env.NODE_ENV)
1403
+ * The default is false in Babel 7 and true in Babel 8
1404
+ * Set this to true to parse it as an `ImportExpression` node.
1405
+ * Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
2187
1406
  */
2188
- invalidate<T extends SimpleCacheKey>(callback: SimpleCacheCallback<T>): T;
1407
+ createImportExpressions?: boolean;
2189
1408
  }
2190
- // https://github.com/babel/babel/blob/v7.3.3/packages/babel-core/src/config/caching.js#L231
2191
- type SimpleCacheKey = string | boolean | number | null | undefined;
2192
- type SimpleCacheCallback<T extends SimpleCacheKey> = () => T;
1409
+ type ParserOptions = Partial<Options>;
1410
+ type ParseError = ParseError$1<object>;
1411
+ type ParseResult<Result extends File | Expression = File> = Result & {
1412
+ comments: File["comments"];
1413
+ errors: null | ParseError[];
1414
+ tokens?: File["tokens"];
1415
+ };
2193
1416
  /**
2194
- * Since `NODE_ENV` is a fairly common way to toggle behavior, Babel also includes an API function
2195
- * meant specifically for that. This API is used as a quick way to check the `"envName"` that Babel
2196
- * was loaded with, which takes `NODE_ENV` into account if no other overriding environment is set.
2197
- *
2198
- * @see https://babeljs.io/docs/en/next/config-files#apienv
1417
+ * Parse the provided code as an entire ECMAScript program.
2199
1418
  */
2200
- interface EnvFunction {
2201
- /**
2202
- * @returns the current `envName` string
2203
- */
2204
- (): string;
2205
- /**
2206
- * @returns `true` if the `envName` is `===` any of the given strings
2207
- */
2208
- (envName: string | readonly string[]): boolean; // the official documentation is misleading for this one...
2209
- // this just passes the callback to `cache.using` but with an additional argument.
2210
- // it returns its result instead of necessarily returning a boolean.
2211
- <T extends SimpleCacheKey>(envCallback: (envName: NonNullable<TransformOptions["envName"]>) => T): T;
2212
- }
2213
- type ConfigFunction = (api: ConfigAPI) => TransformOptions;
1419
+ declare function parse(input: string, options?: ParserOptions): ParseResult<File>;
1420
+ declare function parseExpression(input: string, options?: ParserOptions): ParseResult<Expression>;
1421
+ declare const tokTypes: {
1422
+ // todo(flow->ts) real token type
1423
+ [name: string]: any;
1424
+ };
2214
1425
  //#endregion
2215
1426
  //#region .dts-emit/code/core/src/babel/babelParse.d.ts
2216
1427
  declare const parserOptions: ParserOptions;
@@ -2219,7 +1430,31 @@ interface ASTNode {
2219
1430
  type: string;
2220
1431
  }
2221
1432
  declare const babelPrint: (ast: ASTNode) => string;
2222
- declare const babelParseExpression: (code: string) => ParseResult$1<Expression>;
1433
+ declare const babelParseExpression: (code: string) => ParseResult<Expression>;
1434
+ //#endregion
1435
+ //#region .dts-emit/code/core/src/babel/babel-file.d.ts
1436
+ /** A parsed file with its Program path, like the `File` of @babel/core. */
1437
+ interface BabelFile {
1438
+ ast: File;
1439
+ code: string;
1440
+ opts: {
1441
+ filename?: string;
1442
+ };
1443
+ path: NodePath<Program>;
1444
+ }
1445
+ /**
1446
+ * Makes the Program path of `ast` the same way the `File` class of @babel/core does, without
1447
+ * @babel/core. The hub gives `path.buildCodeFrameError` a code frame from `code`.
1448
+ */
1449
+ declare function createBabelFile({
1450
+ code,
1451
+ ast,
1452
+ filename
1453
+ }: {
1454
+ code: string;
1455
+ ast: File;
1456
+ filename?: string;
1457
+ }): BabelFile;
2223
1458
  //#endregion
2224
1459
  //#region .dts-emit/code/core/src/babel/expression-resolver.d.ts
2225
1460
  /** Recursively unwraps TypeScript type annotation expressions (as X, satisfies X, <X>expr). */
@@ -2294,8 +1529,19 @@ declare const getTargetConfigObject: (target: AST, exportDefault: ExportDefaultD
2294
1529
  declare const canUpdateVitestConfigFile: (fileContent: string) => boolean;
2295
1530
  //#endregion
2296
1531
  //#region .dts-emit/code/core/src/babel/index.d.ts
2297
- declare const traverse: typeof traverse$1;
1532
+ declare const traverse: {
1533
+ <S>(parent: Node, opts: TraverseOptions<S>, scope: Scope | undefined, state: S, parentPath?: NodePath): void;
1534
+ (parent: Node, opts?: TraverseOptions, scope?: Scope, state?: any, parentPath?: NodePath): void;
1535
+ visitors: typeof visitors;
1536
+ verify: typeof visitors.verify;
1537
+ explode: typeof visitors.explode;
1538
+ cheap: (node: Node, enter: (node: Node) => void) => void;
1539
+ node: (node: Node, opts: TraverseOptions, scope?: Scope, state?: any, path?: NodePath, skipKeys?: Record<string, boolean>) => void;
1540
+ clearNode: (node: Node, opts?: Options$1) => void;
1541
+ removeProperties: (tree: Node, opts?: Options$1) => Node;
1542
+ hasType: (tree: Node, type: Node["type"], denylistTypes?: string[]) => boolean;
1543
+ cache: typeof cache;
1544
+ };
2298
1545
  declare const generate: typeof generate$1;
2299
- declare const BabelFileClass: any;
2300
1546
  //#endregion
2301
- export { type BabelFile, BabelFileClass, type GeneratorOptions, type NodePath, type RecastOptions, babelParse, babelParseExpression, babelPrint, canUpdateVitestConfigFile, index_d_exports as core, generate, getConfigObjectFromMergeArg, getEffectiveMergeConfigCall, getTargetConfigObject, isDefineConfigLike, isImportedDefineConfigLikeIdentifier, babel_parser_d_exports as parser, parserOptions, recast, resolveExpression, transformSync, traverse, index_d_exports$1 as types, unwrapTSExpression };
1547
+ export { type BabelFile, type GeneratorOptions, type NodePath, type RecastOptions, babelParse, babelParseExpression, babelPrint, canUpdateVitestConfigFile, createBabelFile, generate, getConfigObjectFromMergeArg, getEffectiveMergeConfigCall, getTargetConfigObject, isDefineConfigLike, isImportedDefineConfigLikeIdentifier, babel_parser_d_exports as parser, parserOptions, recast, resolveExpression, traverse, index_d_exports as types, unwrapTSExpression };