mockaton 13.7.1 → 13.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/README.md +27 -8
  2. package/package.json +5 -3
  3. package/src/client/Filename.js +2 -2
  4. package/src/client/dir/groupByFolder.js +16 -14
  5. package/src/server/Mockaton.js +3 -3
  6. package/src/server/Mockaton.test.js +33 -0
  7. package/src/server/cli.js +9 -8
  8. package/src/server/importResolver.js +35 -0
  9. package/src/server/utils/logger.js +2 -4
  10. package/src/server/utils/openInBrowser.js +1 -1
  11. package/vite-plugin/README.md +29 -0
  12. package/vite-plugin/index.d.ts +5 -0
  13. package/vite-plugin/index.js +21 -0
  14. package/vite-plugin/node_modules/.package-lock.json +356 -0
  15. package/vite-plugin/node_modules/@oxc-project/types/LICENSE +22 -0
  16. package/vite-plugin/node_modules/@oxc-project/types/README.md +3 -0
  17. package/vite-plugin/node_modules/@oxc-project/types/package.json +26 -0
  18. package/vite-plugin/node_modules/@oxc-project/types/types.d.ts +1912 -0
  19. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/README.md +3 -0
  20. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/package.json +37 -0
  21. package/vite-plugin/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  22. package/vite-plugin/node_modules/@rolldown/pluginutils/LICENSE +25 -0
  23. package/vite-plugin/node_modules/@rolldown/pluginutils/README.md +83 -0
  24. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts +90 -0
  25. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js +256 -0
  26. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.d.ts +28 -0
  27. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/filter-vite-plugins.js +75 -0
  28. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.d.ts +3 -0
  29. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/index.js +3 -0
  30. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.d.ts +71 -0
  31. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/filter/simple-filters.js +70 -0
  32. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.d.ts +1 -0
  33. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/index.js +1 -0
  34. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.d.ts +2 -0
  35. package/vite-plugin/node_modules/@rolldown/pluginutils/dist/utils.js +17 -0
  36. package/vite-plugin/node_modules/@rolldown/pluginutils/package.json +37 -0
  37. package/vite-plugin/node_modules/detect-libc/LICENSE +201 -0
  38. package/vite-plugin/node_modules/detect-libc/README.md +163 -0
  39. package/vite-plugin/node_modules/detect-libc/index.d.ts +14 -0
  40. package/vite-plugin/node_modules/detect-libc/lib/detect-libc.js +313 -0
  41. package/vite-plugin/node_modules/detect-libc/lib/elf.js +39 -0
  42. package/vite-plugin/node_modules/detect-libc/lib/filesystem.js +51 -0
  43. package/vite-plugin/node_modules/detect-libc/lib/process.js +24 -0
  44. package/vite-plugin/node_modules/detect-libc/package.json +44 -0
  45. package/vite-plugin/node_modules/fdir/LICENSE +7 -0
  46. package/vite-plugin/node_modules/fdir/README.md +91 -0
  47. package/vite-plugin/node_modules/fdir/dist/index.cjs +588 -0
  48. package/vite-plugin/node_modules/fdir/dist/index.d.cts +155 -0
  49. package/vite-plugin/node_modules/fdir/dist/index.d.mts +155 -0
  50. package/vite-plugin/node_modules/fdir/dist/index.mjs +570 -0
  51. package/vite-plugin/node_modules/fdir/package.json +103 -0
  52. package/vite-plugin/node_modules/fsevents/LICENSE +22 -0
  53. package/vite-plugin/node_modules/fsevents/README.md +89 -0
  54. package/vite-plugin/node_modules/fsevents/fsevents.d.ts +46 -0
  55. package/vite-plugin/node_modules/fsevents/fsevents.js +83 -0
  56. package/vite-plugin/node_modules/fsevents/fsevents.node +0 -0
  57. package/vite-plugin/node_modules/fsevents/package.json +62 -0
  58. package/vite-plugin/node_modules/lightningcss/LICENSE +373 -0
  59. package/vite-plugin/node_modules/lightningcss/README.md +105 -0
  60. package/vite-plugin/node_modules/lightningcss/node/ast.d.ts +9892 -0
  61. package/vite-plugin/node_modules/lightningcss/node/ast.js.flow +10539 -0
  62. package/vite-plugin/node_modules/lightningcss/node/browserslistToTargets.js +48 -0
  63. package/vite-plugin/node_modules/lightningcss/node/composeVisitors.js +450 -0
  64. package/vite-plugin/node_modules/lightningcss/node/flags.js +28 -0
  65. package/vite-plugin/node_modules/lightningcss/node/index.d.ts +494 -0
  66. package/vite-plugin/node_modules/lightningcss/node/index.js +59 -0
  67. package/vite-plugin/node_modules/lightningcss/node/index.js.flow +843 -0
  68. package/vite-plugin/node_modules/lightningcss/node/index.mjs +4 -0
  69. package/vite-plugin/node_modules/lightningcss/node/targets.d.ts +40 -0
  70. package/vite-plugin/node_modules/lightningcss/node/targets.js.flow +39 -0
  71. package/vite-plugin/node_modules/lightningcss/package.json +110 -0
  72. package/vite-plugin/node_modules/lightningcss-darwin-arm64/LICENSE +373 -0
  73. package/vite-plugin/node_modules/lightningcss-darwin-arm64/README.md +1 -0
  74. package/vite-plugin/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  75. package/vite-plugin/node_modules/lightningcss-darwin-arm64/package.json +34 -0
  76. package/vite-plugin/node_modules/nanoid/LICENSE +20 -0
  77. package/vite-plugin/node_modules/nanoid/README.md +39 -0
  78. package/vite-plugin/node_modules/nanoid/async/index.browser.cjs +69 -0
  79. package/vite-plugin/node_modules/nanoid/async/index.browser.js +34 -0
  80. package/vite-plugin/node_modules/nanoid/async/index.cjs +71 -0
  81. package/vite-plugin/node_modules/nanoid/async/index.d.ts +56 -0
  82. package/vite-plugin/node_modules/nanoid/async/index.js +35 -0
  83. package/vite-plugin/node_modules/nanoid/async/index.native.js +26 -0
  84. package/vite-plugin/node_modules/nanoid/async/package.json +12 -0
  85. package/vite-plugin/node_modules/nanoid/bin/nanoid.cjs +55 -0
  86. package/vite-plugin/node_modules/nanoid/index.browser.cjs +72 -0
  87. package/vite-plugin/node_modules/nanoid/index.browser.js +34 -0
  88. package/vite-plugin/node_modules/nanoid/index.cjs +85 -0
  89. package/vite-plugin/node_modules/nanoid/index.d.cts +91 -0
  90. package/vite-plugin/node_modules/nanoid/index.d.ts +91 -0
  91. package/vite-plugin/node_modules/nanoid/index.js +45 -0
  92. package/vite-plugin/node_modules/nanoid/nanoid.js +1 -0
  93. package/vite-plugin/node_modules/nanoid/non-secure/index.cjs +34 -0
  94. package/vite-plugin/node_modules/nanoid/non-secure/index.d.ts +33 -0
  95. package/vite-plugin/node_modules/nanoid/non-secure/index.js +21 -0
  96. package/vite-plugin/node_modules/nanoid/non-secure/package.json +6 -0
  97. package/vite-plugin/node_modules/nanoid/package.json +89 -0
  98. package/vite-plugin/node_modules/nanoid/url-alphabet/index.cjs +7 -0
  99. package/vite-plugin/node_modules/nanoid/url-alphabet/index.js +3 -0
  100. package/vite-plugin/node_modules/nanoid/url-alphabet/package.json +6 -0
  101. package/vite-plugin/node_modules/picocolors/LICENSE +15 -0
  102. package/vite-plugin/node_modules/picocolors/README.md +21 -0
  103. package/vite-plugin/node_modules/picocolors/package.json +25 -0
  104. package/vite-plugin/node_modules/picocolors/picocolors.browser.js +4 -0
  105. package/vite-plugin/node_modules/picocolors/picocolors.d.ts +5 -0
  106. package/vite-plugin/node_modules/picocolors/picocolors.js +75 -0
  107. package/vite-plugin/node_modules/picocolors/types.d.ts +51 -0
  108. package/vite-plugin/node_modules/picomatch/LICENSE +21 -0
  109. package/vite-plugin/node_modules/picomatch/README.md +749 -0
  110. package/vite-plugin/node_modules/picomatch/index.js +17 -0
  111. package/vite-plugin/node_modules/picomatch/lib/constants.js +184 -0
  112. package/vite-plugin/node_modules/picomatch/lib/parse.js +1386 -0
  113. package/vite-plugin/node_modules/picomatch/lib/picomatch.js +349 -0
  114. package/vite-plugin/node_modules/picomatch/lib/scan.js +391 -0
  115. package/vite-plugin/node_modules/picomatch/lib/utils.js +72 -0
  116. package/vite-plugin/node_modules/picomatch/package.json +82 -0
  117. package/vite-plugin/node_modules/picomatch/posix.js +3 -0
  118. package/vite-plugin/node_modules/postcss/LICENSE +20 -0
  119. package/vite-plugin/node_modules/postcss/README.md +28 -0
  120. package/vite-plugin/node_modules/postcss/lib/at-rule.d.ts +139 -0
  121. package/vite-plugin/node_modules/postcss/lib/at-rule.js +25 -0
  122. package/vite-plugin/node_modules/postcss/lib/comment.d.ts +67 -0
  123. package/vite-plugin/node_modules/postcss/lib/comment.js +13 -0
  124. package/vite-plugin/node_modules/postcss/lib/container.d.ts +478 -0
  125. package/vite-plugin/node_modules/postcss/lib/container.js +447 -0
  126. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
  127. package/vite-plugin/node_modules/postcss/lib/css-syntax-error.js +133 -0
  128. package/vite-plugin/node_modules/postcss/lib/declaration.d.ts +150 -0
  129. package/vite-plugin/node_modules/postcss/lib/declaration.js +24 -0
  130. package/vite-plugin/node_modules/postcss/lib/document.d.ts +68 -0
  131. package/vite-plugin/node_modules/postcss/lib/document.js +33 -0
  132. package/vite-plugin/node_modules/postcss/lib/fromJSON.d.ts +9 -0
  133. package/vite-plugin/node_modules/postcss/lib/fromJSON.js +54 -0
  134. package/vite-plugin/node_modules/postcss/lib/input.d.ts +226 -0
  135. package/vite-plugin/node_modules/postcss/lib/input.js +273 -0
  136. package/vite-plugin/node_modules/postcss/lib/lazy-result.d.ts +189 -0
  137. package/vite-plugin/node_modules/postcss/lib/lazy-result.js +550 -0
  138. package/vite-plugin/node_modules/postcss/lib/list.d.ts +60 -0
  139. package/vite-plugin/node_modules/postcss/lib/list.js +58 -0
  140. package/vite-plugin/node_modules/postcss/lib/map-generator.js +376 -0
  141. package/vite-plugin/node_modules/postcss/lib/no-work-result.d.ts +45 -0
  142. package/vite-plugin/node_modules/postcss/lib/no-work-result.js +137 -0
  143. package/vite-plugin/node_modules/postcss/lib/node.d.ts +555 -0
  144. package/vite-plugin/node_modules/postcss/lib/node.js +449 -0
  145. package/vite-plugin/node_modules/postcss/lib/parse.d.ts +9 -0
  146. package/vite-plugin/node_modules/postcss/lib/parse.js +42 -0
  147. package/vite-plugin/node_modules/postcss/lib/parser.js +611 -0
  148. package/vite-plugin/node_modules/postcss/lib/postcss.d.mts +66 -0
  149. package/vite-plugin/node_modules/postcss/lib/postcss.d.ts +456 -0
  150. package/vite-plugin/node_modules/postcss/lib/postcss.js +101 -0
  151. package/vite-plugin/node_modules/postcss/lib/postcss.mjs +30 -0
  152. package/vite-plugin/node_modules/postcss/lib/previous-map.d.ts +80 -0
  153. package/vite-plugin/node_modules/postcss/lib/previous-map.js +145 -0
  154. package/vite-plugin/node_modules/postcss/lib/processor.d.ts +114 -0
  155. package/vite-plugin/node_modules/postcss/lib/processor.js +67 -0
  156. package/vite-plugin/node_modules/postcss/lib/result.d.ts +204 -0
  157. package/vite-plugin/node_modules/postcss/lib/result.js +42 -0
  158. package/vite-plugin/node_modules/postcss/lib/root.d.ts +86 -0
  159. package/vite-plugin/node_modules/postcss/lib/root.js +61 -0
  160. package/vite-plugin/node_modules/postcss/lib/rule.d.ts +126 -0
  161. package/vite-plugin/node_modules/postcss/lib/rule.js +27 -0
  162. package/vite-plugin/node_modules/postcss/lib/stringifier.d.ts +45 -0
  163. package/vite-plugin/node_modules/postcss/lib/stringifier.js +370 -0
  164. package/vite-plugin/node_modules/postcss/lib/stringify.d.ts +9 -0
  165. package/vite-plugin/node_modules/postcss/lib/stringify.js +11 -0
  166. package/vite-plugin/node_modules/postcss/lib/symbols.js +5 -0
  167. package/vite-plugin/node_modules/postcss/lib/terminal-highlight.js +70 -0
  168. package/vite-plugin/node_modules/postcss/lib/tokenize.js +266 -0
  169. package/vite-plugin/node_modules/postcss/lib/warn-once.js +13 -0
  170. package/vite-plugin/node_modules/postcss/lib/warning.d.ts +146 -0
  171. package/vite-plugin/node_modules/postcss/lib/warning.js +37 -0
  172. package/vite-plugin/node_modules/postcss/package.json +88 -0
  173. package/vite-plugin/node_modules/rolldown/LICENSE +25 -0
  174. package/vite-plugin/node_modules/rolldown/README.md +11 -0
  175. package/vite-plugin/node_modules/rolldown/bin/cli.mjs +2 -0
  176. package/vite-plugin/node_modules/rolldown/dist/cli.d.mts +1 -0
  177. package/vite-plugin/node_modules/rolldown/dist/cli.mjs +1191 -0
  178. package/vite-plugin/node_modules/rolldown/dist/config.d.mts +14 -0
  179. package/vite-plugin/node_modules/rolldown/dist/config.mjs +4 -0
  180. package/vite-plugin/node_modules/rolldown/dist/experimental-index.d.mts +253 -0
  181. package/vite-plugin/node_modules/rolldown/dist/experimental-index.mjs +320 -0
  182. package/vite-plugin/node_modules/rolldown/dist/experimental-runtime-types.d.ts +98 -0
  183. package/vite-plugin/node_modules/rolldown/dist/filter-index.d.mts +196 -0
  184. package/vite-plugin/node_modules/rolldown/dist/filter-index.mjs +386 -0
  185. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.d.mts +3 -0
  186. package/vite-plugin/node_modules/rolldown/dist/get-log-filter.mjs +68 -0
  187. package/vite-plugin/node_modules/rolldown/dist/index.d.mts +4 -0
  188. package/vite-plugin/node_modules/rolldown/dist/index.mjs +50 -0
  189. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +1 -0
  190. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin-worker.mjs +28 -0
  191. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.d.mts +13 -0
  192. package/vite-plugin/node_modules/rolldown/dist/parallel-plugin.mjs +6 -0
  193. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.d.mts +32 -0
  194. package/vite-plugin/node_modules/rolldown/dist/parse-ast-index.mjs +60 -0
  195. package/vite-plugin/node_modules/rolldown/dist/plugins-index.d.mts +33 -0
  196. package/vite-plugin/node_modules/rolldown/dist/plugins-index.mjs +40 -0
  197. package/vite-plugin/node_modules/rolldown/dist/shared/binding-BeU_1iEk.mjs +582 -0
  198. package/vite-plugin/node_modules/rolldown/dist/shared/binding-zH1vcmbM.d.mts +1899 -0
  199. package/vite-plugin/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs +2211 -0
  200. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-C2EWPKW3.mjs +68 -0
  201. package/vite-plugin/node_modules/rolldown/dist/shared/constructors-D0W3rNfA.d.mts +37 -0
  202. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-5HJ1b9vG.d.mts +3829 -0
  203. package/vite-plugin/node_modules/rolldown/dist/shared/define-config-DJOr6Iwt.mjs +6 -0
  204. package/vite-plugin/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs +85 -0
  205. package/vite-plugin/node_modules/rolldown/dist/shared/get-log-filter-semyr3Lj.d.mts +35 -0
  206. package/vite-plugin/node_modules/rolldown/dist/shared/load-config-BoVO31Un.mjs +120 -0
  207. package/vite-plugin/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts +50 -0
  208. package/vite-plugin/node_modules/rolldown/dist/shared/logs-D80CXhvg.mjs +180 -0
  209. package/vite-plugin/node_modules/rolldown/dist/shared/misc-DJYbNKZX.mjs +21 -0
  210. package/vite-plugin/node_modules/rolldown/dist/shared/normalize-string-or-regex-CbQQ69gT.mjs +66 -0
  211. package/vite-plugin/node_modules/rolldown/dist/shared/parse-B_ZnWxLZ.mjs +74 -0
  212. package/vite-plugin/node_modules/rolldown/dist/shared/prompt-U5ajztzG.mjs +847 -0
  213. package/vite-plugin/node_modules/rolldown/dist/shared/resolve-tsconfig-CfYpGzid.mjs +113 -0
  214. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-D3JZ9rMt.mjs +40 -0
  215. package/vite-plugin/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs +3325 -0
  216. package/vite-plugin/node_modules/rolldown/dist/shared/transform-DgZ3paSD.d.mts +149 -0
  217. package/vite-plugin/node_modules/rolldown/dist/shared/watch-Bd8v9ewv.mjs +374 -0
  218. package/vite-plugin/node_modules/rolldown/dist/utils-index.d.mts +376 -0
  219. package/vite-plugin/node_modules/rolldown/dist/utils-index.mjs +2414 -0
  220. package/vite-plugin/node_modules/rolldown/package.json +153 -0
  221. package/vite-plugin/node_modules/source-map-js/LICENSE +28 -0
  222. package/vite-plugin/node_modules/source-map-js/README.md +765 -0
  223. package/vite-plugin/node_modules/source-map-js/lib/array-set.js +121 -0
  224. package/vite-plugin/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  225. package/vite-plugin/node_modules/source-map-js/lib/base64.js +67 -0
  226. package/vite-plugin/node_modules/source-map-js/lib/binary-search.js +111 -0
  227. package/vite-plugin/node_modules/source-map-js/lib/mapping-list.js +79 -0
  228. package/vite-plugin/node_modules/source-map-js/lib/quick-sort.js +132 -0
  229. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  230. package/vite-plugin/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  231. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  232. package/vite-plugin/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  233. package/vite-plugin/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  234. package/vite-plugin/node_modules/source-map-js/lib/source-node.js +413 -0
  235. package/vite-plugin/node_modules/source-map-js/lib/util.js +594 -0
  236. package/vite-plugin/node_modules/source-map-js/package.json +71 -0
  237. package/vite-plugin/node_modules/source-map-js/source-map.d.ts +104 -0
  238. package/vite-plugin/node_modules/source-map-js/source-map.js +8 -0
  239. package/vite-plugin/node_modules/tinyglobby/LICENSE +21 -0
  240. package/vite-plugin/node_modules/tinyglobby/README.md +25 -0
  241. package/vite-plugin/node_modules/tinyglobby/dist/index.cjs +334 -0
  242. package/vite-plugin/node_modules/tinyglobby/dist/index.d.cts +148 -0
  243. package/vite-plugin/node_modules/tinyglobby/dist/index.d.mts +148 -0
  244. package/vite-plugin/node_modules/tinyglobby/dist/index.mjs +306 -0
  245. package/vite-plugin/node_modules/tinyglobby/package.json +73 -0
  246. package/vite-plugin/node_modules/vite/LICENSE.md +2230 -0
  247. package/vite-plugin/node_modules/vite/README.md +20 -0
  248. package/vite-plugin/node_modules/vite/bin/openChrome.js +68 -0
  249. package/vite-plugin/node_modules/vite/bin/vite.js +79 -0
  250. package/vite-plugin/node_modules/vite/client.d.ts +282 -0
  251. package/vite-plugin/node_modules/vite/dist/client/client.mjs +1237 -0
  252. package/vite-plugin/node_modules/vite/dist/client/env.mjs +18 -0
  253. package/vite-plugin/node_modules/vite/dist/node/chunks/build.js +5381 -0
  254. package/vite-plugin/node_modules/vite/dist/node/chunks/chunk.js +37 -0
  255. package/vite-plugin/node_modules/vite/dist/node/chunks/dist.js +6784 -0
  256. package/vite-plugin/node_modules/vite/dist/node/chunks/lib.js +371 -0
  257. package/vite-plugin/node_modules/vite/dist/node/chunks/logger.js +322 -0
  258. package/vite-plugin/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +96 -0
  259. package/vite-plugin/node_modules/vite/dist/node/chunks/node.js +34874 -0
  260. package/vite-plugin/node_modules/vite/dist/node/chunks/postcss-import.js +467 -0
  261. package/vite-plugin/node_modules/vite/dist/node/cli.js +837 -0
  262. package/vite-plugin/node_modules/vite/dist/node/index.d.ts +3867 -0
  263. package/vite-plugin/node_modules/vite/dist/node/index.js +3 -0
  264. package/vite-plugin/node_modules/vite/dist/node/internal.d.ts +2 -0
  265. package/vite-plugin/node_modules/vite/dist/node/internal.js +2 -0
  266. package/vite-plugin/node_modules/vite/dist/node/module-runner.d.ts +315 -0
  267. package/vite-plugin/node_modules/vite/dist/node/module-runner.js +1262 -0
  268. package/vite-plugin/node_modules/vite/misc/false.js +1 -0
  269. package/vite-plugin/node_modules/vite/misc/true.js +1 -0
  270. package/vite-plugin/node_modules/vite/package.json +192 -0
  271. package/vite-plugin/node_modules/vite/types/customEvent.d.ts +79 -0
  272. package/vite-plugin/node_modules/vite/types/hmrPayload.d.ts +80 -0
  273. package/vite-plugin/node_modules/vite/types/hot.d.ts +39 -0
  274. package/vite-plugin/node_modules/vite/types/import-meta.d.ts +5 -0
  275. package/vite-plugin/node_modules/vite/types/importGlob.d.ts +89 -0
  276. package/vite-plugin/node_modules/vite/types/importMeta.d.ts +30 -0
  277. package/vite-plugin/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +44 -0
  278. package/vite-plugin/node_modules/vite/types/internal/esbuildOptions.d.ts +28 -0
  279. package/vite-plugin/node_modules/vite/types/internal/lightningcssOptions.d.ts +18 -0
  280. package/vite-plugin/node_modules/vite/types/internal/rollupTypeCompat.d.ts +24 -0
  281. package/vite-plugin/node_modules/vite/types/internal/terserOptions.d.ts +11 -0
  282. package/vite-plugin/node_modules/vite/types/metadata.d.ts +47 -0
  283. package/vite-plugin/package.json +14 -0
  284. package/www/src/{assets → .well-known/agent-skills/mockaton}/SKILLS.md +21 -9
  285. package/src/server/cacheBustResolver.js +0 -19
@@ -0,0 +1,1912 @@
1
+ // Auto-generated code, DO NOT EDIT DIRECTLY!
2
+ // To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
3
+
4
+ export interface Program extends Span {
5
+ type: "Program";
6
+ body: Array<Directive | Statement>;
7
+ sourceType: ModuleKind;
8
+ hashbang: Hashbang | null;
9
+ parent?: null;
10
+ }
11
+
12
+ export type Expression =
13
+ | BooleanLiteral
14
+ | NullLiteral
15
+ | NumericLiteral
16
+ | BigIntLiteral
17
+ | RegExpLiteral
18
+ | StringLiteral
19
+ | TemplateLiteral
20
+ | IdentifierReference
21
+ | MetaProperty
22
+ | Super
23
+ | ArrayExpression
24
+ | ArrowFunctionExpression
25
+ | AssignmentExpression
26
+ | AwaitExpression
27
+ | BinaryExpression
28
+ | CallExpression
29
+ | ChainExpression
30
+ | Class
31
+ | ConditionalExpression
32
+ | Function
33
+ | ImportExpression
34
+ | LogicalExpression
35
+ | NewExpression
36
+ | ObjectExpression
37
+ | ParenthesizedExpression
38
+ | SequenceExpression
39
+ | TaggedTemplateExpression
40
+ | ThisExpression
41
+ | UnaryExpression
42
+ | UpdateExpression
43
+ | YieldExpression
44
+ | PrivateInExpression
45
+ | JSXElement
46
+ | JSXFragment
47
+ | TSAsExpression
48
+ | TSSatisfiesExpression
49
+ | TSTypeAssertion
50
+ | TSNonNullExpression
51
+ | TSInstantiationExpression
52
+ | V8IntrinsicExpression
53
+ | MemberExpression;
54
+
55
+ export interface IdentifierName extends Span {
56
+ type: "Identifier";
57
+ decorators?: [];
58
+ name: string;
59
+ optional?: false;
60
+ typeAnnotation?: null;
61
+ parent?: Node;
62
+ }
63
+
64
+ export interface IdentifierReference extends Span {
65
+ type: "Identifier";
66
+ decorators?: [];
67
+ name: string;
68
+ optional?: false;
69
+ typeAnnotation?: null;
70
+ parent?: Node;
71
+ }
72
+
73
+ export interface BindingIdentifier extends Span {
74
+ type: "Identifier";
75
+ decorators?: [];
76
+ name: string;
77
+ optional?: false;
78
+ typeAnnotation?: null;
79
+ parent?: Node;
80
+ }
81
+
82
+ export interface LabelIdentifier extends Span {
83
+ type: "Identifier";
84
+ decorators?: [];
85
+ name: string;
86
+ optional?: false;
87
+ typeAnnotation?: null;
88
+ parent?: Node;
89
+ }
90
+
91
+ export interface ThisExpression extends Span {
92
+ type: "ThisExpression";
93
+ parent?: Node;
94
+ }
95
+
96
+ export interface ArrayExpression extends Span {
97
+ type: "ArrayExpression";
98
+ elements: Array<ArrayExpressionElement>;
99
+ parent?: Node;
100
+ }
101
+
102
+ export type ArrayExpressionElement = SpreadElement | null | Expression;
103
+
104
+ export interface ObjectExpression extends Span {
105
+ type: "ObjectExpression";
106
+ properties: Array<ObjectPropertyKind>;
107
+ parent?: Node;
108
+ }
109
+
110
+ export type ObjectPropertyKind = ObjectProperty | SpreadElement;
111
+
112
+ export interface ObjectProperty extends Span {
113
+ type: "Property";
114
+ kind: PropertyKind;
115
+ key: PropertyKey;
116
+ value: Expression;
117
+ method: boolean;
118
+ shorthand: boolean;
119
+ computed: boolean;
120
+ optional?: false;
121
+ parent?: Node;
122
+ }
123
+
124
+ export type PropertyKey = IdentifierName | PrivateIdentifier | Expression;
125
+
126
+ export type PropertyKind = "init" | "get" | "set";
127
+
128
+ export interface TemplateLiteral extends Span {
129
+ type: "TemplateLiteral";
130
+ quasis: Array<TemplateElement>;
131
+ expressions: Array<Expression>;
132
+ parent?: Node;
133
+ }
134
+
135
+ export interface TaggedTemplateExpression extends Span {
136
+ type: "TaggedTemplateExpression";
137
+ tag: Expression;
138
+ typeArguments?: TSTypeParameterInstantiation | null;
139
+ quasi: TemplateLiteral;
140
+ parent?: Node;
141
+ }
142
+
143
+ export interface TemplateElement extends Span {
144
+ type: "TemplateElement";
145
+ value: TemplateElementValue;
146
+ tail: boolean;
147
+ parent?: Node;
148
+ }
149
+
150
+ export interface TemplateElementValue {
151
+ raw: string;
152
+ cooked: string | null;
153
+ }
154
+
155
+ export type MemberExpression =
156
+ | ComputedMemberExpression
157
+ | StaticMemberExpression
158
+ | PrivateFieldExpression;
159
+
160
+ export interface ComputedMemberExpression extends Span {
161
+ type: "MemberExpression";
162
+ object: Expression;
163
+ property: Expression;
164
+ optional: boolean;
165
+ computed: true;
166
+ parent?: Node;
167
+ }
168
+
169
+ export interface StaticMemberExpression extends Span {
170
+ type: "MemberExpression";
171
+ object: Expression;
172
+ property: IdentifierName;
173
+ optional: boolean;
174
+ computed: false;
175
+ parent?: Node;
176
+ }
177
+
178
+ export interface PrivateFieldExpression extends Span {
179
+ type: "MemberExpression";
180
+ object: Expression;
181
+ property: PrivateIdentifier;
182
+ optional: boolean;
183
+ computed: false;
184
+ parent?: Node;
185
+ }
186
+
187
+ export interface CallExpression extends Span {
188
+ type: "CallExpression";
189
+ callee: Expression;
190
+ typeArguments?: TSTypeParameterInstantiation | null;
191
+ arguments: Array<Argument>;
192
+ optional: boolean;
193
+ parent?: Node;
194
+ }
195
+
196
+ export interface NewExpression extends Span {
197
+ type: "NewExpression";
198
+ callee: Expression;
199
+ typeArguments?: TSTypeParameterInstantiation | null;
200
+ arguments: Array<Argument>;
201
+ parent?: Node;
202
+ }
203
+
204
+ export interface MetaProperty extends Span {
205
+ type: "MetaProperty";
206
+ meta: IdentifierName;
207
+ property: IdentifierName;
208
+ parent?: Node;
209
+ }
210
+
211
+ export interface SpreadElement extends Span {
212
+ type: "SpreadElement";
213
+ argument: Expression;
214
+ parent?: Node;
215
+ }
216
+
217
+ export type Argument = SpreadElement | Expression;
218
+
219
+ export interface UpdateExpression extends Span {
220
+ type: "UpdateExpression";
221
+ operator: UpdateOperator;
222
+ prefix: boolean;
223
+ argument: SimpleAssignmentTarget;
224
+ parent?: Node;
225
+ }
226
+
227
+ export interface UnaryExpression extends Span {
228
+ type: "UnaryExpression";
229
+ operator: UnaryOperator;
230
+ argument: Expression;
231
+ prefix: true;
232
+ parent?: Node;
233
+ }
234
+
235
+ export interface BinaryExpression extends Span {
236
+ type: "BinaryExpression";
237
+ left: Expression;
238
+ operator: BinaryOperator;
239
+ right: Expression;
240
+ parent?: Node;
241
+ }
242
+
243
+ export interface PrivateInExpression extends Span {
244
+ type: "BinaryExpression";
245
+ left: PrivateIdentifier;
246
+ operator: "in";
247
+ right: Expression;
248
+ parent?: Node;
249
+ }
250
+
251
+ export interface LogicalExpression extends Span {
252
+ type: "LogicalExpression";
253
+ left: Expression;
254
+ operator: LogicalOperator;
255
+ right: Expression;
256
+ parent?: Node;
257
+ }
258
+
259
+ export interface ConditionalExpression extends Span {
260
+ type: "ConditionalExpression";
261
+ test: Expression;
262
+ consequent: Expression;
263
+ alternate: Expression;
264
+ parent?: Node;
265
+ }
266
+
267
+ export interface AssignmentExpression extends Span {
268
+ type: "AssignmentExpression";
269
+ operator: AssignmentOperator;
270
+ left: AssignmentTarget;
271
+ right: Expression;
272
+ parent?: Node;
273
+ }
274
+
275
+ export type AssignmentTarget = SimpleAssignmentTarget | AssignmentTargetPattern;
276
+
277
+ export type SimpleAssignmentTarget =
278
+ | IdentifierReference
279
+ | TSAsExpression
280
+ | TSSatisfiesExpression
281
+ | TSNonNullExpression
282
+ | TSTypeAssertion
283
+ | MemberExpression;
284
+
285
+ export type AssignmentTargetPattern = ArrayAssignmentTarget | ObjectAssignmentTarget;
286
+
287
+ export interface ArrayAssignmentTarget extends Span {
288
+ type: "ArrayPattern";
289
+ decorators?: [];
290
+ elements: Array<AssignmentTargetMaybeDefault | AssignmentTargetRest | null>;
291
+ optional?: false;
292
+ typeAnnotation?: null;
293
+ parent?: Node;
294
+ }
295
+
296
+ export interface ObjectAssignmentTarget extends Span {
297
+ type: "ObjectPattern";
298
+ decorators?: [];
299
+ properties: Array<AssignmentTargetProperty | AssignmentTargetRest>;
300
+ optional?: false;
301
+ typeAnnotation?: null;
302
+ parent?: Node;
303
+ }
304
+
305
+ export interface AssignmentTargetRest extends Span {
306
+ type: "RestElement";
307
+ decorators?: [];
308
+ argument: AssignmentTarget;
309
+ optional?: false;
310
+ typeAnnotation?: null;
311
+ value?: null;
312
+ parent?: Node;
313
+ }
314
+
315
+ export type AssignmentTargetMaybeDefault = AssignmentTargetWithDefault | AssignmentTarget;
316
+
317
+ export interface AssignmentTargetWithDefault extends Span {
318
+ type: "AssignmentPattern";
319
+ decorators?: [];
320
+ left: AssignmentTarget;
321
+ right: Expression;
322
+ optional?: false;
323
+ typeAnnotation?: null;
324
+ parent?: Node;
325
+ }
326
+
327
+ export type AssignmentTargetProperty =
328
+ | AssignmentTargetPropertyIdentifier
329
+ | AssignmentTargetPropertyProperty;
330
+
331
+ export interface AssignmentTargetPropertyIdentifier extends Span {
332
+ type: "Property";
333
+ kind: "init";
334
+ key: IdentifierReference;
335
+ value: IdentifierReference | AssignmentTargetWithDefault;
336
+ method: false;
337
+ shorthand: true;
338
+ computed: false;
339
+ optional?: false;
340
+ parent?: Node;
341
+ }
342
+
343
+ export interface AssignmentTargetPropertyProperty extends Span {
344
+ type: "Property";
345
+ kind: "init";
346
+ key: PropertyKey;
347
+ value: AssignmentTargetMaybeDefault;
348
+ method: false;
349
+ shorthand: false;
350
+ computed: boolean;
351
+ optional?: false;
352
+ parent?: Node;
353
+ }
354
+
355
+ export interface SequenceExpression extends Span {
356
+ type: "SequenceExpression";
357
+ expressions: Array<Expression>;
358
+ parent?: Node;
359
+ }
360
+
361
+ export interface Super extends Span {
362
+ type: "Super";
363
+ parent?: Node;
364
+ }
365
+
366
+ export interface AwaitExpression extends Span {
367
+ type: "AwaitExpression";
368
+ argument: Expression;
369
+ parent?: Node;
370
+ }
371
+
372
+ export interface ChainExpression extends Span {
373
+ type: "ChainExpression";
374
+ expression: ChainElement;
375
+ parent?: Node;
376
+ }
377
+
378
+ export type ChainElement = CallExpression | TSNonNullExpression | MemberExpression;
379
+
380
+ export interface ParenthesizedExpression extends Span {
381
+ type: "ParenthesizedExpression";
382
+ expression: Expression;
383
+ parent?: Node;
384
+ }
385
+
386
+ export type Statement =
387
+ | BlockStatement
388
+ | BreakStatement
389
+ | ContinueStatement
390
+ | DebuggerStatement
391
+ | DoWhileStatement
392
+ | EmptyStatement
393
+ | ExpressionStatement
394
+ | ForInStatement
395
+ | ForOfStatement
396
+ | ForStatement
397
+ | IfStatement
398
+ | LabeledStatement
399
+ | ReturnStatement
400
+ | SwitchStatement
401
+ | ThrowStatement
402
+ | TryStatement
403
+ | WhileStatement
404
+ | WithStatement
405
+ | Declaration
406
+ | ModuleDeclaration;
407
+
408
+ export interface Directive extends Span {
409
+ type: "ExpressionStatement";
410
+ expression: StringLiteral;
411
+ directive: string;
412
+ parent?: Node;
413
+ }
414
+
415
+ export interface Hashbang extends Span {
416
+ type: "Hashbang";
417
+ value: string;
418
+ parent?: Node;
419
+ }
420
+
421
+ export interface BlockStatement extends Span {
422
+ type: "BlockStatement";
423
+ body: Array<Statement>;
424
+ parent?: Node;
425
+ }
426
+
427
+ export type Declaration =
428
+ | VariableDeclaration
429
+ | Function
430
+ | Class
431
+ | TSTypeAliasDeclaration
432
+ | TSInterfaceDeclaration
433
+ | TSEnumDeclaration
434
+ | TSModuleDeclaration
435
+ | TSGlobalDeclaration
436
+ | TSImportEqualsDeclaration;
437
+
438
+ export interface VariableDeclaration extends Span {
439
+ type: "VariableDeclaration";
440
+ kind: VariableDeclarationKind;
441
+ declarations: Array<VariableDeclarator>;
442
+ declare?: boolean;
443
+ parent?: Node;
444
+ }
445
+
446
+ export type VariableDeclarationKind = "var" | "let" | "const" | "using" | "await using";
447
+
448
+ export interface VariableDeclarator extends Span {
449
+ type: "VariableDeclarator";
450
+ id: BindingPattern;
451
+ init: Expression | null;
452
+ definite?: boolean;
453
+ parent?: Node;
454
+ }
455
+
456
+ export interface EmptyStatement extends Span {
457
+ type: "EmptyStatement";
458
+ parent?: Node;
459
+ }
460
+
461
+ export interface ExpressionStatement extends Span {
462
+ type: "ExpressionStatement";
463
+ expression: Expression;
464
+ directive?: string | null;
465
+ parent?: Node;
466
+ }
467
+
468
+ export interface IfStatement extends Span {
469
+ type: "IfStatement";
470
+ test: Expression;
471
+ consequent: Statement;
472
+ alternate: Statement | null;
473
+ parent?: Node;
474
+ }
475
+
476
+ export interface DoWhileStatement extends Span {
477
+ type: "DoWhileStatement";
478
+ body: Statement;
479
+ test: Expression;
480
+ parent?: Node;
481
+ }
482
+
483
+ export interface WhileStatement extends Span {
484
+ type: "WhileStatement";
485
+ test: Expression;
486
+ body: Statement;
487
+ parent?: Node;
488
+ }
489
+
490
+ export interface ForStatement extends Span {
491
+ type: "ForStatement";
492
+ init: ForStatementInit | null;
493
+ test: Expression | null;
494
+ update: Expression | null;
495
+ body: Statement;
496
+ parent?: Node;
497
+ }
498
+
499
+ export type ForStatementInit = VariableDeclaration | Expression;
500
+
501
+ export interface ForInStatement extends Span {
502
+ type: "ForInStatement";
503
+ left: ForStatementLeft;
504
+ right: Expression;
505
+ body: Statement;
506
+ parent?: Node;
507
+ }
508
+
509
+ export type ForStatementLeft = VariableDeclaration | AssignmentTarget;
510
+
511
+ export interface ForOfStatement extends Span {
512
+ type: "ForOfStatement";
513
+ await: boolean;
514
+ left: ForStatementLeft;
515
+ right: Expression;
516
+ body: Statement;
517
+ parent?: Node;
518
+ }
519
+
520
+ export interface ContinueStatement extends Span {
521
+ type: "ContinueStatement";
522
+ label: LabelIdentifier | null;
523
+ parent?: Node;
524
+ }
525
+
526
+ export interface BreakStatement extends Span {
527
+ type: "BreakStatement";
528
+ label: LabelIdentifier | null;
529
+ parent?: Node;
530
+ }
531
+
532
+ export interface ReturnStatement extends Span {
533
+ type: "ReturnStatement";
534
+ argument: Expression | null;
535
+ parent?: Node;
536
+ }
537
+
538
+ export interface WithStatement extends Span {
539
+ type: "WithStatement";
540
+ object: Expression;
541
+ body: Statement;
542
+ parent?: Node;
543
+ }
544
+
545
+ export interface SwitchStatement extends Span {
546
+ type: "SwitchStatement";
547
+ discriminant: Expression;
548
+ cases: Array<SwitchCase>;
549
+ parent?: Node;
550
+ }
551
+
552
+ export interface SwitchCase extends Span {
553
+ type: "SwitchCase";
554
+ test: Expression | null;
555
+ consequent: Array<Statement>;
556
+ parent?: Node;
557
+ }
558
+
559
+ export interface LabeledStatement extends Span {
560
+ type: "LabeledStatement";
561
+ label: LabelIdentifier;
562
+ body: Statement;
563
+ parent?: Node;
564
+ }
565
+
566
+ export interface ThrowStatement extends Span {
567
+ type: "ThrowStatement";
568
+ argument: Expression;
569
+ parent?: Node;
570
+ }
571
+
572
+ export interface TryStatement extends Span {
573
+ type: "TryStatement";
574
+ block: BlockStatement;
575
+ handler: CatchClause | null;
576
+ finalizer: BlockStatement | null;
577
+ parent?: Node;
578
+ }
579
+
580
+ export interface CatchClause extends Span {
581
+ type: "CatchClause";
582
+ param: BindingPattern | null;
583
+ body: BlockStatement;
584
+ parent?: Node;
585
+ }
586
+
587
+ export interface DebuggerStatement extends Span {
588
+ type: "DebuggerStatement";
589
+ parent?: Node;
590
+ }
591
+
592
+ export type BindingPattern = BindingIdentifier | ObjectPattern | ArrayPattern | AssignmentPattern;
593
+
594
+ export interface AssignmentPattern extends Span {
595
+ type: "AssignmentPattern";
596
+ decorators?: [];
597
+ left: BindingPattern;
598
+ right: Expression;
599
+ optional?: false;
600
+ typeAnnotation?: null;
601
+ parent?: Node;
602
+ }
603
+
604
+ export interface ObjectPattern extends Span {
605
+ type: "ObjectPattern";
606
+ decorators?: [];
607
+ properties: Array<BindingProperty | BindingRestElement>;
608
+ optional?: false;
609
+ typeAnnotation?: null;
610
+ parent?: Node;
611
+ }
612
+
613
+ export interface BindingProperty extends Span {
614
+ type: "Property";
615
+ kind: "init";
616
+ key: PropertyKey;
617
+ value: BindingPattern;
618
+ method: false;
619
+ shorthand: boolean;
620
+ computed: boolean;
621
+ optional?: false;
622
+ parent?: Node;
623
+ }
624
+
625
+ export interface ArrayPattern extends Span {
626
+ type: "ArrayPattern";
627
+ decorators?: [];
628
+ elements: Array<BindingPattern | BindingRestElement | null>;
629
+ optional?: false;
630
+ typeAnnotation?: null;
631
+ parent?: Node;
632
+ }
633
+
634
+ export interface BindingRestElement extends Span {
635
+ type: "RestElement";
636
+ decorators?: [];
637
+ argument: BindingPattern;
638
+ optional?: false;
639
+ typeAnnotation?: null;
640
+ value?: null;
641
+ parent?: Node;
642
+ }
643
+
644
+ export interface Function extends Span {
645
+ type: FunctionType;
646
+ id: BindingIdentifier | null;
647
+ generator: boolean;
648
+ async: boolean;
649
+ declare?: boolean;
650
+ typeParameters?: TSTypeParameterDeclaration | null;
651
+ params: ParamPattern[];
652
+ returnType?: TSTypeAnnotation | null;
653
+ body: FunctionBody | null;
654
+ expression: false;
655
+ parent?: Node;
656
+ }
657
+
658
+ export type ParamPattern = FormalParameter | TSParameterProperty | FormalParameterRest;
659
+
660
+ export type FunctionType =
661
+ | "FunctionDeclaration"
662
+ | "FunctionExpression"
663
+ | "TSDeclareFunction"
664
+ | "TSEmptyBodyFunctionExpression";
665
+
666
+ export interface FormalParameterRest extends Span {
667
+ type: "RestElement";
668
+ argument: BindingPattern;
669
+ decorators?: [];
670
+ optional?: boolean;
671
+ typeAnnotation?: TSTypeAnnotation | null;
672
+ value?: null;
673
+ parent?: Node;
674
+ }
675
+
676
+ export type FormalParameter = {
677
+ decorators?: Array<Decorator>;
678
+ } & BindingPattern;
679
+
680
+ export interface TSParameterProperty extends Span {
681
+ type: "TSParameterProperty";
682
+ accessibility: TSAccessibility | null;
683
+ decorators: Array<Decorator>;
684
+ override: boolean;
685
+ parameter: FormalParameter;
686
+ readonly: boolean;
687
+ static: boolean;
688
+ parent?: Node;
689
+ }
690
+
691
+ export interface FunctionBody extends Span {
692
+ type: "BlockStatement";
693
+ body: Array<Directive | Statement>;
694
+ parent?: Node;
695
+ }
696
+
697
+ export interface ArrowFunctionExpression extends Span {
698
+ type: "ArrowFunctionExpression";
699
+ expression: boolean;
700
+ async: boolean;
701
+ typeParameters?: TSTypeParameterDeclaration | null;
702
+ params: ParamPattern[];
703
+ returnType?: TSTypeAnnotation | null;
704
+ body: FunctionBody | Expression;
705
+ id: null;
706
+ generator: false;
707
+ parent?: Node;
708
+ }
709
+
710
+ export interface YieldExpression extends Span {
711
+ type: "YieldExpression";
712
+ delegate: boolean;
713
+ argument: Expression | null;
714
+ parent?: Node;
715
+ }
716
+
717
+ export interface Class extends Span {
718
+ type: ClassType;
719
+ decorators: Array<Decorator>;
720
+ id: BindingIdentifier | null;
721
+ typeParameters?: TSTypeParameterDeclaration | null;
722
+ superClass: Expression | null;
723
+ superTypeArguments?: TSTypeParameterInstantiation | null;
724
+ implements?: Array<TSClassImplements>;
725
+ body: ClassBody;
726
+ abstract?: boolean;
727
+ declare?: boolean;
728
+ parent?: Node;
729
+ }
730
+
731
+ export type ClassType = "ClassDeclaration" | "ClassExpression";
732
+
733
+ export interface ClassBody extends Span {
734
+ type: "ClassBody";
735
+ body: Array<ClassElement>;
736
+ parent?: Node;
737
+ }
738
+
739
+ export type ClassElement =
740
+ | StaticBlock
741
+ | MethodDefinition
742
+ | PropertyDefinition
743
+ | AccessorProperty
744
+ | TSIndexSignature;
745
+
746
+ export interface MethodDefinition extends Span {
747
+ type: MethodDefinitionType;
748
+ decorators: Array<Decorator>;
749
+ key: PropertyKey;
750
+ value: Function;
751
+ kind: MethodDefinitionKind;
752
+ computed: boolean;
753
+ static: boolean;
754
+ override?: boolean;
755
+ optional?: boolean;
756
+ accessibility?: TSAccessibility | null;
757
+ parent?: Node;
758
+ }
759
+
760
+ export type MethodDefinitionType = "MethodDefinition" | "TSAbstractMethodDefinition";
761
+
762
+ export interface PropertyDefinition extends Span {
763
+ type: PropertyDefinitionType;
764
+ decorators: Array<Decorator>;
765
+ key: PropertyKey;
766
+ typeAnnotation?: TSTypeAnnotation | null;
767
+ value: Expression | null;
768
+ computed: boolean;
769
+ static: boolean;
770
+ declare?: boolean;
771
+ override?: boolean;
772
+ optional?: boolean;
773
+ definite?: boolean;
774
+ readonly?: boolean;
775
+ accessibility?: TSAccessibility | null;
776
+ parent?: Node;
777
+ }
778
+
779
+ export type PropertyDefinitionType = "PropertyDefinition" | "TSAbstractPropertyDefinition";
780
+
781
+ export type MethodDefinitionKind = "constructor" | "method" | "get" | "set";
782
+
783
+ export interface PrivateIdentifier extends Span {
784
+ type: "PrivateIdentifier";
785
+ name: string;
786
+ parent?: Node;
787
+ }
788
+
789
+ export interface StaticBlock extends Span {
790
+ type: "StaticBlock";
791
+ body: Array<Statement>;
792
+ parent?: Node;
793
+ }
794
+
795
+ export type ModuleDeclaration =
796
+ | ImportDeclaration
797
+ | ExportAllDeclaration
798
+ | ExportDefaultDeclaration
799
+ | ExportNamedDeclaration
800
+ | TSExportAssignment
801
+ | TSNamespaceExportDeclaration;
802
+
803
+ export type AccessorPropertyType = "AccessorProperty" | "TSAbstractAccessorProperty";
804
+
805
+ export interface AccessorProperty extends Span {
806
+ type: AccessorPropertyType;
807
+ decorators: Array<Decorator>;
808
+ key: PropertyKey;
809
+ typeAnnotation?: TSTypeAnnotation | null;
810
+ value: Expression | null;
811
+ computed: boolean;
812
+ static: boolean;
813
+ override?: boolean;
814
+ definite?: boolean;
815
+ accessibility?: TSAccessibility | null;
816
+ declare?: false;
817
+ optional?: false;
818
+ readonly?: false;
819
+ parent?: Node;
820
+ }
821
+
822
+ export interface ImportExpression extends Span {
823
+ type: "ImportExpression";
824
+ source: Expression;
825
+ options: Expression | null;
826
+ phase: ImportPhase | null;
827
+ parent?: Node;
828
+ }
829
+
830
+ export interface ImportDeclaration extends Span {
831
+ type: "ImportDeclaration";
832
+ specifiers: Array<ImportDeclarationSpecifier>;
833
+ source: StringLiteral;
834
+ phase: ImportPhase | null;
835
+ attributes: Array<ImportAttribute>;
836
+ importKind?: ImportOrExportKind;
837
+ parent?: Node;
838
+ }
839
+
840
+ export type ImportPhase = "source" | "defer";
841
+
842
+ export type ImportDeclarationSpecifier =
843
+ | ImportSpecifier
844
+ | ImportDefaultSpecifier
845
+ | ImportNamespaceSpecifier;
846
+
847
+ export interface ImportSpecifier extends Span {
848
+ type: "ImportSpecifier";
849
+ imported: ModuleExportName;
850
+ local: BindingIdentifier;
851
+ importKind?: ImportOrExportKind;
852
+ parent?: Node;
853
+ }
854
+
855
+ export interface ImportDefaultSpecifier extends Span {
856
+ type: "ImportDefaultSpecifier";
857
+ local: BindingIdentifier;
858
+ parent?: Node;
859
+ }
860
+
861
+ export interface ImportNamespaceSpecifier extends Span {
862
+ type: "ImportNamespaceSpecifier";
863
+ local: BindingIdentifier;
864
+ parent?: Node;
865
+ }
866
+
867
+ export interface ImportAttribute extends Span {
868
+ type: "ImportAttribute";
869
+ key: ImportAttributeKey;
870
+ value: StringLiteral;
871
+ parent?: Node;
872
+ }
873
+
874
+ export type ImportAttributeKey = IdentifierName | StringLiteral;
875
+
876
+ export interface ExportNamedDeclaration extends Span {
877
+ type: "ExportNamedDeclaration";
878
+ declaration: Declaration | null;
879
+ specifiers: Array<ExportSpecifier>;
880
+ source: StringLiteral | null;
881
+ exportKind?: ImportOrExportKind;
882
+ attributes: Array<ImportAttribute>;
883
+ parent?: Node;
884
+ }
885
+
886
+ export interface ExportDefaultDeclaration extends Span {
887
+ type: "ExportDefaultDeclaration";
888
+ declaration: ExportDefaultDeclarationKind;
889
+ exportKind?: "value";
890
+ parent?: Node;
891
+ }
892
+
893
+ export interface ExportAllDeclaration extends Span {
894
+ type: "ExportAllDeclaration";
895
+ exported: ModuleExportName | null;
896
+ source: StringLiteral;
897
+ attributes: Array<ImportAttribute>;
898
+ exportKind?: ImportOrExportKind;
899
+ parent?: Node;
900
+ }
901
+
902
+ export interface ExportSpecifier extends Span {
903
+ type: "ExportSpecifier";
904
+ local: ModuleExportName;
905
+ exported: ModuleExportName;
906
+ exportKind?: ImportOrExportKind;
907
+ parent?: Node;
908
+ }
909
+
910
+ export type ExportDefaultDeclarationKind = Function | Class | TSInterfaceDeclaration | Expression;
911
+
912
+ export type ModuleExportName = IdentifierName | IdentifierReference | StringLiteral;
913
+
914
+ export interface V8IntrinsicExpression extends Span {
915
+ type: "V8IntrinsicExpression";
916
+ name: IdentifierName;
917
+ arguments: Array<Argument>;
918
+ parent?: Node;
919
+ }
920
+
921
+ export interface BooleanLiteral extends Span {
922
+ type: "Literal";
923
+ value: boolean;
924
+ raw: string | null;
925
+ parent?: Node;
926
+ }
927
+
928
+ export interface NullLiteral extends Span {
929
+ type: "Literal";
930
+ value: null;
931
+ raw: "null" | null;
932
+ parent?: Node;
933
+ }
934
+
935
+ export interface NumericLiteral extends Span {
936
+ type: "Literal";
937
+ value: number;
938
+ raw: string | null;
939
+ parent?: Node;
940
+ }
941
+
942
+ export interface StringLiteral extends Span {
943
+ type: "Literal";
944
+ value: string;
945
+ raw: string | null;
946
+ parent?: Node;
947
+ }
948
+
949
+ export interface BigIntLiteral extends Span {
950
+ type: "Literal";
951
+ value: bigint;
952
+ raw: string | null;
953
+ bigint: string;
954
+ parent?: Node;
955
+ }
956
+
957
+ export interface RegExpLiteral extends Span {
958
+ type: "Literal";
959
+ value: RegExp | null;
960
+ raw: string | null;
961
+ regex: { pattern: string; flags: string };
962
+ parent?: Node;
963
+ }
964
+
965
+ export interface JSXElement extends Span {
966
+ type: "JSXElement";
967
+ openingElement: JSXOpeningElement;
968
+ children: Array<JSXChild>;
969
+ closingElement: JSXClosingElement | null;
970
+ parent?: Node;
971
+ }
972
+
973
+ export interface JSXOpeningElement extends Span {
974
+ type: "JSXOpeningElement";
975
+ name: JSXElementName;
976
+ typeArguments?: TSTypeParameterInstantiation | null;
977
+ attributes: Array<JSXAttributeItem>;
978
+ selfClosing: boolean;
979
+ parent?: Node;
980
+ }
981
+
982
+ export interface JSXClosingElement extends Span {
983
+ type: "JSXClosingElement";
984
+ name: JSXElementName;
985
+ parent?: Node;
986
+ }
987
+
988
+ export interface JSXFragment extends Span {
989
+ type: "JSXFragment";
990
+ openingFragment: JSXOpeningFragment;
991
+ children: Array<JSXChild>;
992
+ closingFragment: JSXClosingFragment;
993
+ parent?: Node;
994
+ }
995
+
996
+ export interface JSXOpeningFragment extends Span {
997
+ type: "JSXOpeningFragment";
998
+ attributes?: [];
999
+ selfClosing?: false;
1000
+ parent?: Node;
1001
+ }
1002
+
1003
+ export interface JSXClosingFragment extends Span {
1004
+ type: "JSXClosingFragment";
1005
+ parent?: Node;
1006
+ }
1007
+
1008
+ export type JSXElementName = JSXIdentifier | JSXNamespacedName | JSXMemberExpression;
1009
+
1010
+ export interface JSXNamespacedName extends Span {
1011
+ type: "JSXNamespacedName";
1012
+ namespace: JSXIdentifier;
1013
+ name: JSXIdentifier;
1014
+ parent?: Node;
1015
+ }
1016
+
1017
+ export interface JSXMemberExpression extends Span {
1018
+ type: "JSXMemberExpression";
1019
+ object: JSXMemberExpressionObject;
1020
+ property: JSXIdentifier;
1021
+ parent?: Node;
1022
+ }
1023
+
1024
+ export type JSXMemberExpressionObject = JSXIdentifier | JSXMemberExpression;
1025
+
1026
+ export interface JSXExpressionContainer extends Span {
1027
+ type: "JSXExpressionContainer";
1028
+ expression: JSXExpression;
1029
+ parent?: Node;
1030
+ }
1031
+
1032
+ export type JSXExpression = JSXEmptyExpression | Expression;
1033
+
1034
+ export interface JSXEmptyExpression extends Span {
1035
+ type: "JSXEmptyExpression";
1036
+ parent?: Node;
1037
+ }
1038
+
1039
+ export type JSXAttributeItem = JSXAttribute | JSXSpreadAttribute;
1040
+
1041
+ export interface JSXAttribute extends Span {
1042
+ type: "JSXAttribute";
1043
+ name: JSXAttributeName;
1044
+ value: JSXAttributeValue | null;
1045
+ parent?: Node;
1046
+ }
1047
+
1048
+ export interface JSXSpreadAttribute extends Span {
1049
+ type: "JSXSpreadAttribute";
1050
+ argument: Expression;
1051
+ parent?: Node;
1052
+ }
1053
+
1054
+ export type JSXAttributeName = JSXIdentifier | JSXNamespacedName;
1055
+
1056
+ export type JSXAttributeValue = StringLiteral | JSXExpressionContainer | JSXElement | JSXFragment;
1057
+
1058
+ export interface JSXIdentifier extends Span {
1059
+ type: "JSXIdentifier";
1060
+ name: string;
1061
+ parent?: Node;
1062
+ }
1063
+
1064
+ export type JSXChild = JSXText | JSXElement | JSXFragment | JSXExpressionContainer | JSXSpreadChild;
1065
+
1066
+ export interface JSXSpreadChild extends Span {
1067
+ type: "JSXSpreadChild";
1068
+ expression: Expression;
1069
+ parent?: Node;
1070
+ }
1071
+
1072
+ export interface JSXText extends Span {
1073
+ type: "JSXText";
1074
+ value: string;
1075
+ raw: string | null;
1076
+ parent?: Node;
1077
+ }
1078
+
1079
+ export interface TSThisParameter extends Span {
1080
+ type: "Identifier";
1081
+ decorators: [];
1082
+ name: "this";
1083
+ optional: false;
1084
+ typeAnnotation: TSTypeAnnotation | null;
1085
+ parent?: Node;
1086
+ }
1087
+
1088
+ export interface TSEnumDeclaration extends Span {
1089
+ type: "TSEnumDeclaration";
1090
+ id: BindingIdentifier;
1091
+ body: TSEnumBody;
1092
+ const: boolean;
1093
+ declare: boolean;
1094
+ parent?: Node;
1095
+ }
1096
+
1097
+ export interface TSEnumBody extends Span {
1098
+ type: "TSEnumBody";
1099
+ members: Array<TSEnumMember>;
1100
+ parent?: Node;
1101
+ }
1102
+
1103
+ export interface TSEnumMember extends Span {
1104
+ type: "TSEnumMember";
1105
+ id: TSEnumMemberName;
1106
+ initializer: Expression | null;
1107
+ computed: boolean;
1108
+ parent?: Node;
1109
+ }
1110
+
1111
+ export type TSEnumMemberName = IdentifierName | StringLiteral | TemplateLiteral;
1112
+
1113
+ export interface TSTypeAnnotation extends Span {
1114
+ type: "TSTypeAnnotation";
1115
+ typeAnnotation: TSType;
1116
+ parent?: Node;
1117
+ }
1118
+
1119
+ export interface TSLiteralType extends Span {
1120
+ type: "TSLiteralType";
1121
+ literal: TSLiteral;
1122
+ parent?: Node;
1123
+ }
1124
+
1125
+ export type TSLiteral =
1126
+ | BooleanLiteral
1127
+ | NumericLiteral
1128
+ | BigIntLiteral
1129
+ | StringLiteral
1130
+ | TemplateLiteral
1131
+ | UnaryExpression;
1132
+
1133
+ export type TSType =
1134
+ | TSAnyKeyword
1135
+ | TSBigIntKeyword
1136
+ | TSBooleanKeyword
1137
+ | TSIntrinsicKeyword
1138
+ | TSNeverKeyword
1139
+ | TSNullKeyword
1140
+ | TSNumberKeyword
1141
+ | TSObjectKeyword
1142
+ | TSStringKeyword
1143
+ | TSSymbolKeyword
1144
+ | TSUndefinedKeyword
1145
+ | TSUnknownKeyword
1146
+ | TSVoidKeyword
1147
+ | TSArrayType
1148
+ | TSConditionalType
1149
+ | TSConstructorType
1150
+ | TSFunctionType
1151
+ | TSImportType
1152
+ | TSIndexedAccessType
1153
+ | TSInferType
1154
+ | TSIntersectionType
1155
+ | TSLiteralType
1156
+ | TSMappedType
1157
+ | TSNamedTupleMember
1158
+ | TSTemplateLiteralType
1159
+ | TSThisType
1160
+ | TSTupleType
1161
+ | TSTypeLiteral
1162
+ | TSTypeOperator
1163
+ | TSTypePredicate
1164
+ | TSTypeQuery
1165
+ | TSTypeReference
1166
+ | TSUnionType
1167
+ | TSParenthesizedType
1168
+ | JSDocNullableType
1169
+ | JSDocNonNullableType
1170
+ | JSDocUnknownType;
1171
+
1172
+ export interface TSConditionalType extends Span {
1173
+ type: "TSConditionalType";
1174
+ checkType: TSType;
1175
+ extendsType: TSType;
1176
+ trueType: TSType;
1177
+ falseType: TSType;
1178
+ parent?: Node;
1179
+ }
1180
+
1181
+ export interface TSUnionType extends Span {
1182
+ type: "TSUnionType";
1183
+ types: Array<TSType>;
1184
+ parent?: Node;
1185
+ }
1186
+
1187
+ export interface TSIntersectionType extends Span {
1188
+ type: "TSIntersectionType";
1189
+ types: Array<TSType>;
1190
+ parent?: Node;
1191
+ }
1192
+
1193
+ export interface TSParenthesizedType extends Span {
1194
+ type: "TSParenthesizedType";
1195
+ typeAnnotation: TSType;
1196
+ parent?: Node;
1197
+ }
1198
+
1199
+ export interface TSTypeOperator extends Span {
1200
+ type: "TSTypeOperator";
1201
+ operator: TSTypeOperatorOperator;
1202
+ typeAnnotation: TSType;
1203
+ parent?: Node;
1204
+ }
1205
+
1206
+ export type TSTypeOperatorOperator = "keyof" | "unique" | "readonly";
1207
+
1208
+ export interface TSArrayType extends Span {
1209
+ type: "TSArrayType";
1210
+ elementType: TSType;
1211
+ parent?: Node;
1212
+ }
1213
+
1214
+ export interface TSIndexedAccessType extends Span {
1215
+ type: "TSIndexedAccessType";
1216
+ objectType: TSType;
1217
+ indexType: TSType;
1218
+ parent?: Node;
1219
+ }
1220
+
1221
+ export interface TSTupleType extends Span {
1222
+ type: "TSTupleType";
1223
+ elementTypes: Array<TSTupleElement>;
1224
+ parent?: Node;
1225
+ }
1226
+
1227
+ export interface TSNamedTupleMember extends Span {
1228
+ type: "TSNamedTupleMember";
1229
+ label: IdentifierName;
1230
+ elementType: TSTupleElement;
1231
+ optional: boolean;
1232
+ parent?: Node;
1233
+ }
1234
+
1235
+ export interface TSOptionalType extends Span {
1236
+ type: "TSOptionalType";
1237
+ typeAnnotation: TSType;
1238
+ parent?: Node;
1239
+ }
1240
+
1241
+ export interface TSRestType extends Span {
1242
+ type: "TSRestType";
1243
+ typeAnnotation: TSType;
1244
+ parent?: Node;
1245
+ }
1246
+
1247
+ export type TSTupleElement = TSOptionalType | TSRestType | TSType;
1248
+
1249
+ export interface TSAnyKeyword extends Span {
1250
+ type: "TSAnyKeyword";
1251
+ parent?: Node;
1252
+ }
1253
+
1254
+ export interface TSStringKeyword extends Span {
1255
+ type: "TSStringKeyword";
1256
+ parent?: Node;
1257
+ }
1258
+
1259
+ export interface TSBooleanKeyword extends Span {
1260
+ type: "TSBooleanKeyword";
1261
+ parent?: Node;
1262
+ }
1263
+
1264
+ export interface TSNumberKeyword extends Span {
1265
+ type: "TSNumberKeyword";
1266
+ parent?: Node;
1267
+ }
1268
+
1269
+ export interface TSNeverKeyword extends Span {
1270
+ type: "TSNeverKeyword";
1271
+ parent?: Node;
1272
+ }
1273
+
1274
+ export interface TSIntrinsicKeyword extends Span {
1275
+ type: "TSIntrinsicKeyword";
1276
+ parent?: Node;
1277
+ }
1278
+
1279
+ export interface TSUnknownKeyword extends Span {
1280
+ type: "TSUnknownKeyword";
1281
+ parent?: Node;
1282
+ }
1283
+
1284
+ export interface TSNullKeyword extends Span {
1285
+ type: "TSNullKeyword";
1286
+ parent?: Node;
1287
+ }
1288
+
1289
+ export interface TSUndefinedKeyword extends Span {
1290
+ type: "TSUndefinedKeyword";
1291
+ parent?: Node;
1292
+ }
1293
+
1294
+ export interface TSVoidKeyword extends Span {
1295
+ type: "TSVoidKeyword";
1296
+ parent?: Node;
1297
+ }
1298
+
1299
+ export interface TSSymbolKeyword extends Span {
1300
+ type: "TSSymbolKeyword";
1301
+ parent?: Node;
1302
+ }
1303
+
1304
+ export interface TSThisType extends Span {
1305
+ type: "TSThisType";
1306
+ parent?: Node;
1307
+ }
1308
+
1309
+ export interface TSObjectKeyword extends Span {
1310
+ type: "TSObjectKeyword";
1311
+ parent?: Node;
1312
+ }
1313
+
1314
+ export interface TSBigIntKeyword extends Span {
1315
+ type: "TSBigIntKeyword";
1316
+ parent?: Node;
1317
+ }
1318
+
1319
+ export interface TSTypeReference extends Span {
1320
+ type: "TSTypeReference";
1321
+ typeName: TSTypeName;
1322
+ typeArguments: TSTypeParameterInstantiation | null;
1323
+ parent?: Node;
1324
+ }
1325
+
1326
+ export type TSTypeName = IdentifierReference | TSQualifiedName | ThisExpression;
1327
+
1328
+ export interface TSQualifiedName extends Span {
1329
+ type: "TSQualifiedName";
1330
+ left: TSTypeName;
1331
+ right: IdentifierName;
1332
+ parent?: Node;
1333
+ }
1334
+
1335
+ export interface TSTypeParameterInstantiation extends Span {
1336
+ type: "TSTypeParameterInstantiation";
1337
+ params: Array<TSType>;
1338
+ parent?: Node;
1339
+ }
1340
+
1341
+ export interface TSTypeParameter extends Span {
1342
+ type: "TSTypeParameter";
1343
+ name: BindingIdentifier;
1344
+ constraint: TSType | null;
1345
+ default: TSType | null;
1346
+ in: boolean;
1347
+ out: boolean;
1348
+ const: boolean;
1349
+ parent?: Node;
1350
+ }
1351
+
1352
+ export interface TSTypeParameterDeclaration extends Span {
1353
+ type: "TSTypeParameterDeclaration";
1354
+ params: Array<TSTypeParameter>;
1355
+ parent?: Node;
1356
+ }
1357
+
1358
+ export interface TSTypeAliasDeclaration extends Span {
1359
+ type: "TSTypeAliasDeclaration";
1360
+ id: BindingIdentifier;
1361
+ typeParameters: TSTypeParameterDeclaration | null;
1362
+ typeAnnotation: TSType;
1363
+ declare: boolean;
1364
+ parent?: Node;
1365
+ }
1366
+
1367
+ export type TSAccessibility = "private" | "protected" | "public";
1368
+
1369
+ export interface TSClassImplements extends Span {
1370
+ type: "TSClassImplements";
1371
+ expression: IdentifierReference | ThisExpression | MemberExpression;
1372
+ typeArguments: TSTypeParameterInstantiation | null;
1373
+ parent?: Node;
1374
+ }
1375
+
1376
+ export interface TSInterfaceDeclaration extends Span {
1377
+ type: "TSInterfaceDeclaration";
1378
+ id: BindingIdentifier;
1379
+ typeParameters: TSTypeParameterDeclaration | null;
1380
+ extends: Array<TSInterfaceHeritage>;
1381
+ body: TSInterfaceBody;
1382
+ declare: boolean;
1383
+ parent?: Node;
1384
+ }
1385
+
1386
+ export interface TSInterfaceBody extends Span {
1387
+ type: "TSInterfaceBody";
1388
+ body: Array<TSSignature>;
1389
+ parent?: Node;
1390
+ }
1391
+
1392
+ export interface TSPropertySignature extends Span {
1393
+ type: "TSPropertySignature";
1394
+ computed: boolean;
1395
+ optional: boolean;
1396
+ readonly: boolean;
1397
+ key: PropertyKey;
1398
+ typeAnnotation: TSTypeAnnotation | null;
1399
+ accessibility: null;
1400
+ static: false;
1401
+ parent?: Node;
1402
+ }
1403
+
1404
+ export type TSSignature =
1405
+ | TSIndexSignature
1406
+ | TSPropertySignature
1407
+ | TSCallSignatureDeclaration
1408
+ | TSConstructSignatureDeclaration
1409
+ | TSMethodSignature;
1410
+
1411
+ export interface TSIndexSignature extends Span {
1412
+ type: "TSIndexSignature";
1413
+ parameters: Array<TSIndexSignatureName>;
1414
+ typeAnnotation: TSTypeAnnotation;
1415
+ readonly: boolean;
1416
+ static: boolean;
1417
+ accessibility: null;
1418
+ parent?: Node;
1419
+ }
1420
+
1421
+ export interface TSCallSignatureDeclaration extends Span {
1422
+ type: "TSCallSignatureDeclaration";
1423
+ typeParameters: TSTypeParameterDeclaration | null;
1424
+ params: ParamPattern[];
1425
+ returnType: TSTypeAnnotation | null;
1426
+ parent?: Node;
1427
+ }
1428
+
1429
+ export type TSMethodSignatureKind = "method" | "get" | "set";
1430
+
1431
+ export interface TSMethodSignature extends Span {
1432
+ type: "TSMethodSignature";
1433
+ key: PropertyKey;
1434
+ computed: boolean;
1435
+ optional: boolean;
1436
+ kind: TSMethodSignatureKind;
1437
+ typeParameters: TSTypeParameterDeclaration | null;
1438
+ params: ParamPattern[];
1439
+ returnType: TSTypeAnnotation | null;
1440
+ accessibility: null;
1441
+ readonly: false;
1442
+ static: false;
1443
+ parent?: Node;
1444
+ }
1445
+
1446
+ export interface TSConstructSignatureDeclaration extends Span {
1447
+ type: "TSConstructSignatureDeclaration";
1448
+ typeParameters: TSTypeParameterDeclaration | null;
1449
+ params: ParamPattern[];
1450
+ returnType: TSTypeAnnotation | null;
1451
+ parent?: Node;
1452
+ }
1453
+
1454
+ export interface TSIndexSignatureName extends Span {
1455
+ type: "Identifier";
1456
+ decorators: [];
1457
+ name: string;
1458
+ optional: false;
1459
+ typeAnnotation: TSTypeAnnotation;
1460
+ parent?: Node;
1461
+ }
1462
+
1463
+ export interface TSInterfaceHeritage extends Span {
1464
+ type: "TSInterfaceHeritage";
1465
+ expression: Expression;
1466
+ typeArguments: TSTypeParameterInstantiation | null;
1467
+ parent?: Node;
1468
+ }
1469
+
1470
+ export interface TSTypePredicate extends Span {
1471
+ type: "TSTypePredicate";
1472
+ parameterName: TSTypePredicateName;
1473
+ asserts: boolean;
1474
+ typeAnnotation: TSTypeAnnotation | null;
1475
+ parent?: Node;
1476
+ }
1477
+
1478
+ export type TSTypePredicateName = IdentifierName | TSThisType;
1479
+
1480
+ export interface TSModuleDeclaration extends Span {
1481
+ type: "TSModuleDeclaration";
1482
+ id: BindingIdentifier | StringLiteral | TSQualifiedName;
1483
+ body: TSModuleBlock | null;
1484
+ kind: TSModuleDeclarationKind;
1485
+ declare: boolean;
1486
+ global: false;
1487
+ parent?: Node;
1488
+ }
1489
+
1490
+ export type TSModuleDeclarationKind = "module" | "namespace";
1491
+
1492
+ export interface TSGlobalDeclaration extends Span {
1493
+ type: "TSModuleDeclaration";
1494
+ id: IdentifierName;
1495
+ body: TSModuleBlock;
1496
+ kind: "global";
1497
+ declare: boolean;
1498
+ global: true;
1499
+ parent?: Node;
1500
+ }
1501
+
1502
+ export interface TSModuleBlock extends Span {
1503
+ type: "TSModuleBlock";
1504
+ body: Array<Directive | Statement>;
1505
+ parent?: Node;
1506
+ }
1507
+
1508
+ export interface TSTypeLiteral extends Span {
1509
+ type: "TSTypeLiteral";
1510
+ members: Array<TSSignature>;
1511
+ parent?: Node;
1512
+ }
1513
+
1514
+ export interface TSInferType extends Span {
1515
+ type: "TSInferType";
1516
+ typeParameter: TSTypeParameter;
1517
+ parent?: Node;
1518
+ }
1519
+
1520
+ export interface TSTypeQuery extends Span {
1521
+ type: "TSTypeQuery";
1522
+ exprName: TSTypeQueryExprName;
1523
+ typeArguments: TSTypeParameterInstantiation | null;
1524
+ parent?: Node;
1525
+ }
1526
+
1527
+ export type TSTypeQueryExprName = TSImportType | TSTypeName;
1528
+
1529
+ export interface TSImportType extends Span {
1530
+ type: "TSImportType";
1531
+ source: StringLiteral;
1532
+ options: ObjectExpression | null;
1533
+ qualifier: TSImportTypeQualifier | null;
1534
+ typeArguments: TSTypeParameterInstantiation | null;
1535
+ parent?: Node;
1536
+ }
1537
+
1538
+ export type TSImportTypeQualifier = IdentifierName | TSImportTypeQualifiedName;
1539
+
1540
+ export interface TSImportTypeQualifiedName extends Span {
1541
+ type: "TSQualifiedName";
1542
+ left: TSImportTypeQualifier;
1543
+ right: IdentifierName;
1544
+ parent?: Node;
1545
+ }
1546
+
1547
+ export interface TSFunctionType extends Span {
1548
+ type: "TSFunctionType";
1549
+ typeParameters: TSTypeParameterDeclaration | null;
1550
+ params: ParamPattern[];
1551
+ returnType: TSTypeAnnotation;
1552
+ parent?: Node;
1553
+ }
1554
+
1555
+ export interface TSConstructorType extends Span {
1556
+ type: "TSConstructorType";
1557
+ abstract: boolean;
1558
+ typeParameters: TSTypeParameterDeclaration | null;
1559
+ params: ParamPattern[];
1560
+ returnType: TSTypeAnnotation;
1561
+ parent?: Node;
1562
+ }
1563
+
1564
+ export interface TSMappedType extends Span {
1565
+ type: "TSMappedType";
1566
+ key: BindingIdentifier;
1567
+ constraint: TSType;
1568
+ nameType: TSType | null;
1569
+ typeAnnotation: TSType | null;
1570
+ optional: TSMappedTypeModifierOperator | false;
1571
+ readonly: TSMappedTypeModifierOperator | null;
1572
+ parent?: Node;
1573
+ }
1574
+
1575
+ export type TSMappedTypeModifierOperator = true | "+" | "-";
1576
+
1577
+ export interface TSTemplateLiteralType extends Span {
1578
+ type: "TSTemplateLiteralType";
1579
+ quasis: Array<TemplateElement>;
1580
+ types: Array<TSType>;
1581
+ parent?: Node;
1582
+ }
1583
+
1584
+ export interface TSAsExpression extends Span {
1585
+ type: "TSAsExpression";
1586
+ expression: Expression;
1587
+ typeAnnotation: TSType;
1588
+ parent?: Node;
1589
+ }
1590
+
1591
+ export interface TSSatisfiesExpression extends Span {
1592
+ type: "TSSatisfiesExpression";
1593
+ expression: Expression;
1594
+ typeAnnotation: TSType;
1595
+ parent?: Node;
1596
+ }
1597
+
1598
+ export interface TSTypeAssertion extends Span {
1599
+ type: "TSTypeAssertion";
1600
+ typeAnnotation: TSType;
1601
+ expression: Expression;
1602
+ parent?: Node;
1603
+ }
1604
+
1605
+ export interface TSImportEqualsDeclaration extends Span {
1606
+ type: "TSImportEqualsDeclaration";
1607
+ id: BindingIdentifier;
1608
+ moduleReference: TSModuleReference;
1609
+ importKind: ImportOrExportKind;
1610
+ parent?: Node;
1611
+ }
1612
+
1613
+ export type TSModuleReference = TSExternalModuleReference | IdentifierReference | TSQualifiedName;
1614
+
1615
+ export interface TSExternalModuleReference extends Span {
1616
+ type: "TSExternalModuleReference";
1617
+ expression: StringLiteral;
1618
+ parent?: Node;
1619
+ }
1620
+
1621
+ export interface TSNonNullExpression extends Span {
1622
+ type: "TSNonNullExpression";
1623
+ expression: Expression;
1624
+ parent?: Node;
1625
+ }
1626
+
1627
+ export interface Decorator extends Span {
1628
+ type: "Decorator";
1629
+ expression: Expression;
1630
+ parent?: Node;
1631
+ }
1632
+
1633
+ export interface TSExportAssignment extends Span {
1634
+ type: "TSExportAssignment";
1635
+ expression: Expression;
1636
+ parent?: Node;
1637
+ }
1638
+
1639
+ export interface TSNamespaceExportDeclaration extends Span {
1640
+ type: "TSNamespaceExportDeclaration";
1641
+ id: IdentifierName;
1642
+ parent?: Node;
1643
+ }
1644
+
1645
+ export interface TSInstantiationExpression extends Span {
1646
+ type: "TSInstantiationExpression";
1647
+ expression: Expression;
1648
+ typeArguments: TSTypeParameterInstantiation;
1649
+ parent?: Node;
1650
+ }
1651
+
1652
+ export type ImportOrExportKind = "value" | "type";
1653
+
1654
+ export interface JSDocNullableType extends Span {
1655
+ type: "TSJSDocNullableType";
1656
+ typeAnnotation: TSType;
1657
+ postfix: boolean;
1658
+ parent?: Node;
1659
+ }
1660
+
1661
+ export interface JSDocNonNullableType extends Span {
1662
+ type: "TSJSDocNonNullableType";
1663
+ typeAnnotation: TSType;
1664
+ postfix: boolean;
1665
+ parent?: Node;
1666
+ }
1667
+
1668
+ export interface JSDocUnknownType extends Span {
1669
+ type: "TSJSDocUnknownType";
1670
+ parent?: Node;
1671
+ }
1672
+
1673
+ export type ModuleKind = "script" | "module" | "commonjs";
1674
+
1675
+ export interface Span {
1676
+ start: number;
1677
+ end: number;
1678
+ range?: [number, number];
1679
+ }
1680
+
1681
+ export type AssignmentOperator =
1682
+ | "="
1683
+ | "+="
1684
+ | "-="
1685
+ | "*="
1686
+ | "/="
1687
+ | "%="
1688
+ | "**="
1689
+ | "<<="
1690
+ | ">>="
1691
+ | ">>>="
1692
+ | "|="
1693
+ | "^="
1694
+ | "&="
1695
+ | "||="
1696
+ | "&&="
1697
+ | "??=";
1698
+
1699
+ export type BinaryOperator =
1700
+ | "=="
1701
+ | "!="
1702
+ | "==="
1703
+ | "!=="
1704
+ | "<"
1705
+ | "<="
1706
+ | ">"
1707
+ | ">="
1708
+ | "+"
1709
+ | "-"
1710
+ | "*"
1711
+ | "/"
1712
+ | "%"
1713
+ | "**"
1714
+ | "<<"
1715
+ | ">>"
1716
+ | ">>>"
1717
+ | "|"
1718
+ | "^"
1719
+ | "&"
1720
+ | "in"
1721
+ | "instanceof";
1722
+
1723
+ export type LogicalOperator = "||" | "&&" | "??";
1724
+
1725
+ export type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
1726
+
1727
+ export type UpdateOperator = "++" | "--";
1728
+
1729
+ export type Node =
1730
+ | Program
1731
+ | IdentifierName
1732
+ | IdentifierReference
1733
+ | BindingIdentifier
1734
+ | LabelIdentifier
1735
+ | ThisExpression
1736
+ | ArrayExpression
1737
+ | ObjectExpression
1738
+ | ObjectProperty
1739
+ | TemplateLiteral
1740
+ | TaggedTemplateExpression
1741
+ | TemplateElement
1742
+ | ComputedMemberExpression
1743
+ | StaticMemberExpression
1744
+ | PrivateFieldExpression
1745
+ | CallExpression
1746
+ | NewExpression
1747
+ | MetaProperty
1748
+ | SpreadElement
1749
+ | UpdateExpression
1750
+ | UnaryExpression
1751
+ | BinaryExpression
1752
+ | PrivateInExpression
1753
+ | LogicalExpression
1754
+ | ConditionalExpression
1755
+ | AssignmentExpression
1756
+ | ArrayAssignmentTarget
1757
+ | ObjectAssignmentTarget
1758
+ | AssignmentTargetRest
1759
+ | AssignmentTargetWithDefault
1760
+ | AssignmentTargetPropertyIdentifier
1761
+ | AssignmentTargetPropertyProperty
1762
+ | SequenceExpression
1763
+ | Super
1764
+ | AwaitExpression
1765
+ | ChainExpression
1766
+ | ParenthesizedExpression
1767
+ | Directive
1768
+ | Hashbang
1769
+ | BlockStatement
1770
+ | VariableDeclaration
1771
+ | VariableDeclarator
1772
+ | EmptyStatement
1773
+ | ExpressionStatement
1774
+ | IfStatement
1775
+ | DoWhileStatement
1776
+ | WhileStatement
1777
+ | ForStatement
1778
+ | ForInStatement
1779
+ | ForOfStatement
1780
+ | ContinueStatement
1781
+ | BreakStatement
1782
+ | ReturnStatement
1783
+ | WithStatement
1784
+ | SwitchStatement
1785
+ | SwitchCase
1786
+ | LabeledStatement
1787
+ | ThrowStatement
1788
+ | TryStatement
1789
+ | CatchClause
1790
+ | DebuggerStatement
1791
+ | AssignmentPattern
1792
+ | ObjectPattern
1793
+ | BindingProperty
1794
+ | ArrayPattern
1795
+ | BindingRestElement
1796
+ | Function
1797
+ | FunctionBody
1798
+ | ArrowFunctionExpression
1799
+ | YieldExpression
1800
+ | Class
1801
+ | ClassBody
1802
+ | MethodDefinition
1803
+ | PropertyDefinition
1804
+ | PrivateIdentifier
1805
+ | StaticBlock
1806
+ | AccessorProperty
1807
+ | ImportExpression
1808
+ | ImportDeclaration
1809
+ | ImportSpecifier
1810
+ | ImportDefaultSpecifier
1811
+ | ImportNamespaceSpecifier
1812
+ | ImportAttribute
1813
+ | ExportNamedDeclaration
1814
+ | ExportDefaultDeclaration
1815
+ | ExportAllDeclaration
1816
+ | ExportSpecifier
1817
+ | V8IntrinsicExpression
1818
+ | BooleanLiteral
1819
+ | NullLiteral
1820
+ | NumericLiteral
1821
+ | StringLiteral
1822
+ | BigIntLiteral
1823
+ | RegExpLiteral
1824
+ | JSXElement
1825
+ | JSXOpeningElement
1826
+ | JSXClosingElement
1827
+ | JSXFragment
1828
+ | JSXOpeningFragment
1829
+ | JSXClosingFragment
1830
+ | JSXNamespacedName
1831
+ | JSXMemberExpression
1832
+ | JSXExpressionContainer
1833
+ | JSXEmptyExpression
1834
+ | JSXAttribute
1835
+ | JSXSpreadAttribute
1836
+ | JSXIdentifier
1837
+ | JSXSpreadChild
1838
+ | JSXText
1839
+ | TSThisParameter
1840
+ | TSEnumDeclaration
1841
+ | TSEnumBody
1842
+ | TSEnumMember
1843
+ | TSTypeAnnotation
1844
+ | TSLiteralType
1845
+ | TSConditionalType
1846
+ | TSUnionType
1847
+ | TSIntersectionType
1848
+ | TSParenthesizedType
1849
+ | TSTypeOperator
1850
+ | TSArrayType
1851
+ | TSIndexedAccessType
1852
+ | TSTupleType
1853
+ | TSNamedTupleMember
1854
+ | TSOptionalType
1855
+ | TSRestType
1856
+ | TSAnyKeyword
1857
+ | TSStringKeyword
1858
+ | TSBooleanKeyword
1859
+ | TSNumberKeyword
1860
+ | TSNeverKeyword
1861
+ | TSIntrinsicKeyword
1862
+ | TSUnknownKeyword
1863
+ | TSNullKeyword
1864
+ | TSUndefinedKeyword
1865
+ | TSVoidKeyword
1866
+ | TSSymbolKeyword
1867
+ | TSThisType
1868
+ | TSObjectKeyword
1869
+ | TSBigIntKeyword
1870
+ | TSTypeReference
1871
+ | TSQualifiedName
1872
+ | TSTypeParameterInstantiation
1873
+ | TSTypeParameter
1874
+ | TSTypeParameterDeclaration
1875
+ | TSTypeAliasDeclaration
1876
+ | TSClassImplements
1877
+ | TSInterfaceDeclaration
1878
+ | TSInterfaceBody
1879
+ | TSPropertySignature
1880
+ | TSIndexSignature
1881
+ | TSCallSignatureDeclaration
1882
+ | TSMethodSignature
1883
+ | TSConstructSignatureDeclaration
1884
+ | TSIndexSignatureName
1885
+ | TSInterfaceHeritage
1886
+ | TSTypePredicate
1887
+ | TSModuleDeclaration
1888
+ | TSGlobalDeclaration
1889
+ | TSModuleBlock
1890
+ | TSTypeLiteral
1891
+ | TSInferType
1892
+ | TSTypeQuery
1893
+ | TSImportType
1894
+ | TSImportTypeQualifiedName
1895
+ | TSFunctionType
1896
+ | TSConstructorType
1897
+ | TSMappedType
1898
+ | TSTemplateLiteralType
1899
+ | TSAsExpression
1900
+ | TSSatisfiesExpression
1901
+ | TSTypeAssertion
1902
+ | TSImportEqualsDeclaration
1903
+ | TSExternalModuleReference
1904
+ | TSNonNullExpression
1905
+ | Decorator
1906
+ | TSExportAssignment
1907
+ | TSNamespaceExportDeclaration
1908
+ | TSInstantiationExpression
1909
+ | JSDocNullableType
1910
+ | JSDocNonNullableType
1911
+ | JSDocUnknownType
1912
+ | ParamPattern;