@histoire/vendors 0.8.4 → 0.9.0

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 (254) hide show
  1. package/dist/client/b-floating-vue.d.ts +3 -0
  2. package/dist/client/{floating-vue.js → b-floating-vue.js} +1 -1
  3. package/dist/client/b-iconify.d.ts +1 -0
  4. package/dist/client/{iconify.js → b-iconify.js} +0 -0
  5. package/dist/client/b-pinia.d.ts +1 -0
  6. package/dist/client/{pinia.js → b-pinia.js} +41 -8
  7. package/dist/client/b-scroll.d.ts +2 -0
  8. package/dist/client/{scroll.js → b-scroll.js} +1 -1
  9. package/dist/client/b-vue-router.d.ts +1 -0
  10. package/dist/client/{vue-router.js → b-vue-router.js} +279 -158
  11. package/dist/client/b-vue-use.d.ts +1 -0
  12. package/dist/client/{vue-use.js → b-vue-use.js} +1070 -603
  13. package/dist/client/b-vue.d.ts +1 -0
  14. package/dist/client/{vue.js → b-vue.js} +1 -1
  15. package/dist/client/node_modules/@babel/parser/package.json +45 -0
  16. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +214 -0
  17. package/dist/client/node_modules/@floating-ui/core/index.d.ts +1 -0
  18. package/dist/client/node_modules/@floating-ui/core/package.json +70 -0
  19. package/dist/client/node_modules/@floating-ui/core/src/_babel.d.ts +1 -0
  20. package/dist/client/node_modules/@floating-ui/core/src/computeCoordsFromPlacement.d.ts +4 -0
  21. package/dist/client/node_modules/@floating-ui/core/src/computePosition.d.ts +2 -0
  22. package/dist/client/node_modules/@floating-ui/core/src/detectOverflow.d.ts +9 -0
  23. package/dist/client/node_modules/@floating-ui/core/src/enums.d.ts +4 -0
  24. package/dist/client/node_modules/@floating-ui/core/src/index.d.ts +11 -0
  25. package/dist/client/node_modules/@floating-ui/core/src/middleware/arrow.d.ts +6 -0
  26. package/dist/client/node_modules/@floating-ui/core/src/middleware/autoPlacement.d.ts +9 -0
  27. package/dist/client/node_modules/@floating-ui/core/src/middleware/flip.d.ts +10 -0
  28. package/dist/client/node_modules/@floating-ui/core/src/middleware/hide.d.ts +2 -0
  29. package/dist/client/node_modules/@floating-ui/core/src/middleware/inline.d.ts +5 -0
  30. package/dist/client/node_modules/@floating-ui/core/src/middleware/offset.d.ts +21 -0
  31. package/dist/client/node_modules/@floating-ui/core/src/middleware/shift.d.ts +32 -0
  32. package/dist/client/node_modules/@floating-ui/core/src/middleware/size.d.ts +6 -0
  33. package/dist/client/node_modules/@floating-ui/core/src/types.d.ts +148 -0
  34. package/dist/client/node_modules/@floating-ui/core/src/utils/expandPaddingObject.d.ts +2 -0
  35. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignment.d.ts +2 -0
  36. package/dist/client/node_modules/@floating-ui/core/src/utils/getAlignmentSides.d.ts +5 -0
  37. package/dist/client/node_modules/@floating-ui/core/src/utils/getBasePlacement.d.ts +2 -0
  38. package/dist/client/node_modules/@floating-ui/core/src/utils/getCrossAxis.d.ts +2 -0
  39. package/dist/client/node_modules/@floating-ui/core/src/utils/getExpandedPlacements.d.ts +2 -0
  40. package/dist/client/node_modules/@floating-ui/core/src/utils/getLengthFromAxis.d.ts +2 -0
  41. package/dist/client/node_modules/@floating-ui/core/src/utils/getMainAxisFromPlacement.d.ts +2 -0
  42. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositeAlignmentPlacement.d.ts +2 -0
  43. package/dist/client/node_modules/@floating-ui/core/src/utils/getOppositePlacement.d.ts +1 -0
  44. package/dist/client/node_modules/@floating-ui/core/src/utils/getPaddingObject.d.ts +2 -0
  45. package/dist/client/node_modules/@floating-ui/core/src/utils/math.d.ts +2 -0
  46. package/dist/client/node_modules/@floating-ui/core/src/utils/rectToClientRect.d.ts +2 -0
  47. package/dist/client/node_modules/@floating-ui/core/src/utils/within.d.ts +1 -0
  48. package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
  49. package/dist/client/node_modules/@floating-ui/dom/package.json +75 -0
  50. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +7 -0
  51. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +2 -0
  52. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +27 -0
  53. package/dist/client/node_modules/@floating-ui/dom/src/utils/contains.d.ts +1 -0
  54. package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +6 -0
  55. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +2 -0
  56. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingClientRect.d.ts +6 -0
  57. package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +1 -0
  58. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +2 -0
  59. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +1 -0
  60. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +2 -0
  61. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +1 -0
  62. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +2 -0
  63. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +1 -0
  64. package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +1 -0
  65. package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +2 -0
  66. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParent.d.ts +1 -0
  67. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScrollParents.d.ts +1 -0
  68. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -0
  69. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -0
  70. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +15 -0
  71. package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +3 -0
  72. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +2 -0
  73. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +680 -0
  74. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +347 -0
  75. package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
  76. package/dist/client/node_modules/@iconify/vue/package.json +61 -0
  77. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +176 -0
  78. package/dist/client/node_modules/@types/web-bluetooth/package.json +40 -0
  79. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1198 -0
  80. package/dist/client/node_modules/@vue/compiler-core/package.json +43 -0
  81. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +66 -0
  82. package/dist/client/node_modules/@vue/compiler-dom/package.json +43 -0
  83. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +321 -0
  84. package/dist/client/node_modules/@vue/compiler-sfc/package.json +59 -0
  85. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +6 -0
  86. package/dist/client/node_modules/@vue/compiler-ssr/package.json +34 -0
  87. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +108 -0
  88. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -0
  89. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +77 -0
  90. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +5 -0
  91. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +179 -0
  92. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +6 -0
  93. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +4 -0
  94. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +2 -0
  95. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +15 -0
  96. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +18 -0
  97. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +47 -0
  98. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +20 -0
  99. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +2 -0
  100. package/dist/client/node_modules/@vue/devtools-api/package.json +37 -0
  101. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +347 -0
  102. package/dist/client/node_modules/@vue/reactivity/package.json +41 -0
  103. package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +33 -0
  104. package/dist/client/node_modules/@vue/reactivity-transform/package.json +41 -0
  105. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +2018 -0
  106. package/dist/client/node_modules/@vue/runtime-core/package.json +38 -0
  107. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1522 -0
  108. package/dist/client/node_modules/@vue/runtime-dom/package.json +42 -0
  109. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +100 -0
  110. package/dist/client/node_modules/@vue/server-renderer/package.json +41 -0
  111. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +356 -0
  112. package/dist/client/node_modules/@vue/shared/package.json +33 -0
  113. package/dist/client/node_modules/@vueuse/core/index.d.ts +4305 -0
  114. package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
  115. package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/index.d.ts +874 -0
  116. package/dist/client/node_modules/@vueuse/core/node_modules/@vueuse/shared/package.json +50 -0
  117. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/index.d.ts +22 -0
  118. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
  119. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
  120. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
  121. package/dist/client/node_modules/@vueuse/core/node_modules/vue-demi/package.json +47 -0
  122. package/dist/client/node_modules/@vueuse/core/package.json +59 -0
  123. package/dist/client/node_modules/@vueuse/metadata/index.d.ts +75 -0
  124. package/dist/client/node_modules/@vueuse/metadata/package.json +39 -0
  125. package/dist/client/node_modules/compute-scroll-into-view/package.json +90 -0
  126. package/dist/client/node_modules/compute-scroll-into-view/typings/index.d.ts +19 -0
  127. package/dist/client/node_modules/csstype/index.d.ts +38372 -0
  128. package/dist/client/node_modules/csstype/package.json +57 -0
  129. package/dist/client/node_modules/estree-walker/dist/esm/package.json +1 -0
  130. package/dist/client/node_modules/estree-walker/package.json +37 -0
  131. package/dist/client/node_modules/estree-walker/src/package.json +1 -0
  132. package/dist/client/node_modules/estree-walker/types/async.d.ts +53 -0
  133. package/dist/client/node_modules/estree-walker/types/index.d.ts +56 -0
  134. package/dist/client/node_modules/estree-walker/types/sync.d.ts +53 -0
  135. package/dist/client/node_modules/estree-walker/types/walker.d.ts +37 -0
  136. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.vue.d.ts +25 -0
  137. package/dist/client/node_modules/floating-vue/dist/components/Menu.vue.d.ts +25 -0
  138. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +374 -0
  139. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +366 -0
  140. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +48 -0
  141. package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +9 -0
  142. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +28 -0
  143. package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +6 -0
  144. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.vue.d.ts +25 -0
  145. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +28 -0
  146. package/dist/client/node_modules/floating-vue/dist/config.d.ts +11 -0
  147. package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +13 -0
  148. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +27 -0
  149. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +1 -0
  150. package/dist/client/node_modules/floating-vue/dist/index.d.ts +414 -0
  151. package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +1 -0
  152. package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +2 -0
  153. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +12 -0
  154. package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +1 -0
  155. package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +1 -0
  156. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +3 -0
  157. package/dist/client/node_modules/floating-vue/package.json +71 -0
  158. package/dist/client/node_modules/floating-vue/src/global-shim.d.ts +1 -0
  159. package/dist/client/node_modules/floating-vue/src/vue-shim.d.ts +5 -0
  160. package/dist/client/node_modules/magic-string/index.d.ts +221 -0
  161. package/dist/client/node_modules/magic-string/package.json +52 -0
  162. package/dist/client/node_modules/nanoid/async/index.d.ts +56 -0
  163. package/dist/client/node_modules/nanoid/async/package.json +12 -0
  164. package/dist/client/node_modules/nanoid/index.d.ts +91 -0
  165. package/dist/client/node_modules/nanoid/non-secure/index.d.ts +33 -0
  166. package/dist/client/node_modules/nanoid/non-secure/package.json +6 -0
  167. package/dist/client/node_modules/nanoid/package.json +60 -0
  168. package/dist/client/node_modules/nanoid/url-alphabet/package.json +6 -0
  169. package/dist/client/node_modules/picocolors/package.json +25 -0
  170. package/dist/client/node_modules/picocolors/picocolors.d.ts +5 -0
  171. package/dist/client/node_modules/pinia/dist/pinia.d.ts +963 -0
  172. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +22 -0
  173. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +31 -0
  174. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +52 -0
  175. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
  176. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +47 -0
  177. package/dist/client/node_modules/pinia/package.json +101 -0
  178. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +106 -0
  179. package/dist/client/node_modules/postcss/lib/comment.d.ts +56 -0
  180. package/dist/client/node_modules/postcss/lib/container.d.ts +442 -0
  181. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +239 -0
  182. package/dist/client/node_modules/postcss/lib/declaration.d.ts +124 -0
  183. package/dist/client/node_modules/postcss/lib/document.d.ts +57 -0
  184. package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +5 -0
  185. package/dist/client/node_modules/postcss/lib/input.d.ts +150 -0
  186. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +176 -0
  187. package/dist/client/node_modules/postcss/lib/list.d.ts +51 -0
  188. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +37 -0
  189. package/dist/client/node_modules/postcss/lib/node.d.ts +478 -0
  190. package/dist/client/node_modules/postcss/lib/parse.d.ts +5 -0
  191. package/dist/client/node_modules/postcss/lib/postcss.d.ts +473 -0
  192. package/dist/client/node_modules/postcss/lib/previous-map.d.ts +72 -0
  193. package/dist/client/node_modules/postcss/lib/processor.d.ts +102 -0
  194. package/dist/client/node_modules/postcss/lib/result.d.ts +196 -0
  195. package/dist/client/node_modules/postcss/lib/root.d.ts +73 -0
  196. package/dist/client/node_modules/postcss/lib/rule.d.ts +104 -0
  197. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +37 -0
  198. package/dist/client/node_modules/postcss/lib/stringify.d.ts +5 -0
  199. package/dist/client/node_modules/postcss/lib/warning.d.ts +138 -0
  200. package/dist/client/node_modules/postcss/package.json +85 -0
  201. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +144 -0
  202. package/dist/client/node_modules/scroll-into-view-if-needed/typings/index.d.ts +13 -0
  203. package/dist/client/node_modules/scroll-into-view-if-needed/typings/types.d.ts +19 -0
  204. package/dist/client/node_modules/source-map/package.json +73 -0
  205. package/dist/client/node_modules/source-map/source-map.d.ts +98 -0
  206. package/dist/client/node_modules/source-map-js/package.json +71 -0
  207. package/dist/client/node_modules/source-map-js/source-map.d.ts +115 -0
  208. package/dist/client/node_modules/sourcemap-codec/dist/types/sourcemap-codec.d.ts +5 -0
  209. package/dist/client/node_modules/sourcemap-codec/package.json +53 -0
  210. package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
  211. package/dist/client/node_modules/vue/compiler-sfc/package.json +5 -0
  212. package/dist/client/node_modules/vue/dist/vue.d.ts +9 -0
  213. package/dist/client/node_modules/vue/macros-global.d.ts +19 -0
  214. package/dist/client/node_modules/vue/macros.d.ts +110 -0
  215. package/dist/client/node_modules/vue/package.json +75 -0
  216. package/dist/client/node_modules/vue/ref-macros.d.ts +2 -0
  217. package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
  218. package/dist/client/node_modules/vue/server-renderer/package.json +5 -0
  219. package/dist/client/node_modules/vue-resize/package.json +77 -0
  220. package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +1491 -0
  221. package/dist/client/node_modules/vue-router/package.json +114 -0
  222. package/dist/client/vue.runtime.esm-bundler.js +24 -19
  223. package/entries.js +7 -7
  224. package/floating-vue.d.ts +3 -0
  225. package/iconify.d.ts +3 -0
  226. package/package.json +13 -4
  227. package/pinia.d.ts +3 -0
  228. package/rollup.config.mjs +116 -0
  229. package/scroll.d.ts +3 -0
  230. package/src/client/b-floating-vue.ts +3 -0
  231. package/src/client/b-iconify.ts +1 -0
  232. package/src/client/b-pinia.ts +1 -0
  233. package/src/client/b-scroll.ts +2 -0
  234. package/src/client/b-vue-router.ts +1 -0
  235. package/src/client/b-vue-use.ts +1 -0
  236. package/src/client/b-vue.ts +1 -0
  237. package/vue-router.d.ts +3 -0
  238. package/vue-use.d.ts +3 -0
  239. package/vue.d.ts +3 -0
  240. package/dist/client/floating-vue.d.ts +0 -2
  241. package/dist/client/iconify.d.ts +0 -1
  242. package/dist/client/pinia.d.ts +0 -1
  243. package/dist/client/scroll.d.ts +0 -1
  244. package/dist/client/vue-router.d.ts +0 -1
  245. package/dist/client/vue-use.d.ts +0 -1
  246. package/dist/client/vue.d.ts +0 -1
  247. package/rollup.config.js +0 -37
  248. package/src/client/floating-vue.ts +0 -2
  249. package/src/client/iconify.ts +0 -1
  250. package/src/client/pinia.ts +0 -1
  251. package/src/client/scroll.ts +0 -1
  252. package/src/client/vue-router.ts +0 -1
  253. package/src/client/vue-use.ts +0 -1
  254. package/src/client/vue.ts +0 -1
@@ -0,0 +1,1198 @@
1
+ import type { BlockStatement as BlockStatement_2 } from '@babel/types';
2
+ import type { Function as Function_2 } from '@babel/types';
3
+ import { generateCodeFrame } from '@vue/shared';
4
+ import type { Identifier } from '@babel/types';
5
+ import type { Node as Node_3 } from '@babel/types';
6
+ import type { ObjectProperty } from '@babel/types';
7
+ import { ParserPlugin } from '@babel/parser';
8
+ import type { Program } from '@babel/types';
9
+ import { RawSourceMap } from 'source-map';
10
+ import { SourceMapGenerator } from 'source-map';
11
+
12
+ export declare function advancePositionWithClone(pos: Position, source: string, numberOfCharacters?: number): Position;
13
+
14
+ export declare function advancePositionWithMutation(pos: Position, source: string, numberOfCharacters?: number): Position;
15
+
16
+ export declare interface ArrayExpression extends Node_2 {
17
+ type: NodeTypes.JS_ARRAY_EXPRESSION;
18
+ elements: Array<string | Node_2>;
19
+ }
20
+
21
+ export declare function assert(condition: boolean, msg?: string): void;
22
+
23
+ export declare interface AssignmentExpression extends Node_2 {
24
+ type: NodeTypes.JS_ASSIGNMENT_EXPRESSION;
25
+ left: SimpleExpressionNode;
26
+ right: JSChildNode;
27
+ }
28
+
29
+ export declare interface AttributeNode extends Node_2 {
30
+ type: NodeTypes.ATTRIBUTE;
31
+ name: string;
32
+ value: TextNode | undefined;
33
+ }
34
+
35
+ export declare const BASE_TRANSITION: unique symbol;
36
+
37
+ export declare function baseCompile(template: string | RootNode, options?: CompilerOptions): CodegenResult;
38
+
39
+ export declare interface BaseElementNode extends Node_2 {
40
+ type: NodeTypes.ELEMENT;
41
+ ns: Namespace;
42
+ tag: string;
43
+ tagType: ElementTypes;
44
+ isSelfClosing: boolean;
45
+ props: Array<AttributeNode | DirectiveNode>;
46
+ children: TemplateChildNode[];
47
+ }
48
+
49
+ export declare function baseParse(content: string, options?: ParserOptions): RootNode;
50
+
51
+ export declare type BindingMetadata = {
52
+ [key: string]: BindingTypes | undefined;
53
+ } & {
54
+ __isScriptSetup?: boolean;
55
+ __propsAliases?: Record<string, string>;
56
+ };
57
+
58
+ export declare const enum BindingTypes {
59
+ /**
60
+ * returned from data()
61
+ */
62
+ DATA = "data",
63
+ /**
64
+ * declared as a prop
65
+ */
66
+ PROPS = "props",
67
+ /**
68
+ * a local alias of a `<script setup>` destructured prop.
69
+ * the original is stored in __propsAliases of the bindingMetadata object.
70
+ */
71
+ PROPS_ALIASED = "props-aliased",
72
+ /**
73
+ * a let binding (may or may not be a ref)
74
+ */
75
+ SETUP_LET = "setup-let",
76
+ /**
77
+ * a const binding that can never be a ref.
78
+ * these bindings don't need `unref()` calls when processed in inlined
79
+ * template expressions.
80
+ */
81
+ SETUP_CONST = "setup-const",
82
+ /**
83
+ * a const binding that does not need `unref()`, but may be mutated.
84
+ */
85
+ SETUP_REACTIVE_CONST = "setup-reactive-const",
86
+ /**
87
+ * a const binding that may be a ref.
88
+ */
89
+ SETUP_MAYBE_REF = "setup-maybe-ref",
90
+ /**
91
+ * bindings that are guaranteed to be refs
92
+ */
93
+ SETUP_REF = "setup-ref",
94
+ /**
95
+ * declared by other options, e.g. computed, inject
96
+ */
97
+ OPTIONS = "options"
98
+ }
99
+
100
+ export declare type BlockCodegenNode = VNodeCall | RenderSlotCall;
101
+
102
+ export declare interface BlockStatement extends Node_2 {
103
+ type: NodeTypes.JS_BLOCK_STATEMENT;
104
+ body: (JSChildNode | IfStatement)[];
105
+ }
106
+
107
+ export declare function buildDirectiveArgs(dir: DirectiveNode, context: TransformContext): ArrayExpression;
108
+
109
+ export declare function buildProps(node: ElementNode, context: TransformContext, props: (DirectiveNode | AttributeNode)[] | undefined, isComponent: boolean, isDynamicComponent: boolean, ssr?: boolean): {
110
+ props: PropsExpression | undefined;
111
+ directives: DirectiveNode[];
112
+ patchFlag: number;
113
+ dynamicPropNames: string[];
114
+ shouldUseBlock: boolean;
115
+ };
116
+
117
+ export declare function buildSlots(node: ElementNode, context: TransformContext, buildSlotFn?: SlotFnBuilder): {
118
+ slots: SlotsExpression;
119
+ hasDynamicSlots: boolean;
120
+ };
121
+
122
+ export declare interface CacheExpression extends Node_2 {
123
+ type: NodeTypes.JS_CACHE_EXPRESSION;
124
+ index: number;
125
+ value: JSChildNode;
126
+ isVNode: boolean;
127
+ }
128
+
129
+ export declare interface CallExpression extends Node_2 {
130
+ type: NodeTypes.JS_CALL_EXPRESSION;
131
+ callee: string | symbol;
132
+ arguments: (string | symbol | JSChildNode | SSRCodegenNode | TemplateChildNode | TemplateChildNode[])[];
133
+ }
134
+
135
+ export declare const CAMELIZE: unique symbol;
136
+
137
+ export declare const CAPITALIZE: unique symbol;
138
+
139
+ export declare function checkCompatEnabled(key: CompilerDeprecationTypes, context: ParserContext | TransformContext, loc: SourceLocation | null, ...args: any[]): boolean;
140
+
141
+ export declare interface CodegenContext extends Omit<Required<CodegenOptions>, 'bindingMetadata' | 'inline'> {
142
+ source: string;
143
+ code: string;
144
+ line: number;
145
+ column: number;
146
+ offset: number;
147
+ indentLevel: number;
148
+ pure: boolean;
149
+ map?: SourceMapGenerator;
150
+ helper(key: symbol): string;
151
+ push(code: string, node?: CodegenNode): void;
152
+ indent(): void;
153
+ deindent(withoutNewLine?: boolean): void;
154
+ newline(): void;
155
+ }
156
+
157
+ declare type CodegenNode = TemplateChildNode | JSChildNode | SSRCodegenNode;
158
+
159
+ export declare interface CodegenOptions extends SharedTransformCodegenOptions {
160
+ /**
161
+ * - `module` mode will generate ES module import statements for helpers
162
+ * and export the render function as the default export.
163
+ * - `function` mode will generate a single `const { helpers... } = Vue`
164
+ * statement and return the render function. It expects `Vue` to be globally
165
+ * available (or passed by wrapping the code with an IIFE). It is meant to be
166
+ * used with `new Function(code)()` to generate a render function at runtime.
167
+ * @default 'function'
168
+ */
169
+ mode?: 'module' | 'function';
170
+ /**
171
+ * Generate source map?
172
+ * @default false
173
+ */
174
+ sourceMap?: boolean;
175
+ /**
176
+ * SFC scoped styles ID
177
+ */
178
+ scopeId?: string | null;
179
+ /**
180
+ * Option to optimize helper import bindings via variable assignment
181
+ * (only used for webpack code-split)
182
+ * @default false
183
+ */
184
+ optimizeImports?: boolean;
185
+ /**
186
+ * Customize where to import runtime helpers from.
187
+ * @default 'vue'
188
+ */
189
+ runtimeModuleName?: string;
190
+ /**
191
+ * Customize where to import ssr runtime helpers from/**
192
+ * @default 'vue/server-renderer'
193
+ */
194
+ ssrRuntimeModuleName?: string;
195
+ /**
196
+ * Customize the global variable name of `Vue` to get helpers from
197
+ * in function mode
198
+ * @default 'Vue'
199
+ */
200
+ runtimeGlobalName?: string;
201
+ }
202
+
203
+ export declare interface CodegenResult {
204
+ code: string;
205
+ preamble: string;
206
+ ast: RootNode;
207
+ map?: RawSourceMap;
208
+ }
209
+
210
+ export declare interface CommentNode extends Node_2 {
211
+ type: NodeTypes.COMMENT;
212
+ content: string;
213
+ }
214
+
215
+ declare type CompilerCompatConfig = Partial<Record<CompilerDeprecationTypes, boolean | 'suppress-warning'>> & {
216
+ MODE?: 2 | 3;
217
+ };
218
+
219
+ declare interface CompilerCompatOptions {
220
+ compatConfig?: CompilerCompatConfig;
221
+ }
222
+
223
+ export declare const enum CompilerDeprecationTypes {
224
+ COMPILER_IS_ON_ELEMENT = "COMPILER_IS_ON_ELEMENT",
225
+ COMPILER_V_BIND_SYNC = "COMPILER_V_BIND_SYNC",
226
+ COMPILER_V_BIND_PROP = "COMPILER_V_BIND_PROP",
227
+ COMPILER_V_BIND_OBJECT_ORDER = "COMPILER_V_BIND_OBJECT_ORDER",
228
+ COMPILER_V_ON_NATIVE = "COMPILER_V_ON_NATIVE",
229
+ COMPILER_V_IF_V_FOR_PRECEDENCE = "COMPILER_V_IF_V_FOR_PRECEDENCE",
230
+ COMPILER_NATIVE_TEMPLATE = "COMPILER_NATIVE_TEMPLATE",
231
+ COMPILER_INLINE_TEMPLATE = "COMPILER_INLINE_TEMPLATE",
232
+ COMPILER_FILTERS = "COMPILER_FILTER"
233
+ }
234
+
235
+ export declare interface CompilerError extends SyntaxError {
236
+ code: number | string;
237
+ loc?: SourceLocation;
238
+ }
239
+
240
+ export declare type CompilerOptions = ParserOptions & TransformOptions & CodegenOptions;
241
+
242
+ export declare interface ComponentNode extends BaseElementNode {
243
+ tagType: ElementTypes.COMPONENT;
244
+ codegenNode: VNodeCall | CacheExpression | MemoExpression | undefined;
245
+ ssrCodegenNode?: CallExpression;
246
+ }
247
+
248
+ export declare interface CompoundExpressionNode extends Node_2 {
249
+ type: NodeTypes.COMPOUND_EXPRESSION;
250
+ children: (SimpleExpressionNode | CompoundExpressionNode | InterpolationNode | TextNode | string | symbol)[];
251
+ /**
252
+ * an expression parsed as the params of a function will track
253
+ * the identifiers declared inside the function body.
254
+ */
255
+ identifiers?: string[];
256
+ isHandlerKey?: boolean;
257
+ }
258
+
259
+ export declare interface ConditionalDynamicSlotNode extends ConditionalExpression {
260
+ consequent: DynamicSlotNode;
261
+ alternate: DynamicSlotNode | SimpleExpressionNode;
262
+ }
263
+
264
+ export declare interface ConditionalExpression extends Node_2 {
265
+ type: NodeTypes.JS_CONDITIONAL_EXPRESSION;
266
+ test: JSChildNode;
267
+ consequent: JSChildNode;
268
+ alternate: JSChildNode;
269
+ newline: boolean;
270
+ }
271
+
272
+ /**
273
+ * Static types have several levels.
274
+ * Higher levels implies lower levels. e.g. a node that can be stringified
275
+ * can always be hoisted and skipped for patch.
276
+ */
277
+ export declare const enum ConstantTypes {
278
+ NOT_CONSTANT = 0,
279
+ CAN_SKIP_PATCH = 1,
280
+ CAN_HOIST = 2,
281
+ CAN_STRINGIFY = 3
282
+ }
283
+
284
+ export declare interface CoreCompilerError extends CompilerError {
285
+ code: ErrorCodes;
286
+ }
287
+
288
+ export declare const CREATE_BLOCK: unique symbol;
289
+
290
+ export declare const CREATE_COMMENT: unique symbol;
291
+
292
+ export declare const CREATE_ELEMENT_BLOCK: unique symbol;
293
+
294
+ export declare const CREATE_ELEMENT_VNODE: unique symbol;
295
+
296
+ export declare const CREATE_SLOTS: unique symbol;
297
+
298
+ export declare const CREATE_STATIC: unique symbol;
299
+
300
+ export declare const CREATE_TEXT: unique symbol;
301
+
302
+ export declare const CREATE_VNODE: unique symbol;
303
+
304
+ export declare function createArrayExpression(elements: ArrayExpression['elements'], loc?: SourceLocation): ArrayExpression;
305
+
306
+ export declare function createAssignmentExpression(left: AssignmentExpression['left'], right: AssignmentExpression['right']): AssignmentExpression;
307
+
308
+ export declare function createBlockStatement(body: BlockStatement['body']): BlockStatement;
309
+
310
+ export declare function createCacheExpression(index: number, value: JSChildNode, isVNode?: boolean): CacheExpression;
311
+
312
+ export declare function createCallExpression<T extends CallExpression['callee']>(callee: T, args?: CallExpression['arguments'], loc?: SourceLocation): InferCodegenNodeType<T>;
313
+
314
+ export declare function createCompilerError<T extends number>(code: T, loc?: SourceLocation, messages?: {
315
+ [code: number]: string;
316
+ }, additionalMessage?: string): InferCompilerError<T>;
317
+
318
+ export declare function createCompoundExpression(children: CompoundExpressionNode['children'], loc?: SourceLocation): CompoundExpressionNode;
319
+
320
+ export declare function createConditionalExpression(test: ConditionalExpression['test'], consequent: ConditionalExpression['consequent'], alternate: ConditionalExpression['alternate'], newline?: boolean): ConditionalExpression;
321
+
322
+ export declare function createForLoopParams({ value, key, index }: ForParseResult, memoArgs?: ExpressionNode[]): ExpressionNode[];
323
+
324
+ export declare function createFunctionExpression(params: FunctionExpression['params'], returns?: FunctionExpression['returns'], newline?: boolean, isSlot?: boolean, loc?: SourceLocation): FunctionExpression;
325
+
326
+ export declare function createIfStatement(test: IfStatement['test'], consequent: IfStatement['consequent'], alternate?: IfStatement['alternate']): IfStatement;
327
+
328
+ export declare function createInterpolation(content: InterpolationNode['content'] | string, loc: SourceLocation): InterpolationNode;
329
+
330
+ export declare function createObjectExpression(properties: ObjectExpression['properties'], loc?: SourceLocation): ObjectExpression;
331
+
332
+ export declare function createObjectProperty(key: Property['key'] | string, value: Property['value']): Property;
333
+
334
+ export declare function createReturnStatement(returns: ReturnStatement['returns']): ReturnStatement;
335
+
336
+ export declare function createRoot(children: TemplateChildNode[], loc?: SourceLocation): RootNode;
337
+
338
+ export declare function createSequenceExpression(expressions: SequenceExpression['expressions']): SequenceExpression;
339
+
340
+ export declare function createSimpleExpression(content: SimpleExpressionNode['content'], isStatic?: SimpleExpressionNode['isStatic'], loc?: SourceLocation, constType?: ConstantTypes): SimpleExpressionNode;
341
+
342
+ export declare function createStructuralDirectiveTransform(name: string | RegExp, fn: StructuralDirectiveTransform): NodeTransform;
343
+
344
+ export declare function createTemplateLiteral(elements: TemplateLiteral['elements']): TemplateLiteral;
345
+
346
+ export declare function createTransformContext(root: RootNode, { filename, prefixIdentifiers, hoistStatic, cacheHandlers, nodeTransforms, directiveTransforms, transformHoist, isBuiltInComponent, isCustomElement, expressionPlugins, scopeId, slotted, ssr, inSSR, ssrCssVars, bindingMetadata, inline, isTS, onError, onWarn, compatConfig }: TransformOptions): TransformContext;
347
+
348
+ export declare function createVNodeCall(context: TransformContext | null, tag: VNodeCall['tag'], props?: VNodeCall['props'], children?: VNodeCall['children'], patchFlag?: VNodeCall['patchFlag'], dynamicProps?: VNodeCall['dynamicProps'], directives?: VNodeCall['directives'], isBlock?: VNodeCall['isBlock'], disableTracking?: VNodeCall['disableTracking'], isComponent?: VNodeCall['isComponent'], loc?: SourceLocation): VNodeCall;
349
+
350
+ export declare interface DirectiveArgumentNode extends ArrayExpression {
351
+ elements: [string] | [string, ExpressionNode] | [string, ExpressionNode, ExpressionNode] | [string, ExpressionNode, ExpressionNode, ObjectExpression];
352
+ }
353
+
354
+ export declare interface DirectiveArguments extends ArrayExpression {
355
+ elements: DirectiveArgumentNode[];
356
+ }
357
+
358
+ export declare interface DirectiveNode extends Node_2 {
359
+ type: NodeTypes.DIRECTIVE;
360
+ name: string;
361
+ exp: ExpressionNode | undefined;
362
+ arg: ExpressionNode | undefined;
363
+ modifiers: string[];
364
+ /**
365
+ * optional property to cache the expression parse result for v-for
366
+ */
367
+ parseResult?: ForParseResult;
368
+ }
369
+
370
+ export declare type DirectiveTransform = (dir: DirectiveNode, node: ElementNode, context: TransformContext, augmentor?: (ret: DirectiveTransformResult) => DirectiveTransformResult) => DirectiveTransformResult;
371
+
372
+ declare interface DirectiveTransformResult {
373
+ props: Property[];
374
+ needRuntime?: boolean | symbol;
375
+ ssrTagParts?: TemplateLiteral['elements'];
376
+ }
377
+
378
+ export declare interface DynamicSlotEntries extends ArrayExpression {
379
+ elements: (ConditionalDynamicSlotNode | ListDynamicSlotNode)[];
380
+ }
381
+
382
+ export declare interface DynamicSlotFnProperty extends Property {
383
+ value: SlotFunctionExpression;
384
+ }
385
+
386
+ export declare interface DynamicSlotNode extends ObjectExpression {
387
+ properties: [Property, DynamicSlotFnProperty];
388
+ }
389
+
390
+ export declare interface DynamicSlotsExpression extends CallExpression {
391
+ callee: typeof CREATE_SLOTS;
392
+ arguments: [SlotsObjectExpression, DynamicSlotEntries];
393
+ }
394
+
395
+ export declare type ElementNode = PlainElementNode | ComponentNode | SlotOutletNode | TemplateNode;
396
+
397
+ export declare const enum ElementTypes {
398
+ ELEMENT = 0,
399
+ COMPONENT = 1,
400
+ SLOT = 2,
401
+ TEMPLATE = 3
402
+ }
403
+
404
+ export declare const enum ErrorCodes {
405
+ ABRUPT_CLOSING_OF_EMPTY_COMMENT = 0,
406
+ CDATA_IN_HTML_CONTENT = 1,
407
+ DUPLICATE_ATTRIBUTE = 2,
408
+ END_TAG_WITH_ATTRIBUTES = 3,
409
+ END_TAG_WITH_TRAILING_SOLIDUS = 4,
410
+ EOF_BEFORE_TAG_NAME = 5,
411
+ EOF_IN_CDATA = 6,
412
+ EOF_IN_COMMENT = 7,
413
+ EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT = 8,
414
+ EOF_IN_TAG = 9,
415
+ INCORRECTLY_CLOSED_COMMENT = 10,
416
+ INCORRECTLY_OPENED_COMMENT = 11,
417
+ INVALID_FIRST_CHARACTER_OF_TAG_NAME = 12,
418
+ MISSING_ATTRIBUTE_VALUE = 13,
419
+ MISSING_END_TAG_NAME = 14,
420
+ MISSING_WHITESPACE_BETWEEN_ATTRIBUTES = 15,
421
+ NESTED_COMMENT = 16,
422
+ UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME = 17,
423
+ UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE = 18,
424
+ UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME = 19,
425
+ UNEXPECTED_NULL_CHARACTER = 20,
426
+ UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME = 21,
427
+ UNEXPECTED_SOLIDUS_IN_TAG = 22,
428
+ X_INVALID_END_TAG = 23,
429
+ X_MISSING_END_TAG = 24,
430
+ X_MISSING_INTERPOLATION_END = 25,
431
+ X_MISSING_DIRECTIVE_NAME = 26,
432
+ X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END = 27,
433
+ X_V_IF_NO_EXPRESSION = 28,
434
+ X_V_IF_SAME_KEY = 29,
435
+ X_V_ELSE_NO_ADJACENT_IF = 30,
436
+ X_V_FOR_NO_EXPRESSION = 31,
437
+ X_V_FOR_MALFORMED_EXPRESSION = 32,
438
+ X_V_FOR_TEMPLATE_KEY_PLACEMENT = 33,
439
+ X_V_BIND_NO_EXPRESSION = 34,
440
+ X_V_ON_NO_EXPRESSION = 35,
441
+ X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET = 36,
442
+ X_V_SLOT_MIXED_SLOT_USAGE = 37,
443
+ X_V_SLOT_DUPLICATE_SLOT_NAMES = 38,
444
+ X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN = 39,
445
+ X_V_SLOT_MISPLACED = 40,
446
+ X_V_MODEL_NO_EXPRESSION = 41,
447
+ X_V_MODEL_MALFORMED_EXPRESSION = 42,
448
+ X_V_MODEL_ON_SCOPE_VARIABLE = 43,
449
+ X_INVALID_EXPRESSION = 44,
450
+ X_KEEP_ALIVE_INVALID_CHILDREN = 45,
451
+ X_PREFIX_ID_NOT_SUPPORTED = 46,
452
+ X_MODULE_MODE_NOT_SUPPORTED = 47,
453
+ X_CACHE_HANDLER_NOT_SUPPORTED = 48,
454
+ X_SCOPE_ID_NOT_SUPPORTED = 49,
455
+ __EXTEND_POINT__ = 50
456
+ }
457
+
458
+ declare interface ErrorHandlingOptions {
459
+ onWarn?: (warning: CompilerError) => void;
460
+ onError?: (error: CompilerError) => void;
461
+ }
462
+
463
+ export declare type ExpressionNode = SimpleExpressionNode | CompoundExpressionNode;
464
+
465
+ export declare function extractIdentifiers(param: Node_3, nodes?: Identifier[]): Identifier[];
466
+
467
+ export declare function findDir(node: ElementNode, name: string | RegExp, allowEmpty?: boolean): DirectiveNode | undefined;
468
+
469
+ export declare function findProp(node: ElementNode, name: string, dynamicOnly?: boolean, allowEmpty?: boolean): ElementNode['props'][0] | undefined;
470
+
471
+ export declare interface ForCodegenNode extends VNodeCall {
472
+ isBlock: true;
473
+ tag: typeof FRAGMENT;
474
+ props: undefined;
475
+ children: ForRenderListExpression;
476
+ patchFlag: string;
477
+ disableTracking: boolean;
478
+ }
479
+
480
+ export declare interface ForIteratorExpression extends FunctionExpression {
481
+ returns: BlockCodegenNode;
482
+ }
483
+
484
+ export declare interface ForNode extends Node_2 {
485
+ type: NodeTypes.FOR;
486
+ source: ExpressionNode;
487
+ valueAlias: ExpressionNode | undefined;
488
+ keyAlias: ExpressionNode | undefined;
489
+ objectIndexAlias: ExpressionNode | undefined;
490
+ parseResult: ForParseResult;
491
+ children: TemplateChildNode[];
492
+ codegenNode?: ForCodegenNode;
493
+ }
494
+
495
+ declare interface ForParseResult {
496
+ source: ExpressionNode;
497
+ value: ExpressionNode | undefined;
498
+ key: ExpressionNode | undefined;
499
+ index: ExpressionNode | undefined;
500
+ }
501
+
502
+ export declare interface ForRenderListExpression extends CallExpression {
503
+ callee: typeof RENDER_LIST;
504
+ arguments: [ExpressionNode, ForIteratorExpression];
505
+ }
506
+
507
+ export declare const FRAGMENT: unique symbol;
508
+
509
+ export declare interface FunctionExpression extends Node_2 {
510
+ type: NodeTypes.JS_FUNCTION_EXPRESSION;
511
+ params: ExpressionNode | string | (ExpressionNode | string)[] | undefined;
512
+ returns?: TemplateChildNode | TemplateChildNode[] | JSChildNode;
513
+ body?: BlockStatement | IfStatement;
514
+ newline: boolean;
515
+ /**
516
+ * This flag is for codegen to determine whether it needs to generate the
517
+ * withScopeId() wrapper
518
+ */
519
+ isSlot: boolean;
520
+ /**
521
+ * __COMPAT__ only, indicates a slot function that should be excluded from
522
+ * the legacy $scopedSlots instance property.
523
+ */
524
+ isNonScopedSlot?: boolean;
525
+ }
526
+
527
+ export declare function generate(ast: RootNode, options?: CodegenOptions & {
528
+ onContextCreated?: (context: CodegenContext) => void;
529
+ }): CodegenResult;
530
+
531
+ export { generateCodeFrame }
532
+
533
+ export declare function getBaseTransformPreset(prefixIdentifiers?: boolean): TransformPreset;
534
+
535
+ export declare function getConstantType(node: TemplateChildNode | SimpleExpressionNode, context: TransformContext): ConstantTypes;
536
+
537
+ export declare function getInnerRange(loc: SourceLocation, offset: number, length: number): SourceLocation;
538
+
539
+ export declare function getMemoedVNodeCall(node: BlockCodegenNode | MemoExpression): VNodeCall | RenderSlotCall;
540
+
541
+ export declare function getVNodeBlockHelper(ssr: boolean, isComponent: boolean): typeof CREATE_BLOCK | typeof CREATE_ELEMENT_BLOCK;
542
+
543
+ export declare function getVNodeHelper(ssr: boolean, isComponent: boolean): typeof CREATE_VNODE | typeof CREATE_ELEMENT_VNODE;
544
+
545
+ export declare const GUARD_REACTIVE_PROPS: unique symbol;
546
+
547
+ export declare function hasDynamicKeyVBind(node: ElementNode): boolean;
548
+
549
+ export declare function hasScopeRef(node: TemplateChildNode | IfBranchNode | ExpressionNode | undefined, ids: TransformContext['identifiers']): boolean;
550
+
551
+ export declare const helperNameMap: any;
552
+
553
+ export declare type HoistTransform = (children: TemplateChildNode[], context: TransformContext, parent: ParentNode_2) => void;
554
+
555
+ export declare interface IfBranchNode extends Node_2 {
556
+ type: NodeTypes.IF_BRANCH;
557
+ condition: ExpressionNode | undefined;
558
+ children: TemplateChildNode[];
559
+ userKey?: AttributeNode | DirectiveNode;
560
+ isTemplateIf?: boolean;
561
+ }
562
+
563
+ export declare interface IfConditionalExpression extends ConditionalExpression {
564
+ consequent: BlockCodegenNode | MemoExpression;
565
+ alternate: BlockCodegenNode | IfConditionalExpression | MemoExpression;
566
+ }
567
+
568
+ export declare interface IfNode extends Node_2 {
569
+ type: NodeTypes.IF;
570
+ branches: IfBranchNode[];
571
+ codegenNode?: IfConditionalExpression | CacheExpression;
572
+ }
573
+
574
+ export declare interface IfStatement extends Node_2 {
575
+ type: NodeTypes.JS_IF_STATEMENT;
576
+ test: ExpressionNode;
577
+ consequent: BlockStatement;
578
+ alternate: IfStatement | BlockStatement | ReturnStatement | undefined;
579
+ }
580
+
581
+ declare interface ImportItem {
582
+ exp: string | ExpressionNode;
583
+ path: string;
584
+ }
585
+
586
+ declare type InferCodegenNodeType<T> = T extends typeof RENDER_SLOT ? RenderSlotCall : CallExpression;
587
+
588
+ declare type InferCompilerError<T> = T extends ErrorCodes ? CoreCompilerError : CompilerError;
589
+
590
+ export declare function injectProp(node: VNodeCall | RenderSlotCall, prop: Property, context: TransformContext): void;
591
+
592
+ export declare interface InterpolationNode extends Node_2 {
593
+ type: NodeTypes.INTERPOLATION;
594
+ content: ExpressionNode;
595
+ }
596
+
597
+ export declare const IS_MEMO_SAME: unique symbol;
598
+
599
+ export declare const IS_REF: unique symbol;
600
+
601
+ export declare const isBuiltInType: (tag: string, expected: string) => boolean;
602
+
603
+ export declare function isCoreComponent(tag: string): symbol | void;
604
+
605
+ export declare const isFunctionType: (node: Node_3) => node is Function_2;
606
+
607
+ export declare function isInDestructureAssignment(parent: Node_3, parentStack: Node_3[]): boolean;
608
+
609
+ export declare const isMemberExpression: (path: string, context: TransformContext) => boolean;
610
+
611
+ /**
612
+ * Simple lexer to check if an expression is a member expression. This is
613
+ * lax and only checks validity at the root level (i.e. does not validate exps
614
+ * inside square brackets), but it's ok since these are only used on template
615
+ * expressions and false positives are invalid expressions in the first place.
616
+ */
617
+ export declare const isMemberExpressionBrowser: (path: string) => boolean;
618
+
619
+ export declare const isMemberExpressionNode: (path: string, context: TransformContext) => boolean;
620
+
621
+ export declare function isReferencedIdentifier(id: Identifier, parent: Node_3 | null, parentStack: Node_3[]): boolean;
622
+
623
+ export declare const isSimpleIdentifier: (name: string) => boolean;
624
+
625
+ export declare function isSlotOutlet(node: RootNode | TemplateChildNode): node is SlotOutletNode;
626
+
627
+ export declare function isStaticArgOf(arg: DirectiveNode['arg'], name: string): boolean;
628
+
629
+ export declare const isStaticExp: (p: JSChildNode) => p is SimpleExpressionNode;
630
+
631
+ export declare const isStaticProperty: (node: Node_3) => node is ObjectProperty;
632
+
633
+ export declare const isStaticPropertyKey: (node: Node_3, parent: Node_3) => boolean;
634
+
635
+ export declare function isTemplateNode(node: RootNode | TemplateChildNode): node is TemplateNode;
636
+
637
+ export declare function isText(node: TemplateChildNode): node is TextNode | InterpolationNode;
638
+
639
+ export declare function isVSlot(p: ElementNode['props'][0]): p is DirectiveNode;
640
+
641
+ export declare type JSChildNode = VNodeCall | CallExpression | ObjectExpression | ArrayExpression | ExpressionNode | FunctionExpression | ConditionalExpression | CacheExpression | AssignmentExpression | SequenceExpression;
642
+
643
+ export declare const KEEP_ALIVE: unique symbol;
644
+
645
+ export declare interface ListDynamicSlotIterator extends FunctionExpression {
646
+ returns: DynamicSlotNode;
647
+ }
648
+
649
+ export declare interface ListDynamicSlotNode extends CallExpression {
650
+ callee: typeof RENDER_LIST;
651
+ arguments: [ExpressionNode, ListDynamicSlotIterator];
652
+ }
653
+
654
+ export declare const locStub: SourceLocation;
655
+
656
+ export declare function makeBlock(node: VNodeCall, { helper, removeHelper, inSSR }: TransformContext): void;
657
+
658
+ export declare interface MemoExpression extends CallExpression {
659
+ callee: typeof WITH_MEMO;
660
+ arguments: [ExpressionNode, MemoFactory, string, string];
661
+ }
662
+
663
+ declare interface MemoFactory extends FunctionExpression {
664
+ returns: BlockCodegenNode;
665
+ }
666
+
667
+ export declare const MERGE_PROPS: unique symbol;
668
+
669
+ declare type MergedParserOptions = Omit<Required<ParserOptions>, OptionalOptions> & Pick<ParserOptions, OptionalOptions>;
670
+
671
+ export declare type Namespace = number;
672
+
673
+ export declare const enum Namespaces {
674
+ HTML = 0
675
+ }
676
+
677
+ declare interface Node_2 {
678
+ type: NodeTypes;
679
+ loc: SourceLocation;
680
+ }
681
+ export { Node_2 as Node }
682
+
683
+ export declare type NodeTransform = (node: RootNode | TemplateChildNode, context: TransformContext) => void | (() => void) | (() => void)[];
684
+
685
+ export declare const enum NodeTypes {
686
+ ROOT = 0,
687
+ ELEMENT = 1,
688
+ TEXT = 2,
689
+ COMMENT = 3,
690
+ SIMPLE_EXPRESSION = 4,
691
+ INTERPOLATION = 5,
692
+ ATTRIBUTE = 6,
693
+ DIRECTIVE = 7,
694
+ COMPOUND_EXPRESSION = 8,
695
+ IF = 9,
696
+ IF_BRANCH = 10,
697
+ FOR = 11,
698
+ TEXT_CALL = 12,
699
+ VNODE_CALL = 13,
700
+ JS_CALL_EXPRESSION = 14,
701
+ JS_OBJECT_EXPRESSION = 15,
702
+ JS_PROPERTY = 16,
703
+ JS_ARRAY_EXPRESSION = 17,
704
+ JS_FUNCTION_EXPRESSION = 18,
705
+ JS_CONDITIONAL_EXPRESSION = 19,
706
+ JS_CACHE_EXPRESSION = 20,
707
+ JS_BLOCK_STATEMENT = 21,
708
+ JS_TEMPLATE_LITERAL = 22,
709
+ JS_IF_STATEMENT = 23,
710
+ JS_ASSIGNMENT_EXPRESSION = 24,
711
+ JS_SEQUENCE_EXPRESSION = 25,
712
+ JS_RETURN_STATEMENT = 26
713
+ }
714
+
715
+ export declare const noopDirectiveTransform: DirectiveTransform;
716
+
717
+ export declare const NORMALIZE_CLASS: unique symbol;
718
+
719
+ export declare const NORMALIZE_PROPS: unique symbol;
720
+
721
+ export declare const NORMALIZE_STYLE: unique symbol;
722
+
723
+ export declare interface ObjectExpression extends Node_2 {
724
+ type: NodeTypes.JS_OBJECT_EXPRESSION;
725
+ properties: Array<Property>;
726
+ }
727
+
728
+ export declare const OPEN_BLOCK: unique symbol;
729
+
730
+ declare type OptionalOptions = 'whitespace' | 'isNativeTag' | 'isBuiltInComponent' | keyof CompilerCompatOptions;
731
+
732
+ declare type ParentNode_2 = RootNode | ElementNode | IfBranchNode | ForNode;
733
+ export { ParentNode_2 as ParentNode }
734
+
735
+ declare interface ParserContext {
736
+ options: MergedParserOptions;
737
+ readonly originalSource: string;
738
+ source: string;
739
+ offset: number;
740
+ line: number;
741
+ column: number;
742
+ inPre: boolean;
743
+ inVPre: boolean;
744
+ onWarn: NonNullable<ErrorHandlingOptions['onWarn']>;
745
+ }
746
+
747
+ export declare interface ParserOptions extends ErrorHandlingOptions, CompilerCompatOptions {
748
+ /**
749
+ * e.g. platform native elements, e.g. `<div>` for browsers
750
+ */
751
+ isNativeTag?: (tag: string) => boolean;
752
+ /**
753
+ * e.g. native elements that can self-close, e.g. `<img>`, `<br>`, `<hr>`
754
+ */
755
+ isVoidTag?: (tag: string) => boolean;
756
+ /**
757
+ * e.g. elements that should preserve whitespace inside, e.g. `<pre>`
758
+ */
759
+ isPreTag?: (tag: string) => boolean;
760
+ /**
761
+ * Platform-specific built-in components e.g. `<Transition>`
762
+ */
763
+ isBuiltInComponent?: (tag: string) => symbol | void;
764
+ /**
765
+ * Separate option for end users to extend the native elements list
766
+ */
767
+ isCustomElement?: (tag: string) => boolean | void;
768
+ /**
769
+ * Get tag namespace
770
+ */
771
+ getNamespace?: (tag: string, parent: ElementNode | undefined) => Namespace;
772
+ /**
773
+ * Get text parsing mode for this element
774
+ */
775
+ getTextMode?: (node: ElementNode, parent: ElementNode | undefined) => TextModes;
776
+ /**
777
+ * @default ['{{', '}}']
778
+ */
779
+ delimiters?: [string, string];
780
+ /**
781
+ * Whitespace handling strategy
782
+ */
783
+ whitespace?: 'preserve' | 'condense';
784
+ /**
785
+ * Only needed for DOM compilers
786
+ */
787
+ decodeEntities?: (rawText: string, asAttr: boolean) => string;
788
+ /**
789
+ * Whether to keep comments in the templates AST.
790
+ * This defaults to `true` in development and `false` in production builds.
791
+ */
792
+ comments?: boolean;
793
+ }
794
+
795
+ export declare interface PlainElementNode extends BaseElementNode {
796
+ tagType: ElementTypes.ELEMENT;
797
+ codegenNode: VNodeCall | SimpleExpressionNode | CacheExpression | MemoExpression | undefined;
798
+ ssrCodegenNode?: TemplateLiteral;
799
+ }
800
+
801
+ export declare const POP_SCOPE_ID: unique symbol;
802
+
803
+ export declare interface Position {
804
+ offset: number;
805
+ line: number;
806
+ column: number;
807
+ }
808
+
809
+ export declare function processExpression(node: SimpleExpressionNode, context: TransformContext, asParams?: boolean, asRawStatements?: boolean, localVars?: Record<string, number>): ExpressionNode;
810
+
811
+ export declare function processFor(node: ElementNode, dir: DirectiveNode, context: TransformContext, processCodegen?: (forNode: ForNode) => (() => void) | undefined): (() => void) | undefined;
812
+
813
+ export declare function processIf(node: ElementNode, dir: DirectiveNode, context: TransformContext, processCodegen?: (node: IfNode, branch: IfBranchNode, isRoot: boolean) => (() => void) | undefined): (() => void) | undefined;
814
+
815
+ export declare function processSlotOutlet(node: SlotOutletNode, context: TransformContext): SlotOutletProcessResult;
816
+
817
+ export declare interface Property extends Node_2 {
818
+ type: NodeTypes.JS_PROPERTY;
819
+ key: ExpressionNode;
820
+ value: JSChildNode;
821
+ }
822
+
823
+ export declare type PropsExpression = ObjectExpression | CallExpression | ExpressionNode;
824
+
825
+ export declare const PUSH_SCOPE_ID: unique symbol;
826
+
827
+ export declare function registerRuntimeHelpers(helpers: any): void;
828
+
829
+ export declare const RENDER_LIST: unique symbol;
830
+
831
+ export declare const RENDER_SLOT: unique symbol;
832
+
833
+ export declare interface RenderSlotCall extends CallExpression {
834
+ callee: typeof RENDER_SLOT;
835
+ arguments: [string, string | ExpressionNode] | [string, string | ExpressionNode, PropsExpression] | [
836
+ string,
837
+ string | ExpressionNode,
838
+ PropsExpression | '{}',
839
+ TemplateChildNode[]
840
+ ];
841
+ }
842
+
843
+ export declare const RESOLVE_COMPONENT: unique symbol;
844
+
845
+ export declare const RESOLVE_DIRECTIVE: unique symbol;
846
+
847
+ export declare const RESOLVE_DYNAMIC_COMPONENT: unique symbol;
848
+
849
+ export declare const RESOLVE_FILTER: unique symbol;
850
+
851
+ export declare function resolveComponentType(node: ComponentNode, context: TransformContext, ssr?: boolean): string | symbol | CallExpression;
852
+
853
+ export declare interface ReturnStatement extends Node_2 {
854
+ type: NodeTypes.JS_RETURN_STATEMENT;
855
+ returns: TemplateChildNode | TemplateChildNode[] | JSChildNode;
856
+ }
857
+
858
+ export declare interface RootNode extends Node_2 {
859
+ type: NodeTypes.ROOT;
860
+ children: TemplateChildNode[];
861
+ helpers: symbol[];
862
+ components: string[];
863
+ directives: string[];
864
+ hoists: (JSChildNode | null)[];
865
+ imports: ImportItem[];
866
+ cached: number;
867
+ temps: number;
868
+ ssrHelpers?: symbol[];
869
+ codegenNode?: TemplateChildNode | JSChildNode | BlockStatement;
870
+ filters?: string[];
871
+ }
872
+
873
+ export declare interface SequenceExpression extends Node_2 {
874
+ type: NodeTypes.JS_SEQUENCE_EXPRESSION;
875
+ expressions: JSChildNode[];
876
+ }
877
+
878
+ export declare const SET_BLOCK_TRACKING: unique symbol;
879
+
880
+ declare interface SharedTransformCodegenOptions {
881
+ /**
882
+ * Transform expressions like {{ foo }} to `_ctx.foo`.
883
+ * If this option is false, the generated code will be wrapped in a
884
+ * `with (this) { ... }` block.
885
+ * - This is force-enabled in module mode, since modules are by default strict
886
+ * and cannot use `with`
887
+ * @default mode === 'module'
888
+ */
889
+ prefixIdentifiers?: boolean;
890
+ /**
891
+ * Control whether generate SSR-optimized render functions instead.
892
+ * The resulting function must be attached to the component via the
893
+ * `ssrRender` option instead of `render`.
894
+ *
895
+ * When compiler generates code for SSR's fallback branch, we need to set it to false:
896
+ * - context.ssr = false
897
+ *
898
+ * see `subTransform` in `ssrTransformComponent.ts`
899
+ */
900
+ ssr?: boolean;
901
+ /**
902
+ * Indicates whether the compiler generates code for SSR,
903
+ * it is always true when generating code for SSR,
904
+ * regardless of whether we are generating code for SSR's fallback branch,
905
+ * this means that when the compiler generates code for SSR's fallback branch:
906
+ * - context.ssr = false
907
+ * - context.inSSR = true
908
+ */
909
+ inSSR?: boolean;
910
+ /**
911
+ * Optional binding metadata analyzed from script - used to optimize
912
+ * binding access when `prefixIdentifiers` is enabled.
913
+ */
914
+ bindingMetadata?: BindingMetadata;
915
+ /**
916
+ * Compile the function for inlining inside setup().
917
+ * This allows the function to directly access setup() local bindings.
918
+ */
919
+ inline?: boolean;
920
+ /**
921
+ * Indicates that transforms and codegen should try to output valid TS code
922
+ */
923
+ isTS?: boolean;
924
+ /**
925
+ * Filename for source map generation.
926
+ * Also used for self-recursive reference in templates
927
+ * @default 'template.vue.html'
928
+ */
929
+ filename?: string;
930
+ }
931
+
932
+ export declare interface SimpleExpressionNode extends Node_2 {
933
+ type: NodeTypes.SIMPLE_EXPRESSION;
934
+ content: string;
935
+ isStatic: boolean;
936
+ constType: ConstantTypes;
937
+ /**
938
+ * Indicates this is an identifier for a hoist vnode call and points to the
939
+ * hoisted node.
940
+ */
941
+ hoisted?: JSChildNode;
942
+ /**
943
+ * an expression parsed as the params of a function will track
944
+ * the identifiers declared inside the function body.
945
+ */
946
+ identifiers?: string[];
947
+ isHandlerKey?: boolean;
948
+ }
949
+
950
+ export declare type SlotFnBuilder = (slotProps: ExpressionNode | undefined, slotChildren: TemplateChildNode[], loc: SourceLocation) => FunctionExpression;
951
+
952
+ export declare interface SlotFunctionExpression extends FunctionExpression {
953
+ returns: TemplateChildNode[];
954
+ }
955
+
956
+ export declare interface SlotOutletNode extends BaseElementNode {
957
+ tagType: ElementTypes.SLOT;
958
+ codegenNode: RenderSlotCall | CacheExpression | undefined;
959
+ ssrCodegenNode?: CallExpression;
960
+ }
961
+
962
+ declare interface SlotOutletProcessResult {
963
+ slotName: string | ExpressionNode;
964
+ slotProps: PropsExpression | undefined;
965
+ }
966
+
967
+ export declare type SlotsExpression = SlotsObjectExpression | DynamicSlotsExpression;
968
+
969
+ export declare interface SlotsObjectExpression extends ObjectExpression {
970
+ properties: SlotsObjectProperty[];
971
+ }
972
+
973
+ export declare interface SlotsObjectProperty extends Property {
974
+ value: SlotFunctionExpression;
975
+ }
976
+
977
+ export declare interface SourceLocation {
978
+ start: Position;
979
+ end: Position;
980
+ source: string;
981
+ }
982
+
983
+ export declare type SSRCodegenNode = BlockStatement | TemplateLiteral | IfStatement | AssignmentExpression | ReturnStatement | SequenceExpression;
984
+
985
+ export declare type StructuralDirectiveTransform = (node: ElementNode, dir: DirectiveNode, context: TransformContext) => void | (() => void);
986
+
987
+ export declare const SUSPENSE: unique symbol;
988
+
989
+ export declare const TELEPORT: unique symbol;
990
+
991
+ export declare type TemplateChildNode = ElementNode | InterpolationNode | CompoundExpressionNode | TextNode | CommentNode | IfNode | IfBranchNode | ForNode | TextCallNode;
992
+
993
+ export declare interface TemplateLiteral extends Node_2 {
994
+ type: NodeTypes.JS_TEMPLATE_LITERAL;
995
+ elements: (string | JSChildNode)[];
996
+ }
997
+
998
+ export declare interface TemplateNode extends BaseElementNode {
999
+ tagType: ElementTypes.TEMPLATE;
1000
+ codegenNode: undefined;
1001
+ }
1002
+
1003
+ export declare type TemplateTextChildNode = TextNode | InterpolationNode | CompoundExpressionNode;
1004
+
1005
+ export declare interface TextCallNode extends Node_2 {
1006
+ type: NodeTypes.TEXT_CALL;
1007
+ content: TextNode | InterpolationNode | CompoundExpressionNode;
1008
+ codegenNode: CallExpression | SimpleExpressionNode;
1009
+ }
1010
+
1011
+ export declare const enum TextModes {
1012
+ DATA = 0,
1013
+ RCDATA = 1,
1014
+ RAWTEXT = 2,
1015
+ CDATA = 3,
1016
+ ATTRIBUTE_VALUE = 4
1017
+ }
1018
+
1019
+ export declare interface TextNode extends Node_2 {
1020
+ type: NodeTypes.TEXT;
1021
+ content: string;
1022
+ }
1023
+
1024
+ export declare const TO_DISPLAY_STRING: unique symbol;
1025
+
1026
+ export declare const TO_HANDLER_KEY: unique symbol;
1027
+
1028
+ export declare const TO_HANDLERS: unique symbol;
1029
+
1030
+ export declare function toValidAssetId(name: string, type: 'component' | 'directive' | 'filter'): string;
1031
+
1032
+ export declare const trackSlotScopes: NodeTransform;
1033
+
1034
+ export declare const trackVForSlotScopes: NodeTransform;
1035
+
1036
+ export declare function transform(root: RootNode, options: TransformOptions): void;
1037
+
1038
+ export declare const transformBind: DirectiveTransform;
1039
+
1040
+ export declare interface TransformContext extends Required<Omit<TransformOptions, 'filename' | keyof CompilerCompatOptions>>, CompilerCompatOptions {
1041
+ selfName: string | null;
1042
+ root: RootNode;
1043
+ helpers: Map<symbol, number>;
1044
+ components: Set<string>;
1045
+ directives: Set<string>;
1046
+ hoists: (JSChildNode | null)[];
1047
+ imports: ImportItem[];
1048
+ temps: number;
1049
+ cached: number;
1050
+ identifiers: {
1051
+ [name: string]: number | undefined;
1052
+ };
1053
+ scopes: {
1054
+ vFor: number;
1055
+ vSlot: number;
1056
+ vPre: number;
1057
+ vOnce: number;
1058
+ };
1059
+ parent: ParentNode_2 | null;
1060
+ childIndex: number;
1061
+ currentNode: RootNode | TemplateChildNode | null;
1062
+ inVOnce: boolean;
1063
+ helper<T extends symbol>(name: T): T;
1064
+ removeHelper<T extends symbol>(name: T): void;
1065
+ helperString(name: symbol): string;
1066
+ replaceNode(node: TemplateChildNode): void;
1067
+ removeNode(node?: TemplateChildNode): void;
1068
+ onNodeRemoved(): void;
1069
+ addIdentifiers(exp: ExpressionNode | string): void;
1070
+ removeIdentifiers(exp: ExpressionNode | string): void;
1071
+ hoist(exp: string | JSChildNode | ArrayExpression): SimpleExpressionNode;
1072
+ cache<T extends JSChildNode>(exp: T, isVNode?: boolean): CacheExpression | T;
1073
+ constantCache: Map<TemplateChildNode, ConstantTypes>;
1074
+ filters?: Set<string>;
1075
+ }
1076
+
1077
+ export declare const transformElement: NodeTransform;
1078
+
1079
+ export declare const transformExpression: NodeTransform;
1080
+
1081
+ export declare const transformModel: DirectiveTransform;
1082
+
1083
+ export declare const transformOn: DirectiveTransform;
1084
+
1085
+ export declare interface TransformOptions extends SharedTransformCodegenOptions, ErrorHandlingOptions, CompilerCompatOptions {
1086
+ /**
1087
+ * An array of node transforms to be applied to every AST node.
1088
+ */
1089
+ nodeTransforms?: NodeTransform[];
1090
+ /**
1091
+ * An object of { name: transform } to be applied to every directive attribute
1092
+ * node found on element nodes.
1093
+ */
1094
+ directiveTransforms?: Record<string, DirectiveTransform | undefined>;
1095
+ /**
1096
+ * An optional hook to transform a node being hoisted.
1097
+ * used by compiler-dom to turn hoisted nodes into stringified HTML vnodes.
1098
+ * @default null
1099
+ */
1100
+ transformHoist?: HoistTransform | null;
1101
+ /**
1102
+ * If the pairing runtime provides additional built-in elements, use this to
1103
+ * mark them as built-in so the compiler will generate component vnodes
1104
+ * for them.
1105
+ */
1106
+ isBuiltInComponent?: (tag: string) => symbol | void;
1107
+ /**
1108
+ * Used by some transforms that expects only native elements
1109
+ */
1110
+ isCustomElement?: (tag: string) => boolean | void;
1111
+ /**
1112
+ * Transform expressions like {{ foo }} to `_ctx.foo`.
1113
+ * If this option is false, the generated code will be wrapped in a
1114
+ * `with (this) { ... }` block.
1115
+ * - This is force-enabled in module mode, since modules are by default strict
1116
+ * and cannot use `with`
1117
+ * @default mode === 'module'
1118
+ */
1119
+ prefixIdentifiers?: boolean;
1120
+ /**
1121
+ * Hoist static VNodes and props objects to `_hoisted_x` constants
1122
+ * @default false
1123
+ */
1124
+ hoistStatic?: boolean;
1125
+ /**
1126
+ * Cache v-on handlers to avoid creating new inline functions on each render,
1127
+ * also avoids the need for dynamically patching the handlers by wrapping it.
1128
+ * e.g `@click="foo"` by default is compiled to `{ onClick: foo }`. With this
1129
+ * option it's compiled to:
1130
+ * ```js
1131
+ * { onClick: _cache[0] || (_cache[0] = e => _ctx.foo(e)) }
1132
+ * ```
1133
+ * - Requires "prefixIdentifiers" to be enabled because it relies on scope
1134
+ * analysis to determine if a handler is safe to cache.
1135
+ * @default false
1136
+ */
1137
+ cacheHandlers?: boolean;
1138
+ /**
1139
+ * A list of parser plugins to enable for `@babel/parser`, which is used to
1140
+ * parse expressions in bindings and interpolations.
1141
+ * https://babeljs.io/docs/en/next/babel-parser#plugins
1142
+ */
1143
+ expressionPlugins?: ParserPlugin[];
1144
+ /**
1145
+ * SFC scoped styles ID
1146
+ */
1147
+ scopeId?: string | null;
1148
+ /**
1149
+ * Indicates this SFC template has used :slotted in its styles
1150
+ * Defaults to `true` for backwards compatibility - SFC tooling should set it
1151
+ * to `false` if no `:slotted` usage is detected in `<style>`
1152
+ */
1153
+ slotted?: boolean;
1154
+ /**
1155
+ * SFC `<style vars>` injection string
1156
+ * Should already be an object expression, e.g. `{ 'xxxx-color': color }`
1157
+ * needed to render inline CSS variables on component root
1158
+ */
1159
+ ssrCssVars?: string;
1160
+ }
1161
+
1162
+ export declare type TransformPreset = [
1163
+ NodeTransform[],
1164
+ Record<string, DirectiveTransform>
1165
+ ];
1166
+
1167
+ export declare function traverseNode(node: RootNode | TemplateChildNode, context: TransformContext): void;
1168
+
1169
+ export declare const UNREF: unique symbol;
1170
+
1171
+ export declare interface VNodeCall extends Node_2 {
1172
+ type: NodeTypes.VNODE_CALL;
1173
+ tag: string | symbol | CallExpression;
1174
+ props: PropsExpression | undefined;
1175
+ children: TemplateChildNode[] | TemplateTextChildNode | SlotsExpression | ForRenderListExpression | SimpleExpressionNode | undefined;
1176
+ patchFlag: string | undefined;
1177
+ dynamicProps: string | SimpleExpressionNode | undefined;
1178
+ directives: DirectiveArguments | undefined;
1179
+ isBlock: boolean;
1180
+ disableTracking: boolean;
1181
+ isComponent: boolean;
1182
+ }
1183
+
1184
+ export declare function walkBlockDeclarations(block: BlockStatement_2 | Program, onIdent: (node: Identifier) => void): void;
1185
+
1186
+ export declare function walkFunctionParams(node: Function_2, onIdent: (id: Identifier) => void): void;
1187
+
1188
+ export declare function walkIdentifiers(root: Node_3, onIdentifier: (node: Identifier, parent: Node_3, parentStack: Node_3[], isReference: boolean, isLocal: boolean) => void, includeAll?: boolean, parentStack?: Node_3[], knownIds?: Record<string, number>): void;
1189
+
1190
+ export declare function warnDeprecation(key: CompilerDeprecationTypes, context: ParserContext | TransformContext, loc: SourceLocation | null, ...args: any[]): void;
1191
+
1192
+ export declare const WITH_CTX: unique symbol;
1193
+
1194
+ export declare const WITH_DIRECTIVES: unique symbol;
1195
+
1196
+ export declare const WITH_MEMO: unique symbol;
1197
+
1198
+ export { }