@poveste/vendors 0.1.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 (269) hide show
  1. package/LICENSE +22 -0
  2. package/dist/client/b-floating-vue.d.ts +3 -0
  3. package/dist/client/b-floating-vue.js +3377 -0
  4. package/dist/client/b-iconify.d.ts +1 -0
  5. package/dist/client/b-iconify.js +1883 -0
  6. package/dist/client/b-pinia.d.ts +1 -0
  7. package/dist/client/b-pinia.js +2069 -0
  8. package/dist/client/b-scroll.d.ts +2 -0
  9. package/dist/client/b-scroll.js +7 -0
  10. package/dist/client/b-vue-router.d.ts +1 -0
  11. package/dist/client/b-vue-router.js +2773 -0
  12. package/dist/client/b-vue-use.d.ts +1 -0
  13. package/dist/client/b-vue-use.js +9626 -0
  14. package/dist/client/b-vue.d.ts +1 -0
  15. package/dist/client/b-vue.js +1 -0
  16. package/dist/client/index.js +169 -0
  17. package/dist/client/node_modules/@babel/helper-string-parser/package.json +31 -0
  18. package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +31 -0
  19. package/dist/client/node_modules/@babel/parser/package.json +50 -0
  20. package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +262 -0
  21. package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +2796 -0
  22. package/dist/client/node_modules/@babel/types/lib/index.d.ts +3616 -0
  23. package/dist/client/node_modules/@babel/types/package.json +39 -0
  24. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts +535 -0
  25. package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +535 -0
  26. package/dist/client/node_modules/@floating-ui/core/package.json +63 -0
  27. package/dist/client/node_modules/@floating-ui/dom/index.d.ts +1 -0
  28. package/dist/client/node_modules/@floating-ui/dom/package.json +74 -0
  29. package/dist/client/node_modules/@floating-ui/dom/src/autoUpdate.d.ts +31 -0
  30. package/dist/client/node_modules/@floating-ui/dom/src/index.d.ts +11 -0
  31. package/dist/client/node_modules/@floating-ui/dom/src/platform.d.ts +2 -0
  32. package/dist/client/node_modules/@floating-ui/dom/src/types.d.ts +128 -0
  33. package/dist/client/node_modules/@floating-ui/dom/src/utils/convertOffsetParentRelativeRectToViewportRelativeRect.d.ts +6 -0
  34. package/dist/client/node_modules/@floating-ui/dom/src/utils/getBoundingClientRect.d.ts +2 -0
  35. package/dist/client/node_modules/@floating-ui/dom/src/utils/getClippingRect.d.ts +12 -0
  36. package/dist/client/node_modules/@floating-ui/dom/src/utils/getComputedStyle.d.ts +1 -0
  37. package/dist/client/node_modules/@floating-ui/dom/src/utils/getCssDimensions.d.ts +4 -0
  38. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDimensions.d.ts +2 -0
  39. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentElement.d.ts +1 -0
  40. package/dist/client/node_modules/@floating-ui/dom/src/utils/getDocumentRect.d.ts +2 -0
  41. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNearestOverflowAncestor.d.ts +1 -0
  42. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeName.d.ts +1 -0
  43. package/dist/client/node_modules/@floating-ui/dom/src/utils/getNodeScroll.d.ts +2 -0
  44. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOffsetParent.d.ts +1 -0
  45. package/dist/client/node_modules/@floating-ui/dom/src/utils/getOverflowAncestors.d.ts +3 -0
  46. package/dist/client/node_modules/@floating-ui/dom/src/utils/getParentNode.d.ts +1 -0
  47. package/dist/client/node_modules/@floating-ui/dom/src/utils/getRectRelativeToOffsetParent.d.ts +2 -0
  48. package/dist/client/node_modules/@floating-ui/dom/src/utils/getScale.d.ts +7 -0
  49. package/dist/client/node_modules/@floating-ui/dom/src/utils/getViewportRect.d.ts +2 -0
  50. package/dist/client/node_modules/@floating-ui/dom/src/utils/getWindowScrollBarX.d.ts +1 -0
  51. package/dist/client/node_modules/@floating-ui/dom/src/utils/is.d.ts +17 -0
  52. package/dist/client/node_modules/@floating-ui/dom/src/utils/math.d.ts +3 -0
  53. package/dist/client/node_modules/@floating-ui/dom/src/utils/unwrapElement.d.ts +2 -0
  54. package/dist/client/node_modules/@floating-ui/dom/src/utils/userAgent.d.ts +1 -0
  55. package/dist/client/node_modules/@floating-ui/dom/src/utils/window.d.ts +1 -0
  56. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.mts +105 -0
  57. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.d.ts +105 -0
  58. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.mts +47 -0
  59. package/dist/client/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.d.ts +47 -0
  60. package/dist/client/node_modules/@floating-ui/utils/dom/floating-ui.utils.dom.d.ts +47 -0
  61. package/dist/client/node_modules/@floating-ui/utils/dom/package.json +6 -0
  62. package/dist/client/node_modules/@floating-ui/utils/package.json +70 -0
  63. package/dist/client/node_modules/@iconify/types/package.json +23 -0
  64. package/dist/client/node_modules/@iconify/types/provider.d.ts +44 -0
  65. package/dist/client/node_modules/@iconify/types/types.d.ts +272 -0
  66. package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +475 -0
  67. package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +114 -0
  68. package/dist/client/node_modules/@iconify/vue/offline/package.json +14 -0
  69. package/dist/client/node_modules/@iconify/vue/package.json +65 -0
  70. package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
  71. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
  72. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
  73. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
  74. package/dist/client/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
  75. package/dist/client/node_modules/@types/web-bluetooth/index.d.ts +265 -0
  76. package/dist/client/node_modules/@types/web-bluetooth/package.json +46 -0
  77. package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +1100 -0
  78. package/dist/client/node_modules/@vue/compiler-core/package.json +58 -0
  79. package/dist/client/node_modules/@vue/compiler-dom/dist/compiler-dom.d.ts +45 -0
  80. package/dist/client/node_modules/@vue/compiler-dom/package.json +57 -0
  81. package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +485 -0
  82. package/dist/client/node_modules/@vue/compiler-sfc/package.json +67 -0
  83. package/dist/client/node_modules/@vue/compiler-ssr/dist/compiler-ssr.d.ts +4 -0
  84. package/dist/client/node_modules/@vue/compiler-ssr/package.json +34 -0
  85. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +108 -0
  86. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +1 -0
  87. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +78 -0
  88. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +5 -0
  89. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +180 -0
  90. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +6 -0
  91. package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +4 -0
  92. package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +2 -0
  93. package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +15 -0
  94. package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +18 -0
  95. package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +47 -0
  96. package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +20 -0
  97. package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +2 -0
  98. package/dist/client/node_modules/@vue/devtools-api/package.json +37 -0
  99. package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +753 -0
  100. package/dist/client/node_modules/@vue/reactivity/package.json +55 -0
  101. package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +1839 -0
  102. package/dist/client/node_modules/@vue/runtime-core/package.json +52 -0
  103. package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1430 -0
  104. package/dist/client/node_modules/@vue/runtime-dom/package.json +60 -0
  105. package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +65 -0
  106. package/dist/client/node_modules/@vue/server-renderer/package.json +55 -0
  107. package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +334 -0
  108. package/dist/client/node_modules/@vue/shared/package.json +47 -0
  109. package/dist/client/node_modules/@vueuse/core/index.d.mts +6221 -0
  110. package/dist/client/node_modules/@vueuse/core/index.d.ts +6221 -0
  111. package/dist/client/node_modules/@vueuse/core/metadata.d.mts +1 -0
  112. package/dist/client/node_modules/@vueuse/core/metadata.d.ts +1 -0
  113. package/dist/client/node_modules/@vueuse/core/package.json +57 -0
  114. package/dist/client/node_modules/@vueuse/metadata/index.d.mts +78 -0
  115. package/dist/client/node_modules/@vueuse/metadata/index.d.ts +78 -0
  116. package/dist/client/node_modules/@vueuse/metadata/package.json +46 -0
  117. package/dist/client/node_modules/@vueuse/shared/index.d.mts +1260 -0
  118. package/dist/client/node_modules/@vueuse/shared/index.d.ts +1260 -0
  119. package/dist/client/node_modules/@vueuse/shared/package.json +49 -0
  120. package/dist/client/node_modules/compute-scroll-into-view/dist/index.d.ts +75 -0
  121. package/dist/client/node_modules/compute-scroll-into-view/package.json +82 -0
  122. package/dist/client/node_modules/csstype/index.d.ts +22569 -0
  123. package/dist/client/node_modules/csstype/package.json +70 -0
  124. package/dist/client/node_modules/entities/decode.d.ts +3 -0
  125. package/dist/client/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +19 -0
  126. package/dist/client/node_modules/entities/dist/commonjs/decode.d.ts +205 -0
  127. package/dist/client/node_modules/entities/dist/commonjs/encode.d.ts +22 -0
  128. package/dist/client/node_modules/entities/dist/commonjs/escape.d.ts +46 -0
  129. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +2 -0
  130. package/dist/client/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +2 -0
  131. package/dist/client/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +3 -0
  132. package/dist/client/node_modules/entities/dist/commonjs/index.d.ts +96 -0
  133. package/dist/client/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +17 -0
  134. package/dist/client/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +2 -0
  135. package/dist/client/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +32 -0
  136. package/dist/client/node_modules/entities/dist/commonjs/package.json +3 -0
  137. package/dist/client/node_modules/entities/dist/esm/decode-codepoint.d.ts +19 -0
  138. package/dist/client/node_modules/entities/dist/esm/decode.d.ts +205 -0
  139. package/dist/client/node_modules/entities/dist/esm/encode.d.ts +22 -0
  140. package/dist/client/node_modules/entities/dist/esm/escape.d.ts +46 -0
  141. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +2 -0
  142. package/dist/client/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +2 -0
  143. package/dist/client/node_modules/entities/dist/esm/generated/encode-html.d.ts +3 -0
  144. package/dist/client/node_modules/entities/dist/esm/index.d.ts +96 -0
  145. package/dist/client/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +17 -0
  146. package/dist/client/node_modules/entities/dist/esm/internal/decode-shared.d.ts +2 -0
  147. package/dist/client/node_modules/entities/dist/esm/internal/encode-shared.d.ts +32 -0
  148. package/dist/client/node_modules/entities/dist/esm/package.json +3 -0
  149. package/dist/client/node_modules/entities/escape.d.ts +3 -0
  150. package/dist/client/node_modules/entities/package.json +120 -0
  151. package/dist/client/node_modules/estree-walker/dist/esm/package.json +1 -0
  152. package/dist/client/node_modules/estree-walker/package.json +37 -0
  153. package/dist/client/node_modules/estree-walker/src/package.json +1 -0
  154. package/dist/client/node_modules/estree-walker/types/async.d.ts +53 -0
  155. package/dist/client/node_modules/estree-walker/types/index.d.ts +56 -0
  156. package/dist/client/node_modules/estree-walker/types/sync.d.ts +53 -0
  157. package/dist/client/node_modules/estree-walker/types/walker.d.ts +37 -0
  158. package/dist/client/node_modules/floating-vue/dist/components/Dropdown.d.ts +398 -0
  159. package/dist/client/node_modules/floating-vue/dist/components/Menu.d.ts +398 -0
  160. package/dist/client/node_modules/floating-vue/dist/components/Popper.d.ts +495 -0
  161. package/dist/client/node_modules/floating-vue/dist/components/Popper.vue.d.ts +474 -0
  162. package/dist/client/node_modules/floating-vue/dist/components/PopperContent.vue.d.ts +37 -0
  163. package/dist/client/node_modules/floating-vue/dist/components/PopperMethods.d.ts +9 -0
  164. package/dist/client/node_modules/floating-vue/dist/components/PopperWrapper.vue.d.ts +414 -0
  165. package/dist/client/node_modules/floating-vue/dist/components/ThemeClass.d.ts +6 -0
  166. package/dist/client/node_modules/floating-vue/dist/components/Tooltip.d.ts +398 -0
  167. package/dist/client/node_modules/floating-vue/dist/components/TooltipDirective.vue.d.ts +67 -0
  168. package/dist/client/node_modules/floating-vue/dist/config.d.ts +11 -0
  169. package/dist/client/node_modules/floating-vue/dist/directives/v-close-popper.d.ts +13 -0
  170. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.d.ts +27 -0
  171. package/dist/client/node_modules/floating-vue/dist/directives/v-tooltip.spec.d.ts +1 -0
  172. package/dist/client/node_modules/floating-vue/dist/index.d.ts +2239 -0
  173. package/dist/client/node_modules/floating-vue/dist/util/assign-deep.d.ts +1 -0
  174. package/dist/client/node_modules/floating-vue/dist/util/env.d.ts +2 -0
  175. package/dist/client/node_modules/floating-vue/dist/util/events.d.ts +14 -0
  176. package/dist/client/node_modules/floating-vue/dist/util/frame.d.ts +1 -0
  177. package/dist/client/node_modules/floating-vue/dist/util/lang.d.ts +1 -0
  178. package/dist/client/node_modules/floating-vue/dist/util/popper.d.ts +3 -0
  179. package/dist/client/node_modules/floating-vue/package.json +80 -0
  180. package/dist/client/node_modules/magic-string/dist/magic-string.cjs.d.ts +289 -0
  181. package/dist/client/node_modules/magic-string/dist/magic-string.es.d.mts +289 -0
  182. package/dist/client/node_modules/magic-string/package.json +67 -0
  183. package/dist/client/node_modules/nanoid/async/index.d.ts +56 -0
  184. package/dist/client/node_modules/nanoid/async/package.json +12 -0
  185. package/dist/client/node_modules/nanoid/index.d.ts +91 -0
  186. package/dist/client/node_modules/nanoid/non-secure/index.d.ts +33 -0
  187. package/dist/client/node_modules/nanoid/non-secure/package.json +6 -0
  188. package/dist/client/node_modules/nanoid/package.json +89 -0
  189. package/dist/client/node_modules/nanoid/url-alphabet/package.json +6 -0
  190. package/dist/client/node_modules/picocolors/package.json +25 -0
  191. package/dist/client/node_modules/picocolors/picocolors.d.ts +5 -0
  192. package/dist/client/node_modules/picocolors/types.d.ts +51 -0
  193. package/dist/client/node_modules/pinia/dist/pinia.d.ts +1074 -0
  194. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +22 -0
  195. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +33 -0
  196. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +38 -0
  197. package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +22 -0
  198. package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +47 -0
  199. package/dist/client/node_modules/pinia/package.json +96 -0
  200. package/dist/client/node_modules/postcss/lib/at-rule.d.ts +139 -0
  201. package/dist/client/node_modules/postcss/lib/comment.d.ts +67 -0
  202. package/dist/client/node_modules/postcss/lib/container.d.ts +478 -0
  203. package/dist/client/node_modules/postcss/lib/css-syntax-error.d.ts +247 -0
  204. package/dist/client/node_modules/postcss/lib/declaration.d.ts +150 -0
  205. package/dist/client/node_modules/postcss/lib/document.d.ts +68 -0
  206. package/dist/client/node_modules/postcss/lib/fromJSON.d.ts +9 -0
  207. package/dist/client/node_modules/postcss/lib/input.d.ts +226 -0
  208. package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +189 -0
  209. package/dist/client/node_modules/postcss/lib/list.d.ts +60 -0
  210. package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +45 -0
  211. package/dist/client/node_modules/postcss/lib/node.d.ts +555 -0
  212. package/dist/client/node_modules/postcss/lib/parse.d.ts +9 -0
  213. package/dist/client/node_modules/postcss/lib/postcss.d.mts +66 -0
  214. package/dist/client/node_modules/postcss/lib/postcss.d.ts +464 -0
  215. package/dist/client/node_modules/postcss/lib/previous-map.d.ts +80 -0
  216. package/dist/client/node_modules/postcss/lib/processor.d.ts +114 -0
  217. package/dist/client/node_modules/postcss/lib/result.d.ts +204 -0
  218. package/dist/client/node_modules/postcss/lib/root.d.ts +86 -0
  219. package/dist/client/node_modules/postcss/lib/rule.d.ts +126 -0
  220. package/dist/client/node_modules/postcss/lib/stringifier.d.ts +45 -0
  221. package/dist/client/node_modules/postcss/lib/stringify.d.ts +9 -0
  222. package/dist/client/node_modules/postcss/lib/warning.d.ts +146 -0
  223. package/dist/client/node_modules/postcss/package.json +88 -0
  224. package/dist/client/node_modules/scroll-into-view-if-needed/dist/index.d.ts +79 -0
  225. package/dist/client/node_modules/scroll-into-view-if-needed/package.json +80 -0
  226. package/dist/client/node_modules/source-map-js/lib/source-map-consumer.d.ts +1 -0
  227. package/dist/client/node_modules/source-map-js/lib/source-map-generator.d.ts +1 -0
  228. package/dist/client/node_modules/source-map-js/lib/source-node.d.ts +1 -0
  229. package/dist/client/node_modules/source-map-js/package.json +71 -0
  230. package/dist/client/node_modules/source-map-js/source-map.d.ts +104 -0
  231. package/dist/client/node_modules/vue/compiler-sfc/index.d.mts +1 -0
  232. package/dist/client/node_modules/vue/compiler-sfc/index.d.ts +1 -0
  233. package/dist/client/node_modules/vue/compiler-sfc/package.json +4 -0
  234. package/dist/client/node_modules/vue/dist/vue.d.mts +7 -0
  235. package/dist/client/node_modules/vue/dist/vue.d.ts +7 -0
  236. package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +25 -0
  237. package/dist/client/node_modules/vue/jsx-runtime/package.json +5 -0
  238. package/dist/client/node_modules/vue/jsx.d.ts +22 -0
  239. package/dist/client/node_modules/vue/package.json +112 -0
  240. package/dist/client/node_modules/vue/server-renderer/index.d.mts +1 -0
  241. package/dist/client/node_modules/vue/server-renderer/index.d.ts +1 -0
  242. package/dist/client/node_modules/vue/server-renderer/package.json +4 -0
  243. package/dist/client/node_modules/vue-resize/package.json +77 -0
  244. package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +38 -0
  245. package/dist/client/node_modules/vue-router/dist/router-CWoNjPRp.d.mts +1973 -0
  246. package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +361 -0
  247. package/dist/client/node_modules/vue-router/package.json +153 -0
  248. package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -0
  249. package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +4 -0
  250. package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +1 -0
  251. package/dist/client/vue.runtime.esm-bundler.js +13167 -0
  252. package/entries.js +9 -0
  253. package/floating-vue.d.ts +4 -0
  254. package/iconify.d.ts +4 -0
  255. package/package.json +50 -0
  256. package/pinia.d.ts +4 -0
  257. package/rollup.config.mjs +119 -0
  258. package/scroll.d.ts +4 -0
  259. package/src/client/b-floating-vue.ts +5 -0
  260. package/src/client/b-iconify.ts +1 -0
  261. package/src/client/b-pinia.ts +1 -0
  262. package/src/client/b-scroll.ts +4 -0
  263. package/src/client/b-vue-router.ts +1 -0
  264. package/src/client/b-vue-use.ts +1 -0
  265. package/src/client/b-vue.ts +1 -0
  266. package/tsconfig.json +34 -0
  267. package/vue-router.d.ts +4 -0
  268. package/vue-use.d.ts +4 -0
  269. package/vue.d.ts +4 -0
@@ -0,0 +1,1839 @@
1
+ import { computed as computed$1, Ref, OnCleanup, WatchStopHandle, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, WatchCallback, ReactiveEffect, DebuggerOptions, WatchSource, WatchHandle, ReactiveMarker, WatchEffect, ShallowRef, WatchErrorCodes, reactive } from '@vue/reactivity';
2
+ export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, Raw, Reactive, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WatchCallback, WatchEffect, WatchHandle, WatchSource, WatchStopHandle, WritableComputedOptions, WritableComputedRef, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
3
+ import { IfAny, Prettify, LooseRequired, UnionToIntersection, OverloadParameters, IsKeyValues } from '@vue/shared';
4
+ export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
5
+
6
+ export declare const computed: typeof computed$1;
7
+
8
+ export type Slot<T extends any = any> = (...args: IfAny<T, any[], [T] | (T extends undefined ? [] : never)>) => VNode[];
9
+ type InternalSlots = {
10
+ [name: string]: Slot | undefined;
11
+ };
12
+ export type Slots = Readonly<InternalSlots>;
13
+ declare const SlotSymbol: unique symbol;
14
+ export type SlotsType<T extends Record<string, any> = Record<string, any>> = {
15
+ [SlotSymbol]?: T;
16
+ };
17
+ type StrictUnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<T> & T;
18
+ type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<Prettify<{
19
+ [K in keyof T]: NonNullable<T[K]> extends (...args: any[]) => any ? T[K] : Slot<T[K]>;
20
+ }>>;
21
+ type RawSlots = {
22
+ [name: string]: unknown;
23
+ $stable?: boolean;
24
+ };
25
+
26
+ declare enum SchedulerJobFlags {
27
+ QUEUED = 1,
28
+ PRE = 2,
29
+ /**
30
+ * Indicates whether the effect is allowed to recursively trigger itself
31
+ * when managed by the scheduler.
32
+ *
33
+ * By default, a job cannot trigger itself because some built-in method calls,
34
+ * e.g. Array.prototype.push actually performs reads as well (#1740) which
35
+ * can lead to confusing infinite loops.
36
+ * The allowed cases are component update functions and watch callbacks.
37
+ * Component update functions may update child component props, which in turn
38
+ * trigger flush: "pre" watch callbacks that mutates state that the parent
39
+ * relies on (#1801). Watch callbacks doesn't track its dependencies so if it
40
+ * triggers itself again, it's likely intentional and it is the user's
41
+ * responsibility to perform recursive state mutation that eventually
42
+ * stabilizes (#1727).
43
+ */
44
+ ALLOW_RECURSE = 4,
45
+ DISPOSED = 8
46
+ }
47
+ interface SchedulerJob extends Function {
48
+ id?: number;
49
+ /**
50
+ * flags can technically be undefined, but it can still be used in bitwise
51
+ * operations just like 0.
52
+ */
53
+ flags?: SchedulerJobFlags;
54
+ /**
55
+ * Attached by renderer.ts when setting up a component's render effect
56
+ * Used to obtain component information when reporting max recursive updates.
57
+ */
58
+ i?: ComponentInternalInstance;
59
+ }
60
+ type SchedulerJobs = SchedulerJob | SchedulerJob[];
61
+ export declare function nextTick(): Promise<void>;
62
+ export declare function nextTick<T, R>(this: T, fn: (this: T) => R | Promise<R>): Promise<R>;
63
+ export declare function queuePostFlushCb(cb: SchedulerJobs): void;
64
+
65
+ export type ComponentPropsOptions<P = Data> = ComponentObjectPropsOptions<P> | string[];
66
+ export type ComponentObjectPropsOptions<P = Data> = {
67
+ [K in keyof P]: Prop<P[K]> | null;
68
+ };
69
+ export type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
70
+ type DefaultFactory<T> = (props: Data) => T | null | undefined;
71
+ interface PropOptions<T = any, D = T> {
72
+ type?: PropType<T> | true | null;
73
+ required?: boolean;
74
+ default?: D | DefaultFactory<D> | null | undefined | object;
75
+ validator?(value: unknown, props: Data): boolean;
76
+ }
77
+ export type PropType<T> = PropConstructor<T> | (PropConstructor<T> | null)[];
78
+ type PropConstructor<T = any> = {
79
+ new (...args: any[]): T & {};
80
+ } | {
81
+ (): T;
82
+ } | PropMethod<T>;
83
+ type PropMethod<T, TConstructor = any> = [T] extends [
84
+ ((...args: any) => any) | undefined
85
+ ] ? {
86
+ new (): TConstructor;
87
+ (): T;
88
+ readonly prototype: TConstructor;
89
+ } : never;
90
+ type RequiredKeys<T> = {
91
+ [K in keyof T]: T[K] extends {
92
+ required: true;
93
+ } | {
94
+ default: any;
95
+ } | BooleanConstructor | {
96
+ type: BooleanConstructor;
97
+ } ? T[K] extends {
98
+ default: undefined | (() => undefined);
99
+ } ? never : K : never;
100
+ }[keyof T];
101
+ type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
102
+ type DefaultKeys<T> = {
103
+ [K in keyof T]: T[K] extends {
104
+ default: any;
105
+ } | BooleanConstructor | {
106
+ type: BooleanConstructor;
107
+ } ? T[K] extends {
108
+ type: BooleanConstructor;
109
+ required: true;
110
+ } ? never : K : never;
111
+ }[keyof T];
112
+ type InferPropType<T, NullAsAny = true> = [T] extends [null] ? NullAsAny extends true ? any : null : [T] extends [{
113
+ type: null | true;
114
+ }] ? any : [T] extends [ObjectConstructor | {
115
+ type: ObjectConstructor;
116
+ }] ? Record<string, any> : [T] extends [BooleanConstructor | {
117
+ type: BooleanConstructor;
118
+ }] ? boolean : [T] extends [DateConstructor | {
119
+ type: DateConstructor;
120
+ }] ? Date : [T] extends [(infer U)[] | {
121
+ type: (infer U)[];
122
+ }] ? U extends DateConstructor ? Date | InferPropType<U, false> : InferPropType<U, false> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? keyof V extends never ? IfAny<V, V, D> : V : V : T;
123
+ /**
124
+ * Extract prop types from a runtime props options object.
125
+ * The extracted types are **internal** - i.e. the resolved props received by
126
+ * the component.
127
+ * - Boolean props are always present
128
+ * - Props with default values are always present
129
+ *
130
+ * To extract accepted props from the parent, use {@link ExtractPublicPropTypes}.
131
+ */
132
+ export type ExtractPropTypes<O> = {
133
+ [K in keyof Pick<O, RequiredKeys<O>>]: O[K] extends {
134
+ default: any;
135
+ } ? Exclude<InferPropType<O[K]>, undefined> : InferPropType<O[K]>;
136
+ } & {
137
+ [K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]>;
138
+ };
139
+ type PublicRequiredKeys<T> = {
140
+ [K in keyof T]: T[K] extends {
141
+ required: true;
142
+ } ? K : never;
143
+ }[keyof T];
144
+ type PublicOptionalKeys<T> = Exclude<keyof T, PublicRequiredKeys<T>>;
145
+ /**
146
+ * Extract prop types from a runtime props options object.
147
+ * The extracted types are **public** - i.e. the expected props that can be
148
+ * passed to component.
149
+ */
150
+ export type ExtractPublicPropTypes<O> = {
151
+ [K in keyof Pick<O, PublicRequiredKeys<O>>]: InferPropType<O[K]>;
152
+ } & {
153
+ [K in keyof Pick<O, PublicOptionalKeys<O>>]?: InferPropType<O[K]>;
154
+ };
155
+ export type ExtractDefaultPropTypes<O> = O extends object ? {
156
+ [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>;
157
+ } : {};
158
+
159
+ /**
160
+ * Vue `<script setup>` compiler macro for declaring component props. The
161
+ * expected argument is the same as the component `props` option.
162
+ *
163
+ * Example runtime declaration:
164
+ * ```js
165
+ * // using Array syntax
166
+ * const props = defineProps(['foo', 'bar'])
167
+ * // using Object syntax
168
+ * const props = defineProps({
169
+ * foo: String,
170
+ * bar: {
171
+ * type: Number,
172
+ * required: true
173
+ * }
174
+ * })
175
+ * ```
176
+ *
177
+ * Equivalent type-based declaration:
178
+ * ```ts
179
+ * // will be compiled into equivalent runtime declarations
180
+ * const props = defineProps<{
181
+ * foo?: string
182
+ * bar: number
183
+ * }>()
184
+ * ```
185
+ *
186
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
187
+ *
188
+ * This is only usable inside `<script setup>`, is compiled away in the
189
+ * output and should **not** be actually called at runtime.
190
+ */
191
+ export declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{
192
+ [key in PropNames]?: any;
193
+ }>>;
194
+ export declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Prettify<Readonly<ExtractPropTypes<PP>>>;
195
+ export declare function defineProps<TypeProps>(): DefineProps<LooseRequired<TypeProps>, BooleanKey<TypeProps>>;
196
+ export type DefineProps<T, BKeys extends keyof T> = Readonly<T> & {
197
+ readonly [K in BKeys]-?: boolean;
198
+ };
199
+ type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? T[K] extends boolean | undefined ? T[K] extends never | undefined ? never : K : never : never;
200
+ /**
201
+ * Vue `<script setup>` compiler macro for declaring a component's emitted
202
+ * events. The expected argument is the same as the component `emits` option.
203
+ *
204
+ * Example runtime declaration:
205
+ * ```js
206
+ * const emit = defineEmits(['change', 'update'])
207
+ * ```
208
+ *
209
+ * Example type-based declaration:
210
+ * ```ts
211
+ * const emit = defineEmits<{
212
+ * // <eventName>: <expected arguments>
213
+ * change: []
214
+ * update: [value: number] // named tuple syntax
215
+ * }>()
216
+ *
217
+ * emit('change')
218
+ * emit('update', 1)
219
+ * ```
220
+ *
221
+ * This is only usable inside `<script setup>`, is compiled away in the
222
+ * output and should **not** be actually called at runtime.
223
+ *
224
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits}
225
+ */
226
+ export declare function defineEmits<EE extends string = string>(emitOptions: EE[]): EmitFn<EE[]>;
227
+ export declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions: E): EmitFn<E>;
228
+ export declare function defineEmits<T extends ComponentTypeEmits>(): T extends (...args: any[]) => any ? T : ShortEmits<T>;
229
+ export type ComponentTypeEmits = ((...args: any[]) => any) | Record<string, any>;
230
+ type RecordToUnion<T extends Record<string, any>> = T[keyof T];
231
+ type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{
232
+ [K in keyof T]: (evt: K, ...args: T[K]) => void;
233
+ }>>;
234
+ /**
235
+ * Vue `<script setup>` compiler macro for declaring a component's exposed
236
+ * instance properties when it is accessed by a parent component via template
237
+ * refs.
238
+ *
239
+ * `<script setup>` components are closed by default - i.e. variables inside
240
+ * the `<script setup>` scope is not exposed to parent unless explicitly exposed
241
+ * via `defineExpose`.
242
+ *
243
+ * This is only usable inside `<script setup>`, is compiled away in the
244
+ * output and should **not** be actually called at runtime.
245
+ *
246
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineexpose}
247
+ */
248
+ export declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
249
+ /**
250
+ * Vue `<script setup>` compiler macro for declaring a component's additional
251
+ * options. This should be used only for options that cannot be expressed via
252
+ * Composition API - e.g. `inheritAttrs`.
253
+ *
254
+ * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineoptions}
255
+ */
256
+ export declare function defineOptions<RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin>(options?: ComponentOptionsBase<{}, RawBindings, D, C, M, Mixin, Extends, {}> & {
257
+ /**
258
+ * props should be defined via defineProps().
259
+ */
260
+ props?: never;
261
+ /**
262
+ * emits should be defined via defineEmits().
263
+ */
264
+ emits?: never;
265
+ /**
266
+ * expose should be defined via defineExpose().
267
+ */
268
+ expose?: never;
269
+ /**
270
+ * slots should be defined via defineSlots().
271
+ */
272
+ slots?: never;
273
+ }): void;
274
+ export declare function defineSlots<S extends Record<string, any> = Record<string, any>>(): StrictUnwrapSlotsType<SlotsType<S>>;
275
+ export type ModelRef<T, M extends PropertyKey = string, G = T, S = T> = Ref<G, S> & [
276
+ ModelRef<T, M, G, S>,
277
+ Record<M, true | undefined>
278
+ ];
279
+ type DefineModelOptions<T = any, G = T, S = T> = {
280
+ get?: (v: T) => G;
281
+ set?: (v: S) => any;
282
+ };
283
+ /**
284
+ * Vue `<script setup>` compiler macro for declaring a
285
+ * two-way binding prop that can be consumed via `v-model` from the parent
286
+ * component. This will declare a prop with the same name and a corresponding
287
+ * `update:propName` event.
288
+ *
289
+ * If the first argument is a string, it will be used as the prop name;
290
+ * Otherwise the prop name will default to "modelValue". In both cases, you
291
+ * can also pass an additional object which will be used as the prop's options.
292
+ *
293
+ * The returned ref behaves differently depending on whether the parent
294
+ * provided the corresponding v-model props or not:
295
+ * - If yes, the returned ref's value will always be in sync with the parent
296
+ * prop.
297
+ * - If not, the returned ref will behave like a normal local ref.
298
+ *
299
+ * @example
300
+ * ```ts
301
+ * // default model (consumed via `v-model`)
302
+ * const modelValue = defineModel<string>()
303
+ * modelValue.value = "hello"
304
+ *
305
+ * // default model with options
306
+ * const modelValue = defineModel<string>({ required: true })
307
+ *
308
+ * // with specified name (consumed via `v-model:count`)
309
+ * const count = defineModel<number>('count')
310
+ * count.value++
311
+ *
312
+ * // with specified name and default value
313
+ * const count = defineModel<number>('count', { default: 0 })
314
+ * ```
315
+ */
316
+ export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options: ({
317
+ default: any;
318
+ } | {
319
+ required: true;
320
+ }) & PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T, M, G, S>;
321
+ export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(options?: PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
322
+ export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options: ({
323
+ default: any;
324
+ } | {
325
+ required: true;
326
+ }) & PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T, M, G, S>;
327
+ export declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options?: PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
328
+ type NotUndefined<T> = T extends undefined ? never : T;
329
+ type MappedOmit<T, K extends keyof any> = {
330
+ [P in keyof T as P extends K ? never : P]: T[P];
331
+ };
332
+ type InferDefaults<T> = {
333
+ [K in keyof T]?: InferDefault<T, T[K]>;
334
+ };
335
+ type NativeType = null | undefined | number | string | boolean | symbol | Function;
336
+ type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
337
+ type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & {
338
+ readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never;
339
+ } & {
340
+ readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean;
341
+ } : never;
342
+ /**
343
+ * Vue `<script setup>` compiler macro for providing props default values when
344
+ * using type-based `defineProps` declaration.
345
+ *
346
+ * Example usage:
347
+ * ```ts
348
+ * withDefaults(defineProps<{
349
+ * size?: number
350
+ * labels?: string[]
351
+ * }>(), {
352
+ * size: 3,
353
+ * labels: () => ['default label']
354
+ * })
355
+ * ```
356
+ *
357
+ * This is only usable inside `<script setup>`, is compiled away in the output
358
+ * and should **not** be actually called at runtime.
359
+ *
360
+ * @see {@link https://vuejs.org/guide/typescript/composition-api.html#typing-component-props}
361
+ */
362
+ export declare function withDefaults<T, BKeys extends keyof T, Defaults extends InferDefaults<T>>(props: DefineProps<T, BKeys>, defaults: Defaults): PropsWithDefaults<T, Defaults, BKeys>;
363
+ export declare function useSlots(): SetupContext['slots'];
364
+ export declare function useAttrs(): SetupContext['attrs'];
365
+
366
+ export type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
367
+ export type EmitsOptions = ObjectEmitsOptions | string[];
368
+ export type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? {
369
+ [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any;
370
+ } : T extends ObjectEmitsOptions ? {
371
+ [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends (...args: infer P) => any ? P : T[K] extends null ? any[] : never) => any;
372
+ } : {};
373
+ type TypeEmitsToOptions<T extends ComponentTypeEmits> = {
374
+ [K in keyof T & string]: T[K] extends [...args: infer Args] ? (...args: Args) => any : () => any;
375
+ } & (T extends (...args: any[]) => any ? ParametersToFns<OverloadParameters<T>> : {});
376
+ type ParametersToFns<T extends any[]> = {
377
+ [K in T[0]]: IsStringLiteral<K> extends true ? (...args: T extends [e: infer E, ...args: infer P] ? K extends E ? P : never : never) => any : never;
378
+ };
379
+ type IsStringLiteral<T> = T extends string ? string extends T ? false : true : false;
380
+ export type ShortEmitsToObject<E> = E extends Record<string, any[]> ? {
381
+ [K in keyof E]: (...args: E[K]) => any;
382
+ } : E;
383
+ export type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{
384
+ [key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : Options[key] extends any[] ? (event: key, ...args: Options[key]) => void : (event: key, ...args: any[]) => void;
385
+ }[Event]>;
386
+
387
+ /**
388
+ Runtime helper for applying directives to a vnode. Example usage:
389
+
390
+ const comp = resolveComponent('comp')
391
+ const foo = resolveDirective('foo')
392
+ const bar = resolveDirective('bar')
393
+
394
+ return withDirectives(h(comp), [
395
+ [foo, this.x],
396
+ [bar, this.y]
397
+ ])
398
+ */
399
+
400
+ export interface DirectiveBinding<Value = any, Modifiers extends string = string, Arg = any> {
401
+ instance: ComponentPublicInstance | Record<string, any> | null;
402
+ value: Value;
403
+ oldValue: Value | null;
404
+ arg?: Arg;
405
+ modifiers: DirectiveModifiers<Modifiers>;
406
+ dir: ObjectDirective<any, Value, Modifiers, Arg>;
407
+ }
408
+ export type DirectiveHook<HostElement = any, Prev = VNode<any, HostElement> | null, Value = any, Modifiers extends string = string, Arg = any> = (el: HostElement, binding: DirectiveBinding<Value, Modifiers, Arg>, vnode: VNode<any, HostElement>, prevVNode: Prev) => void;
409
+ type SSRDirectiveHook<Value = any, Modifiers extends string = string, Arg = any> = (binding: DirectiveBinding<Value, Modifiers, Arg>, vnode: VNode) => Data | undefined;
410
+ export interface ObjectDirective<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> {
411
+ created?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
412
+ beforeMount?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
413
+ mounted?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
414
+ beforeUpdate?: DirectiveHook<HostElement, VNode<any, HostElement>, Value, Modifiers, Arg>;
415
+ updated?: DirectiveHook<HostElement, VNode<any, HostElement>, Value, Modifiers, Arg>;
416
+ beforeUnmount?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
417
+ unmounted?: DirectiveHook<HostElement, null, Value, Modifiers, Arg>;
418
+ getSSRProps?: SSRDirectiveHook<Value, Modifiers, Arg>;
419
+ deep?: boolean;
420
+ }
421
+ export type FunctionDirective<HostElement = any, V = any, Modifiers extends string = string, Arg = any> = DirectiveHook<HostElement, any, V, Modifiers, Arg>;
422
+ export type Directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> = ObjectDirective<HostElement, Value, Modifiers, Arg> | FunctionDirective<HostElement, Value, Modifiers, Arg>;
423
+ export type DirectiveModifiers<K extends string = string> = Partial<Record<K, boolean>>;
424
+ export type DirectiveArguments = Array<[Directive | undefined] | [Directive | undefined, any] | [Directive | undefined, any, any] | [Directive | undefined, any, any, DirectiveModifiers]>;
425
+ /**
426
+ * Adds directives to a VNode.
427
+ */
428
+ export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
429
+
430
+ /**
431
+ * Custom properties added to component instances in any way and can be accessed through `this`
432
+ *
433
+ * @example
434
+ * Here is an example of adding a property `$router` to every component instance:
435
+ * ```ts
436
+ * import { createApp } from 'vue'
437
+ * import { Router, createRouter } from 'vue-router'
438
+ *
439
+ * declare module 'vue' {
440
+ * interface ComponentCustomProperties {
441
+ * $router: Router
442
+ * }
443
+ * }
444
+ *
445
+ * // effectively adding the router to every component instance
446
+ * const app = createApp({})
447
+ * const router = createRouter()
448
+ * app.config.globalProperties.$router = router
449
+ *
450
+ * const vm = app.mount('#app')
451
+ * // we can access the router from the instance
452
+ * vm.$router.push('/')
453
+ * ```
454
+ */
455
+ export interface ComponentCustomProperties {
456
+ }
457
+ type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
458
+ type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, infer D, infer C, infer M, infer Mixin, infer Extends, any, any, infer Defaults, any, any, any, any, any, any, any> ? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> & IntersectionMixin<Mixin> & IntersectionMixin<Extends> : never;
459
+ type ExtractMixin<T> = {
460
+ Mixin: MixinToOptionTypes<T>;
461
+ }[T extends ComponentOptionsMixin ? 'Mixin' : never];
462
+ type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType : UnionToIntersection<ExtractMixin<T>>;
463
+ type UnwrapMixinsType<T, Type extends OptionTypesKeys> = T extends OptionTypesType ? T[Type] : never;
464
+ type EnsureNonVoid<T> = T extends void ? {} : T;
465
+ type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
466
+ __isFragment?: never;
467
+ __isTeleport?: never;
468
+ __isSuspense?: never;
469
+ new (...args: any[]): T;
470
+ };
471
+ /**
472
+ * @deprecated This is no longer used internally, but exported and relied on by
473
+ * existing library types generated by vue-tsc.
474
+ */
475
+ export type CreateComponentPublicInstance<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S>, I, S>;
476
+ /**
477
+ * This is the same as `CreateComponentPublicInstance` but adds local components,
478
+ * global directives, exposed, and provide inference.
479
+ * It changes the arguments order so that we don't need to repeat mixin
480
+ * inference everywhere internally, but it has to be a new type to avoid
481
+ * breaking types that relies on previous arguments order (#10842)
482
+ */
483
+ export type CreateComponentPublicInstanceWithMixins<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, TypeRefs extends Data = {}, TypeEl extends Element = any, Provide extends ComponentProvideOptions = ComponentProvideOptions, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S, LC, Directives, Exposed, Provide>, I, S, Exposed, TypeRefs, TypeEl>;
484
+ type ExposedKeys<T, Exposed extends string & keyof T> = '' extends Exposed ? T : Pick<T, Exposed>;
485
+ export type ComponentPublicInstance<P = {}, // props type extracted from props option
486
+ B = {}, // raw bindings returned from setup()
487
+ D = {}, // return from data()
488
+ C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = '', TypeRefs extends Data = {}, TypeEl extends Element = any> = {
489
+ $: ComponentInternalInstance;
490
+ $data: D;
491
+ $props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;
492
+ $attrs: Data;
493
+ $refs: Data & TypeRefs;
494
+ $slots: UnwrapSlotsType<S>;
495
+ $root: ComponentPublicInstance | null;
496
+ $parent: ComponentPublicInstance | null;
497
+ $host: Element | null;
498
+ $emit: EmitFn<E>;
499
+ $el: TypeEl;
500
+ $options: Options & MergedComponentOptionsOverride;
501
+ $forceUpdate: () => void;
502
+ $nextTick: typeof nextTick;
503
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
504
+ } & ExposedKeys<IfAny<P, P, Readonly<Defaults> & Omit<P, keyof ShallowUnwrapRef<B> | keyof Defaults>> & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties & InjectToObject<I>, Exposed>;
505
+
506
+ declare enum LifecycleHooks {
507
+ BEFORE_CREATE = "bc",
508
+ CREATED = "c",
509
+ BEFORE_MOUNT = "bm",
510
+ MOUNTED = "m",
511
+ BEFORE_UPDATE = "bu",
512
+ UPDATED = "u",
513
+ BEFORE_UNMOUNT = "bum",
514
+ UNMOUNTED = "um",
515
+ DEACTIVATED = "da",
516
+ ACTIVATED = "a",
517
+ RENDER_TRIGGERED = "rtg",
518
+ RENDER_TRACKED = "rtc",
519
+ ERROR_CAPTURED = "ec",
520
+ SERVER_PREFETCH = "sp"
521
+ }
522
+
523
+ export interface SuspenseProps {
524
+ onResolve?: () => void;
525
+ onPending?: () => void;
526
+ onFallback?: () => void;
527
+ timeout?: string | number;
528
+ /**
529
+ * Allow suspense to be captured by parent suspense
530
+ *
531
+ * @default false
532
+ */
533
+ suspensible?: boolean;
534
+ }
535
+ declare const SuspenseImpl: {
536
+ name: string;
537
+ __isSuspense: boolean;
538
+ process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals): void;
539
+ hydrate: typeof hydrateSuspense;
540
+ normalize: typeof normalizeSuspenseChildren;
541
+ };
542
+ export declare const Suspense: {
543
+ __isSuspense: true;
544
+ new (): {
545
+ $props: VNodeProps & SuspenseProps;
546
+ $slots: {
547
+ default(): VNode[];
548
+ fallback(): VNode[];
549
+ };
550
+ };
551
+ };
552
+ export interface SuspenseBoundary {
553
+ vnode: VNode<RendererNode, RendererElement, SuspenseProps>;
554
+ parent: SuspenseBoundary | null;
555
+ parentComponent: ComponentInternalInstance | null;
556
+ namespace: ElementNamespace;
557
+ container: RendererElement;
558
+ hiddenContainer: RendererElement;
559
+ activeBranch: VNode | null;
560
+ pendingBranch: VNode | null;
561
+ deps: number;
562
+ pendingId: number;
563
+ timeout: number;
564
+ isInFallback: boolean;
565
+ isHydrating: boolean;
566
+ isUnmounted: boolean;
567
+ effects: Function[];
568
+ resolve(force?: boolean, sync?: boolean): void;
569
+ fallback(fallbackVNode: VNode): void;
570
+ move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void;
571
+ next(): RendererNode | null;
572
+ registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn, optimized: boolean): void;
573
+ unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;
574
+ }
575
+ declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
576
+ declare function normalizeSuspenseChildren(vnode: VNode): void;
577
+
578
+ export type RootHydrateFunction = (vnode: VNode<Node, Element>, container: (Element | ShadowRoot) & {
579
+ _vnode?: VNode;
580
+ }) => void;
581
+
582
+ type Hook<T = () => void> = T | T[];
583
+ export interface BaseTransitionProps<HostElement = RendererElement> {
584
+ mode?: 'in-out' | 'out-in' | 'default';
585
+ appear?: boolean;
586
+ persisted?: boolean;
587
+ onBeforeEnter?: Hook<(el: HostElement) => void>;
588
+ onEnter?: Hook<(el: HostElement, done: () => void) => void>;
589
+ onAfterEnter?: Hook<(el: HostElement) => void>;
590
+ onEnterCancelled?: Hook<(el: HostElement) => void>;
591
+ onBeforeLeave?: Hook<(el: HostElement) => void>;
592
+ onLeave?: Hook<(el: HostElement, done: () => void) => void>;
593
+ onAfterLeave?: Hook<(el: HostElement) => void>;
594
+ onLeaveCancelled?: Hook<(el: HostElement) => void>;
595
+ onBeforeAppear?: Hook<(el: HostElement) => void>;
596
+ onAppear?: Hook<(el: HostElement, done: () => void) => void>;
597
+ onAfterAppear?: Hook<(el: HostElement) => void>;
598
+ onAppearCancelled?: Hook<(el: HostElement) => void>;
599
+ }
600
+ export interface TransitionHooks<HostElement = RendererElement> {
601
+ mode: BaseTransitionProps['mode'];
602
+ persisted: boolean;
603
+ beforeEnter(el: HostElement): void;
604
+ enter(el: HostElement): void;
605
+ leave(el: HostElement, remove: () => void): void;
606
+ clone(vnode: VNode): TransitionHooks<HostElement>;
607
+ afterLeave?(): void;
608
+ delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void;
609
+ delayedLeave?(): void;
610
+ }
611
+ export interface TransitionState {
612
+ isMounted: boolean;
613
+ isLeaving: boolean;
614
+ isUnmounting: boolean;
615
+ leavingVNodes: Map<any, Record<string, VNode>>;
616
+ }
617
+ export declare function useTransitionState(): TransitionState;
618
+ export declare const BaseTransitionPropsValidators: Record<string, any>;
619
+ export declare const BaseTransition: {
620
+ new (): {
621
+ $props: BaseTransitionProps<any>;
622
+ $slots: {
623
+ default(): VNode[];
624
+ };
625
+ };
626
+ };
627
+ export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance, postClone?: (hooks: TransitionHooks) => void): TransitionHooks;
628
+ export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
629
+ export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode['key']): VNode[];
630
+
631
+ export interface Renderer<HostElement = RendererElement> {
632
+ render: RootRenderFunction<HostElement>;
633
+ createApp: CreateAppFunction<HostElement>;
634
+ }
635
+ export interface HydrationRenderer extends Renderer<Element | ShadowRoot> {
636
+ hydrate: RootHydrateFunction;
637
+ }
638
+ export type ElementNamespace = 'svg' | 'mathml' | undefined;
639
+ export type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement, namespace?: ElementNamespace) => void;
640
+ export interface RendererOptions<HostNode = RendererNode, HostElement = RendererElement> {
641
+ patchProp(el: HostElement, key: string, prevValue: any, nextValue: any, namespace?: ElementNamespace, parentComponent?: ComponentInternalInstance | null): void;
642
+ insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void;
643
+ remove(el: HostNode): void;
644
+ createElement(type: string, namespace?: ElementNamespace, isCustomizedBuiltIn?: string, vnodeProps?: (VNodeProps & {
645
+ [key: string]: any;
646
+ }) | null): HostElement;
647
+ createText(text: string): HostNode;
648
+ createComment(text: string): HostNode;
649
+ setText(node: HostNode, text: string): void;
650
+ setElementText(node: HostElement, text: string): void;
651
+ parentNode(node: HostNode): HostElement | null;
652
+ nextSibling(node: HostNode): HostNode | null;
653
+ querySelector?(selector: string): HostElement | null;
654
+ setScopeId?(el: HostElement, id: string): void;
655
+ cloneNode?(node: HostNode): HostNode;
656
+ insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, namespace: ElementNamespace, start?: HostNode | null, end?: HostNode | null): [HostNode, HostNode];
657
+ }
658
+ export interface RendererNode {
659
+ [key: string | symbol]: any;
660
+ }
661
+ export interface RendererElement extends RendererNode {
662
+ }
663
+ interface RendererInternals<HostNode = RendererNode, HostElement = RendererElement> {
664
+ p: PatchFn;
665
+ um: UnmountFn;
666
+ r: RemoveFn;
667
+ m: MoveFn;
668
+ mt: MountComponentFn;
669
+ mc: MountChildrenFn;
670
+ pc: PatchChildrenFn;
671
+ pbc: PatchBlockChildrenFn;
672
+ n: NextFn;
673
+ o: RendererOptions<HostNode, HostElement>;
674
+ }
675
+ type PatchFn = (n1: VNode | null, // null means this is a mount
676
+ n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, namespace?: ElementNamespace, slotScopeIds?: string[] | null, optimized?: boolean) => void;
677
+ type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
678
+ type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean) => void;
679
+ type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null) => void;
680
+ type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
681
+ type NextFn = (vnode: VNode) => RendererNode | null;
682
+ type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
683
+ type RemoveFn = (vnode: VNode) => void;
684
+ type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, optimized: boolean) => void;
685
+ type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, optimized: boolean) => void;
686
+ declare enum MoveType {
687
+ ENTER = 0,
688
+ LEAVE = 1,
689
+ REORDER = 2
690
+ }
691
+ /**
692
+ * The createRenderer function accepts two generic arguments:
693
+ * HostNode and HostElement, corresponding to Node and Element types in the
694
+ * host environment. For example, for runtime-dom, HostNode would be the DOM
695
+ * `Node` interface and HostElement would be the DOM `Element` interface.
696
+ *
697
+ * Custom renderers can pass in the platform specific types like this:
698
+ *
699
+ * ``` js
700
+ * const { render, createApp } = createRenderer<Node, Element>({
701
+ * patchProp,
702
+ * ...nodeOps
703
+ * })
704
+ * ```
705
+ */
706
+ export declare function createRenderer<HostNode = RendererNode, HostElement = RendererElement>(options: RendererOptions<HostNode, HostElement>): Renderer<HostElement>;
707
+ export declare function createHydrationRenderer(options: RendererOptions<Node, Element>): HydrationRenderer;
708
+
709
+ type MatchPattern = string | RegExp | (string | RegExp)[];
710
+ export interface KeepAliveProps {
711
+ include?: MatchPattern;
712
+ exclude?: MatchPattern;
713
+ max?: number | string;
714
+ }
715
+ export declare const KeepAlive: {
716
+ __isKeepAlive: true;
717
+ new (): {
718
+ $props: VNodeProps & KeepAliveProps;
719
+ $slots: {
720
+ default(): VNode[];
721
+ };
722
+ };
723
+ };
724
+ export declare function onActivated(hook: Function, target?: ComponentInternalInstance | null): void;
725
+ export declare function onDeactivated(hook: Function, target?: ComponentInternalInstance | null): void;
726
+
727
+ type CreateHook<T = any> = (hook: T, target?: ComponentInternalInstance | null) => void;
728
+ export declare const onBeforeMount: CreateHook;
729
+ export declare const onMounted: CreateHook;
730
+ export declare const onBeforeUpdate: CreateHook;
731
+ export declare const onUpdated: CreateHook;
732
+ export declare const onBeforeUnmount: CreateHook;
733
+ export declare const onUnmounted: CreateHook;
734
+ export declare const onServerPrefetch: CreateHook;
735
+ type DebuggerHook = (e: DebuggerEvent) => void;
736
+ export declare const onRenderTriggered: CreateHook<DebuggerHook>;
737
+ export declare const onRenderTracked: CreateHook<DebuggerHook>;
738
+ type ErrorCapturedHook<TError = unknown> = (err: TError, instance: ComponentPublicInstance | null, info: string) => boolean | void;
739
+ export declare function onErrorCaptured<TError = Error>(hook: ErrorCapturedHook<TError>, target?: ComponentInternalInstance | null): void;
740
+
741
+ declare enum DeprecationTypes$1 {
742
+ GLOBAL_MOUNT = "GLOBAL_MOUNT",
743
+ GLOBAL_MOUNT_CONTAINER = "GLOBAL_MOUNT_CONTAINER",
744
+ GLOBAL_EXTEND = "GLOBAL_EXTEND",
745
+ GLOBAL_PROTOTYPE = "GLOBAL_PROTOTYPE",
746
+ GLOBAL_SET = "GLOBAL_SET",
747
+ GLOBAL_DELETE = "GLOBAL_DELETE",
748
+ GLOBAL_OBSERVABLE = "GLOBAL_OBSERVABLE",
749
+ GLOBAL_PRIVATE_UTIL = "GLOBAL_PRIVATE_UTIL",
750
+ CONFIG_SILENT = "CONFIG_SILENT",
751
+ CONFIG_DEVTOOLS = "CONFIG_DEVTOOLS",
752
+ CONFIG_KEY_CODES = "CONFIG_KEY_CODES",
753
+ CONFIG_PRODUCTION_TIP = "CONFIG_PRODUCTION_TIP",
754
+ CONFIG_IGNORED_ELEMENTS = "CONFIG_IGNORED_ELEMENTS",
755
+ CONFIG_WHITESPACE = "CONFIG_WHITESPACE",
756
+ CONFIG_OPTION_MERGE_STRATS = "CONFIG_OPTION_MERGE_STRATS",
757
+ INSTANCE_SET = "INSTANCE_SET",
758
+ INSTANCE_DELETE = "INSTANCE_DELETE",
759
+ INSTANCE_DESTROY = "INSTANCE_DESTROY",
760
+ INSTANCE_EVENT_EMITTER = "INSTANCE_EVENT_EMITTER",
761
+ INSTANCE_EVENT_HOOKS = "INSTANCE_EVENT_HOOKS",
762
+ INSTANCE_CHILDREN = "INSTANCE_CHILDREN",
763
+ INSTANCE_LISTENERS = "INSTANCE_LISTENERS",
764
+ INSTANCE_SCOPED_SLOTS = "INSTANCE_SCOPED_SLOTS",
765
+ INSTANCE_ATTRS_CLASS_STYLE = "INSTANCE_ATTRS_CLASS_STYLE",
766
+ OPTIONS_DATA_FN = "OPTIONS_DATA_FN",
767
+ OPTIONS_DATA_MERGE = "OPTIONS_DATA_MERGE",
768
+ OPTIONS_BEFORE_DESTROY = "OPTIONS_BEFORE_DESTROY",
769
+ OPTIONS_DESTROYED = "OPTIONS_DESTROYED",
770
+ WATCH_ARRAY = "WATCH_ARRAY",
771
+ PROPS_DEFAULT_THIS = "PROPS_DEFAULT_THIS",
772
+ V_ON_KEYCODE_MODIFIER = "V_ON_KEYCODE_MODIFIER",
773
+ CUSTOM_DIR = "CUSTOM_DIR",
774
+ ATTR_FALSE_VALUE = "ATTR_FALSE_VALUE",
775
+ ATTR_ENUMERATED_COERCION = "ATTR_ENUMERATED_COERCION",
776
+ TRANSITION_CLASSES = "TRANSITION_CLASSES",
777
+ TRANSITION_GROUP_ROOT = "TRANSITION_GROUP_ROOT",
778
+ COMPONENT_ASYNC = "COMPONENT_ASYNC",
779
+ COMPONENT_FUNCTIONAL = "COMPONENT_FUNCTIONAL",
780
+ COMPONENT_V_MODEL = "COMPONENT_V_MODEL",
781
+ RENDER_FUNCTION = "RENDER_FUNCTION",
782
+ FILTERS = "FILTERS",
783
+ PRIVATE_APIS = "PRIVATE_APIS"
784
+ }
785
+ type CompatConfig = Partial<Record<DeprecationTypes$1, boolean | 'suppress-warning'>> & {
786
+ MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
787
+ };
788
+ declare function configureCompat(config: CompatConfig): void;
789
+
790
+ /**
791
+ * Interface for declaring custom options.
792
+ *
793
+ * @example
794
+ * ```ts
795
+ * declare module 'vue' {
796
+ * interface ComponentCustomOptions {
797
+ * beforeRouteUpdate?(
798
+ * to: Route,
799
+ * from: Route,
800
+ * next: () => void
801
+ * ): void
802
+ * }
803
+ * }
804
+ * ```
805
+ */
806
+ export interface ComponentCustomOptions {
807
+ }
808
+ export type RenderFunction = () => VNodeChild;
809
+ export interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions> extends LegacyOptions<Props, D, C, M, Mixin, Extends, I, II, Provide>, ComponentInternalOptions, ComponentCustomOptions {
810
+ setup?: (this: void, props: LooseRequired<Props & Prettify<UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, 'P'>>>, ctx: SetupContext<E, S>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
811
+ name?: string;
812
+ template?: string | object;
813
+ render?: Function;
814
+ components?: LC & Record<string, Component>;
815
+ directives?: Directives & Record<string, Directive>;
816
+ inheritAttrs?: boolean;
817
+ emits?: (E | EE[]) & ThisType<void>;
818
+ slots?: S;
819
+ expose?: Exposed[];
820
+ serverPrefetch?(): void | Promise<any>;
821
+ compilerOptions?: RuntimeCompilerOptions;
822
+ call?: (this: unknown, ...args: unknown[]) => never;
823
+ __isFragment?: never;
824
+ __isTeleport?: never;
825
+ __isSuspense?: never;
826
+ __defaults?: Defaults;
827
+ }
828
+ /**
829
+ * Subset of compiler options that makes sense for the runtime.
830
+ */
831
+ export interface RuntimeCompilerOptions {
832
+ isCustomElement?: (tag: string) => boolean;
833
+ whitespace?: 'preserve' | 'condense';
834
+ comments?: boolean;
835
+ delimiters?: [string, string];
836
+ }
837
+ export type ComponentOptions<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = any, M extends MethodOptions = any, Mixin extends ComponentOptionsMixin = any, Extends extends ComponentOptionsMixin = any, E extends EmitsOptions = any, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II, S, LC, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<{}, RawBindings, D, C, M, Mixin, Extends, E, Readonly<Props>, Defaults, false, I, S, LC, Directives>>;
838
+ export type ComponentOptionsMixin = ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
839
+ export type ComputedOptions = Record<string, ComputedGetter<any> | WritableComputedOptions<any>>;
840
+ export interface MethodOptions {
841
+ [key: string]: Function;
842
+ }
843
+ type ExtractComputedReturns<T extends any> = {
844
+ [key in keyof T]: T[key] extends {
845
+ get: (...args: any[]) => infer TReturn;
846
+ } ? TReturn : T[key] extends (...args: any[]) => infer TReturn ? TReturn : never;
847
+ };
848
+ type ObjectWatchOptionItem = {
849
+ handler: WatchCallback | string;
850
+ } & WatchOptions;
851
+ type WatchOptionItem = string | WatchCallback | ObjectWatchOptionItem;
852
+ type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[];
853
+ type ComponentWatchOptions = Record<string, ComponentWatchOptionItem>;
854
+ export type ComponentProvideOptions = ObjectProvideOptions | Function;
855
+ type ObjectProvideOptions = Record<string | symbol, unknown>;
856
+ export type ComponentInjectOptions = string[] | ObjectInjectOptions;
857
+ type ObjectInjectOptions = Record<string | symbol, string | symbol | {
858
+ from?: string | symbol;
859
+ default?: unknown;
860
+ }>;
861
+ type InjectToObject<T extends ComponentInjectOptions> = T extends string[] ? {
862
+ [K in T[number]]?: unknown;
863
+ } : T extends ObjectInjectOptions ? {
864
+ [K in keyof T]?: unknown;
865
+ } : never;
866
+ interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, I extends ComponentInjectOptions, II extends string, Provide extends ComponentProvideOptions = ComponentProvideOptions> {
867
+ compatConfig?: CompatConfig;
868
+ [key: string]: any;
869
+ data?: (this: CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, MethodOptions, Mixin, Extends>, vm: CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, MethodOptions, Mixin, Extends>) => D;
870
+ computed?: C;
871
+ methods?: M;
872
+ watch?: ComponentWatchOptions;
873
+ provide?: Provide;
874
+ inject?: I | II[];
875
+ filters?: Record<string, Function>;
876
+ mixins?: Mixin[];
877
+ extends?: Extends;
878
+ beforeCreate?(): any;
879
+ created?(): any;
880
+ beforeMount?(): any;
881
+ mounted?(): any;
882
+ beforeUpdate?(): any;
883
+ updated?(): any;
884
+ activated?(): any;
885
+ deactivated?(): any;
886
+ /** @deprecated use `beforeUnmount` instead */
887
+ beforeDestroy?(): any;
888
+ beforeUnmount?(): any;
889
+ /** @deprecated use `unmounted` instead */
890
+ destroyed?(): any;
891
+ unmounted?(): any;
892
+ renderTracked?: DebuggerHook;
893
+ renderTriggered?: DebuggerHook;
894
+ errorCaptured?: ErrorCapturedHook;
895
+ /**
896
+ * runtime compile only
897
+ * @deprecated use `compilerOptions.delimiters` instead.
898
+ */
899
+ delimiters?: [string, string];
900
+ /**
901
+ * #3468
902
+ *
903
+ * type-only, used to assist Mixin's type inference,
904
+ * TypeScript will try to simplify the inferred `Mixin` type,
905
+ * with the `__differentiator`, TypeScript won't be able to combine different mixins,
906
+ * because the `__differentiator` will be different
907
+ */
908
+ __differentiator?: keyof D | keyof C | keyof M;
909
+ }
910
+ type MergedHook<T = () => void> = T | T[];
911
+ type MergedComponentOptionsOverride = {
912
+ beforeCreate?: MergedHook;
913
+ created?: MergedHook;
914
+ beforeMount?: MergedHook;
915
+ mounted?: MergedHook;
916
+ beforeUpdate?: MergedHook;
917
+ updated?: MergedHook;
918
+ activated?: MergedHook;
919
+ deactivated?: MergedHook;
920
+ /** @deprecated use `beforeUnmount` instead */
921
+ beforeDestroy?: MergedHook;
922
+ beforeUnmount?: MergedHook;
923
+ /** @deprecated use `unmounted` instead */
924
+ destroyed?: MergedHook;
925
+ unmounted?: MergedHook;
926
+ renderTracked?: MergedHook<DebuggerHook>;
927
+ renderTriggered?: MergedHook<DebuggerHook>;
928
+ errorCaptured?: MergedHook<ErrorCapturedHook>;
929
+ };
930
+ type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M' | 'Defaults';
931
+ type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Defaults = {}> = {
932
+ P: P;
933
+ B: B;
934
+ D: D;
935
+ C: C;
936
+ M: M;
937
+ Defaults: Defaults;
938
+ };
939
+ /**
940
+ * @deprecated
941
+ */
942
+ export type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, TE extends ComponentTypeEmits = {}, ResolvedEmits extends EmitsOptions = {} extends E ? TypeEmitsToOptions<TE> : E, PE = Props & EmitsToProps<ResolvedEmits>> = ComponentOptionsBase<PE, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S, LC, Directives, Exposed, Provide> & {
943
+ props?: never;
944
+ /**
945
+ * @private for language-tools use only
946
+ */
947
+ __typeProps?: Props;
948
+ /**
949
+ * @private for language-tools use only
950
+ */
951
+ __typeEmits?: TE;
952
+ } & ThisType<CreateComponentPublicInstanceWithMixins<PE, RawBindings, D, C, M, Mixin, Extends, ResolvedEmits, EE, {}, false, I, S, LC, Directives, string>>;
953
+ /**
954
+ * @deprecated
955
+ */
956
+ export type ComponentOptionsWithArrayProps<PropNames extends string = string, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, Props = Prettify<Readonly<{
957
+ [key in PropNames]?: any;
958
+ } & EmitsToProps<E>>>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}, I, II, S, LC, Directives, Exposed, Provide> & {
959
+ props: PropNames[];
960
+ } & ThisType<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, {}, false, I, S, LC, Directives, string>>;
961
+ /**
962
+ * @deprecated
963
+ */
964
+ export type ComponentOptionsWithObjectProps<PropsOptions = ComponentObjectPropsOptions, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, Props = Prettify<Readonly<ExtractPropTypes<PropsOptions>> & Readonly<EmitsToProps<E>>>, Defaults = ExtractDefaultPropTypes<PropsOptions>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II, S, LC, Directives, Exposed, Provide> & {
965
+ props: PropsOptions & ThisType<void>;
966
+ } & ThisType<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, Defaults, false, I, S, LC, Directives>>;
967
+
968
+ interface InjectionConstraint<T> {
969
+ }
970
+ export type InjectionKey<T> = symbol & InjectionConstraint<T>;
971
+ export declare function provide<T, K = InjectionKey<T> | string | number>(key: K, value: K extends InjectionKey<infer V> ? V : T): void;
972
+ export declare function inject<T>(key: InjectionKey<T> | string): T | undefined;
973
+ export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T, treatDefaultAsFactory?: false): T;
974
+ export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T | (() => T), treatDefaultAsFactory: true): T;
975
+ /**
976
+ * Returns true if `inject()` can be used without warning about being called in the wrong place (e.g. outside of
977
+ * setup()). This is used by libraries that want to use `inject()` internally without triggering a warning to the end
978
+ * user. One example is `useRoute()` in `vue-router`.
979
+ */
980
+ export declare function hasInjectionContext(): boolean;
981
+
982
+ export type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
983
+ type ResolveProps<PropsOrPropOptions, E extends EmitsOptions> = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>);
984
+ export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = ResolveProps<PropsOrPropOptions, E>, Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any> = ComponentPublicInstanceConstructor<CreateComponentPublicInstanceWithMixins<Props, RawBindings, D, C, M, Mixin, Extends, E, PP, Defaults, MakeDefaultsOptional, {}, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, TypeRefs, TypeEl>> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, {}, string, S, LC & GlobalComponents, Directives & GlobalDirectives, Exposed, Provide> & PP;
985
+ export type DefineSetupFnComponent<P extends Record<string, any>, E extends EmitsOptions = {}, S extends SlotsType = SlotsType, Props = P & EmitsToProps<E>, PP = PublicProps> = new (props: Props & PP) => CreateComponentPublicInstanceWithMixins<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, E, PP, {}, false, {}, S>;
986
+ type ToResolvedProps<Props, Emits extends EmitsOptions> = Readonly<Props> & Readonly<EmitsToProps<Emits>>;
987
+ export declare function defineComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType = {}>(setup: (props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & {
988
+ props?: (keyof Props)[];
989
+ emits?: E | EE[];
990
+ slots?: S;
991
+ }): DefineSetupFnComponent<Props, E, S>;
992
+ export declare function defineComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType = {}>(setup: (props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & {
993
+ props?: ComponentObjectPropsOptions<Props>;
994
+ emits?: E | EE[];
995
+ slots?: S;
996
+ }): DefineSetupFnComponent<Props, E, S>;
997
+ export declare function defineComponent<TypeProps, RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, RuntimePropsKeys extends string = string, TypeEmits extends ComponentTypeEmits = {}, RuntimeEmitsOptions extends EmitsOptions = {}, RuntimeEmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, ResolvedEmits extends EmitsOptions = {} extends RuntimeEmitsOptions ? TypeEmitsToOptions<TypeEmits> : RuntimeEmitsOptions, InferredProps = IsKeyValues<TypeProps> extends true ? TypeProps : string extends RuntimePropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : {
998
+ [key in RuntimePropsKeys]?: any;
999
+ }, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any>(options: {
1000
+ props?: (RuntimePropsOptions & ThisType<void>) | RuntimePropsKeys[];
1001
+ /**
1002
+ * @private for language-tools use only
1003
+ */
1004
+ __typeProps?: TypeProps;
1005
+ /**
1006
+ * @private for language-tools use only
1007
+ */
1008
+ __typeEmits?: TypeEmits;
1009
+ /**
1010
+ * @private for language-tools use only
1011
+ */
1012
+ __typeRefs?: TypeRefs;
1013
+ /**
1014
+ * @private for language-tools use only
1015
+ */
1016
+ __typeEl?: TypeEl;
1017
+ } & ComponentOptionsBase<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, RuntimeEmitsKeys, {}, // Defaults
1018
+ InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<ToResolvedProps<InferredProps, ResolvedEmits>, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, {}, {}, false, InjectOptions, Slots, LocalComponents, Directives, string>>): DefineComponent<InferredProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, ResolvedEmits, RuntimeEmitsKeys, PublicProps, ToResolvedProps<InferredProps, ResolvedEmits>, ExtractDefaultPropTypes<RuntimePropsOptions>, Slots, LocalComponents, Directives, Exposed, Provide, unknown extends TypeProps ? true : false, TypeRefs, TypeEl>;
1019
+
1020
+ export interface App<HostElement = any> {
1021
+ version: string;
1022
+ config: AppConfig;
1023
+ use<Options extends unknown[]>(plugin: Plugin<Options>, ...options: NoInfer<Options>): this;
1024
+ use<Options>(plugin: Plugin<Options>, options: NoInfer<Options>): this;
1025
+ mixin(mixin: ComponentOptions): this;
1026
+ component(name: string): Component | undefined;
1027
+ component<T extends Component | DefineComponent>(name: string, component: T): this;
1028
+ directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any>(name: string): Directive<HostElement, Value, Modifiers, Arg> | undefined;
1029
+ directive<HostElement = any, Value = any, Modifiers extends string = string, Arg = any>(name: string, directive: Directive<HostElement, Value, Modifiers, Arg>): this;
1030
+ mount(rootContainer: HostElement | string,
1031
+ /**
1032
+ * @internal
1033
+ */
1034
+ isHydrate?: boolean,
1035
+ /**
1036
+ * @internal
1037
+ */
1038
+ namespace?: boolean | ElementNamespace,
1039
+ /**
1040
+ * @internal
1041
+ */
1042
+ vnode?: VNode): ComponentPublicInstance;
1043
+ unmount(): void;
1044
+ onUnmount(cb: () => void): void;
1045
+ provide<T, K = InjectionKey<T> | string | number>(key: K, value: K extends InjectionKey<infer V> ? V : T): this;
1046
+ /**
1047
+ * Runs a function with the app as active instance. This allows using of `inject()` within the function to get access
1048
+ * to variables provided via `app.provide()`.
1049
+ *
1050
+ * @param fn - function to run with the app as active instance
1051
+ */
1052
+ runWithContext<T>(fn: () => T): T;
1053
+ _uid: number;
1054
+ _component: ConcreteComponent;
1055
+ _props: Data | null;
1056
+ _container: HostElement | null;
1057
+ _context: AppContext;
1058
+ _instance: ComponentInternalInstance | null;
1059
+ /**
1060
+ * v2 compat only
1061
+ */
1062
+ filter?(name: string): Function | undefined;
1063
+ filter?(name: string, filter: Function): this;
1064
+ }
1065
+ export type OptionMergeFunction = (to: unknown, from: unknown) => any;
1066
+ export interface AppConfig {
1067
+ readonly isNativeTag: (tag: string) => boolean;
1068
+ performance: boolean;
1069
+ optionMergeStrategies: Record<string, OptionMergeFunction>;
1070
+ globalProperties: ComponentCustomProperties & Record<string, any>;
1071
+ errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void;
1072
+ warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void;
1073
+ /**
1074
+ * Options to pass to `@vue/compiler-dom`.
1075
+ * Only supported in runtime compiler build.
1076
+ */
1077
+ compilerOptions: RuntimeCompilerOptions;
1078
+ /**
1079
+ * @deprecated use config.compilerOptions.isCustomElement
1080
+ */
1081
+ isCustomElement?: (tag: string) => boolean;
1082
+ /**
1083
+ * TODO document for 3.5
1084
+ * Enable warnings for computed getters that recursively trigger itself.
1085
+ */
1086
+ warnRecursiveComputed?: boolean;
1087
+ /**
1088
+ * Whether to throw unhandled errors in production.
1089
+ * Default is `false` to avoid crashing on any error (and only logs it)
1090
+ * But in some cases, e.g. SSR, throwing might be more desirable.
1091
+ */
1092
+ throwUnhandledErrorInProduction?: boolean;
1093
+ /**
1094
+ * Prefix for all useId() calls within this app
1095
+ */
1096
+ idPrefix?: string;
1097
+ }
1098
+ export interface AppContext {
1099
+ app: App;
1100
+ config: AppConfig;
1101
+ mixins: ComponentOptions[];
1102
+ components: Record<string, Component>;
1103
+ directives: Record<string, Directive>;
1104
+ provides: Record<string | symbol, any>;
1105
+ }
1106
+ type PluginInstallFunction<Options = any[]> = Options extends unknown[] ? (app: App, ...options: Options) => any : (app: App, options: Options) => any;
1107
+ export type ObjectPlugin<Options = any[]> = {
1108
+ install: PluginInstallFunction<Options>;
1109
+ };
1110
+ export type FunctionPlugin<Options = any[]> = PluginInstallFunction<Options> & Partial<ObjectPlugin<Options>>;
1111
+ export type Plugin<Options = any[], P extends unknown[] = Options extends unknown[] ? Options : [Options]> = FunctionPlugin<P> | ObjectPlugin<P>;
1112
+ export type CreateAppFunction<HostElement> = (rootComponent: Component, rootProps?: Data | null) => App<HostElement>;
1113
+
1114
+ type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
1115
+ export interface TeleportProps {
1116
+ to: string | RendererElement | null | undefined;
1117
+ disabled?: boolean;
1118
+ defer?: boolean;
1119
+ }
1120
+ declare const TeleportImpl: {
1121
+ name: string;
1122
+ __isTeleport: boolean;
1123
+ process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
1124
+ remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: boolean): void;
1125
+ move: typeof moveTeleport;
1126
+ hydrate: typeof hydrateTeleport;
1127
+ };
1128
+ declare enum TeleportMoveTypes {
1129
+ TARGET_CHANGE = 0,
1130
+ TOGGLE = 1,// enable / disable
1131
+ REORDER = 2
1132
+ }
1133
+ declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, { o: { insert }, m: move }: RendererInternals, moveType?: TeleportMoveTypes): void;
1134
+ declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector, insert, createText }, }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
1135
+ export declare const Teleport: {
1136
+ __isTeleport: true;
1137
+ new (): {
1138
+ $props: VNodeProps & TeleportProps;
1139
+ $slots: {
1140
+ default(): VNode[];
1141
+ };
1142
+ };
1143
+ };
1144
+
1145
+ /**
1146
+ * @private
1147
+ */
1148
+ export declare function resolveComponent(name: string, maybeSelfReference?: boolean): ConcreteComponent | string;
1149
+ declare const NULL_DYNAMIC_COMPONENT: unique symbol;
1150
+ /**
1151
+ * @private
1152
+ */
1153
+ export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
1154
+ /**
1155
+ * @private
1156
+ */
1157
+ export declare function resolveDirective(name: string): Directive | undefined;
1158
+
1159
+ export declare const Fragment: {
1160
+ __isFragment: true;
1161
+ new (): {
1162
+ $props: VNodeProps;
1163
+ };
1164
+ };
1165
+ export declare const Text: unique symbol;
1166
+ export declare const Comment: unique symbol;
1167
+ export declare const Static: unique symbol;
1168
+ export type VNodeTypes = string | VNode | Component | typeof Text | typeof Static | typeof Comment | typeof Fragment | typeof Teleport | typeof TeleportImpl | typeof Suspense | typeof SuspenseImpl;
1169
+ export type VNodeRef = string | Ref | ((ref: Element | ComponentPublicInstance | null, refs: Record<string, any>) => void);
1170
+ type VNodeNormalizedRefAtom = {
1171
+ /**
1172
+ * component instance
1173
+ */
1174
+ i: ComponentInternalInstance;
1175
+ /**
1176
+ * Actual ref
1177
+ */
1178
+ r: VNodeRef;
1179
+ /**
1180
+ * setup ref key
1181
+ */
1182
+ k?: string;
1183
+ /**
1184
+ * refInFor marker
1185
+ */
1186
+ f?: boolean;
1187
+ };
1188
+ type VNodeNormalizedRef = VNodeNormalizedRefAtom | VNodeNormalizedRefAtom[];
1189
+ type VNodeMountHook = (vnode: VNode) => void;
1190
+ type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
1191
+ export type VNodeProps = {
1192
+ key?: PropertyKey;
1193
+ ref?: VNodeRef;
1194
+ ref_for?: boolean;
1195
+ ref_key?: string;
1196
+ onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[];
1197
+ onVnodeMounted?: VNodeMountHook | VNodeMountHook[];
1198
+ onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[];
1199
+ onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[];
1200
+ onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
1201
+ onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
1202
+ };
1203
+ type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
1204
+ export type VNodeArrayChildren = Array<VNodeArrayChildren | VNodeChildAtom>;
1205
+ export type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
1206
+ export type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | null;
1207
+ export interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraProps = {
1208
+ [key: string]: any;
1209
+ }> {
1210
+ type: VNodeTypes;
1211
+ props: (VNodeProps & ExtraProps) | null;
1212
+ key: PropertyKey | null;
1213
+ ref: VNodeNormalizedRef | null;
1214
+ /**
1215
+ * SFC only. This is assigned on vnode creation using currentScopeId
1216
+ * which is set alongside currentRenderingInstance.
1217
+ */
1218
+ scopeId: string | null;
1219
+ children: VNodeNormalizedChildren;
1220
+ component: ComponentInternalInstance | null;
1221
+ dirs: DirectiveBinding[] | null;
1222
+ transition: TransitionHooks<HostElement> | null;
1223
+ el: HostNode | null;
1224
+ placeholder: HostNode | null;
1225
+ anchor: HostNode | null;
1226
+ target: HostElement | null;
1227
+ targetStart: HostNode | null;
1228
+ targetAnchor: HostNode | null;
1229
+ suspense: SuspenseBoundary | null;
1230
+ shapeFlag: number;
1231
+ patchFlag: number;
1232
+ appContext: AppContext | null;
1233
+ }
1234
+ /**
1235
+ * Open a block.
1236
+ * This must be called before `createBlock`. It cannot be part of `createBlock`
1237
+ * because the children of the block are evaluated before `createBlock` itself
1238
+ * is called. The generated code typically looks like this:
1239
+ *
1240
+ * ```js
1241
+ * function render() {
1242
+ * return (openBlock(),createBlock('div', null, [...]))
1243
+ * }
1244
+ * ```
1245
+ * disableTracking is true when creating a v-for fragment block, since a v-for
1246
+ * fragment always diffs its children.
1247
+ *
1248
+ * @private
1249
+ */
1250
+ export declare function openBlock(disableTracking?: boolean): void;
1251
+ /**
1252
+ * Block tracking sometimes needs to be disabled, for example during the
1253
+ * creation of a tree that needs to be cached by v-once. The compiler generates
1254
+ * code like this:
1255
+ *
1256
+ * ``` js
1257
+ * _cache[1] || (
1258
+ * setBlockTracking(-1, true),
1259
+ * _cache[1] = createVNode(...),
1260
+ * setBlockTracking(1),
1261
+ * _cache[1]
1262
+ * )
1263
+ * ```
1264
+ *
1265
+ * @private
1266
+ */
1267
+ export declare function setBlockTracking(value: number, inVOnce?: boolean): void;
1268
+ /**
1269
+ * @private
1270
+ */
1271
+ export declare function createElementBlock(type: string | typeof Fragment, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[], shapeFlag?: number): VNode;
1272
+ /**
1273
+ * Create a block root vnode. Takes the same exact arguments as `createVNode`.
1274
+ * A block root keeps track of dynamic nodes within the block in the
1275
+ * `dynamicChildren` array.
1276
+ *
1277
+ * @private
1278
+ */
1279
+ export declare function createBlock(type: VNodeTypes | ClassComponent, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode;
1280
+ export declare function isVNode(value: any): value is VNode;
1281
+ declare let vnodeArgsTransformer: ((args: Parameters<typeof _createVNode>, instance: ComponentInternalInstance | null) => Parameters<typeof _createVNode>) | undefined;
1282
+ /**
1283
+ * Internal API for registering an arguments transform for createVNode
1284
+ * used for creating stubs in the test-utils
1285
+ * It is *internal* but needs to be exposed for test-utils to pick up proper
1286
+ * typings
1287
+ */
1288
+ export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
1289
+ export declare function createBaseVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode;
1290
+
1291
+ export declare const createVNode: typeof _createVNode;
1292
+ declare function _createVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, isBlockNode?: boolean): VNode;
1293
+ export declare function guardReactiveProps(props: (Data & VNodeProps) | null): (Data & VNodeProps) | null;
1294
+ export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean, cloneTransition?: boolean): VNode<T, U>;
1295
+ /**
1296
+ * @private
1297
+ */
1298
+ export declare function createTextVNode(text?: string, flag?: number): VNode;
1299
+ /**
1300
+ * @private
1301
+ */
1302
+ export declare function createStaticVNode(content: string, numberOfNodes: number): VNode;
1303
+ /**
1304
+ * @private
1305
+ */
1306
+ export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
1307
+ export declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
1308
+
1309
+ type Data = Record<string, unknown>;
1310
+ /**
1311
+ * Public utility type for extracting the instance type of a component.
1312
+ * Works with all valid component definition types. This is intended to replace
1313
+ * the usage of `InstanceType<typeof Comp>` which only works for
1314
+ * constructor-based component definition types.
1315
+ *
1316
+ * @example
1317
+ * ```ts
1318
+ * const MyComp = { ... }
1319
+ * declare const instance: ComponentInstance<typeof MyComp>
1320
+ * ```
1321
+ */
1322
+ export type ComponentInstance<T> = T extends {
1323
+ new (): ComponentPublicInstance;
1324
+ } ? InstanceType<T> : T extends FunctionalComponent<infer Props, infer Emits> ? ComponentPublicInstance<Props, {}, {}, {}, {}, ShortEmitsToObject<Emits>> : T extends Component<infer PropsOrInstance, infer RawBindings, infer D, infer C, infer M> ? PropsOrInstance extends {
1325
+ $props: unknown;
1326
+ } ? PropsOrInstance : ComponentPublicInstance<unknown extends PropsOrInstance ? {} : PropsOrInstance, unknown extends RawBindings ? {} : RawBindings, unknown extends D ? {} : D, C, M> : never;
1327
+ /**
1328
+ * For extending allowed non-declared props on components in TSX
1329
+ */
1330
+ export interface ComponentCustomProps {
1331
+ }
1332
+ /**
1333
+ * For globally defined Directives
1334
+ * Here is an example of adding a directive `VTooltip` as global directive:
1335
+ *
1336
+ * @example
1337
+ * ```ts
1338
+ * import VTooltip from 'v-tooltip'
1339
+ *
1340
+ * declare module '@vue/runtime-core' {
1341
+ * interface GlobalDirectives {
1342
+ * VTooltip
1343
+ * }
1344
+ * }
1345
+ * ```
1346
+ */
1347
+ export interface GlobalDirectives {
1348
+ }
1349
+ /**
1350
+ * For globally defined Components
1351
+ * Here is an example of adding a component `RouterView` as global component:
1352
+ *
1353
+ * @example
1354
+ * ```ts
1355
+ * import { RouterView } from 'vue-router'
1356
+ *
1357
+ * declare module '@vue/runtime-core' {
1358
+ * interface GlobalComponents {
1359
+ * RouterView
1360
+ * }
1361
+ * }
1362
+ * ```
1363
+ */
1364
+ export interface GlobalComponents {
1365
+ Teleport: DefineComponent<TeleportProps>;
1366
+ Suspense: DefineComponent<SuspenseProps>;
1367
+ KeepAlive: DefineComponent<KeepAliveProps>;
1368
+ BaseTransition: DefineComponent<BaseTransitionProps>;
1369
+ }
1370
+ /**
1371
+ * Default allowed non-declared props on component in TSX
1372
+ */
1373
+ export interface AllowedComponentProps {
1374
+ class?: unknown;
1375
+ style?: unknown;
1376
+ }
1377
+ interface ComponentInternalOptions {
1378
+ /**
1379
+ * Compat build only, for bailing out of certain compatibility behavior
1380
+ */
1381
+ __isBuiltIn?: boolean;
1382
+ /**
1383
+ * This one should be exposed so that devtools can make use of it
1384
+ */
1385
+ __file?: string;
1386
+ /**
1387
+ * name inferred from filename
1388
+ */
1389
+ __name?: string;
1390
+ }
1391
+ export interface FunctionalComponent<P = {}, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any, EE extends EmitsOptions = ShortEmitsToObject<E>> extends ComponentInternalOptions {
1392
+ (props: P & EmitsToProps<EE>, ctx: Omit<SetupContext<EE, IfAny<S, {}, SlotsType<S>>>, 'expose'>): any;
1393
+ props?: ComponentPropsOptions<P>;
1394
+ emits?: EE | (keyof EE)[];
1395
+ slots?: IfAny<S, Slots, SlotsType<S>>;
1396
+ inheritAttrs?: boolean;
1397
+ displayName?: string;
1398
+ compatConfig?: CompatConfig;
1399
+ }
1400
+ interface ClassComponent {
1401
+ new (...args: any[]): ComponentPublicInstance<any, any, any, any, any>;
1402
+ __vccOpts: ComponentOptions;
1403
+ }
1404
+ /**
1405
+ * Concrete component type matches its actual value: it's either an options
1406
+ * object, or a function. Use this where the code expects to work with actual
1407
+ * values, e.g. checking if its a function or not. This is mostly for internal
1408
+ * implementation code.
1409
+ */
1410
+ export type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, E, S>;
1411
+ /**
1412
+ * A type used in public APIs where a component type is expected.
1413
+ * The constructor type is an artificial type returned by defineComponent().
1414
+ */
1415
+ export type Component<PropsOrInstance = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, E extends EmitsOptions | Record<string, any[]> = {}, S extends Record<string, any> = any> = ConcreteComponent<PropsOrInstance, RawBindings, D, C, M, E, S> | ComponentPublicInstanceConstructor<PropsOrInstance>;
1416
+
1417
+ export type SetupContext<E = EmitsOptions, S extends SlotsType = {}> = E extends any ? {
1418
+ attrs: Data;
1419
+ slots: UnwrapSlotsType<S>;
1420
+ emit: EmitFn<E>;
1421
+ expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
1422
+ } : never;
1423
+ /**
1424
+ * We expose a subset of properties on the internal instance as they are
1425
+ * useful for advanced external libraries and tools.
1426
+ */
1427
+ export interface ComponentInternalInstance {
1428
+ uid: number;
1429
+ type: ConcreteComponent;
1430
+ parent: ComponentInternalInstance | null;
1431
+ root: ComponentInternalInstance;
1432
+ appContext: AppContext;
1433
+ /**
1434
+ * Vnode representing this component in its parent's vdom tree
1435
+ */
1436
+ vnode: VNode;
1437
+ /**
1438
+ * Root vnode of this component's own vdom tree
1439
+ */
1440
+ subTree: VNode;
1441
+ /**
1442
+ * Render effect instance
1443
+ */
1444
+ effect: ReactiveEffect;
1445
+ /**
1446
+ * Force update render effect
1447
+ */
1448
+ update: () => void;
1449
+ /**
1450
+ * Render effect job to be passed to scheduler (checks if dirty)
1451
+ */
1452
+ job: SchedulerJob;
1453
+ proxy: ComponentPublicInstance | null;
1454
+ exposed: Record<string, any> | null;
1455
+ exposeProxy: Record<string, any> | null;
1456
+ data: Data;
1457
+ props: Data;
1458
+ attrs: Data;
1459
+ slots: InternalSlots;
1460
+ refs: Data;
1461
+ emit: EmitFn;
1462
+ isMounted: boolean;
1463
+ isUnmounted: boolean;
1464
+ isDeactivated: boolean;
1465
+ }
1466
+ export declare const getCurrentInstance: () => ComponentInternalInstance | null;
1467
+ /**
1468
+ * For runtime-dom to register the compiler.
1469
+ * Note the exported method uses any to avoid d.ts relying on the compiler types.
1470
+ */
1471
+ export declare function registerRuntimeCompiler(_compile: any): void;
1472
+ export declare const isRuntimeOnly: () => boolean;
1473
+ export interface ComponentCustomElementInterface {
1474
+ }
1475
+
1476
+ type MaybeUndefined<T, I> = I extends true ? T | undefined : T;
1477
+ type MapSources<T, Immediate> = {
1478
+ [K in keyof T]: T[K] extends WatchSource<infer V> ? MaybeUndefined<V, Immediate> : T[K] extends object ? MaybeUndefined<T[K], Immediate> : never;
1479
+ };
1480
+ export interface WatchEffectOptions extends DebuggerOptions {
1481
+ flush?: 'pre' | 'post' | 'sync';
1482
+ }
1483
+ export interface WatchOptions<Immediate = boolean> extends WatchEffectOptions {
1484
+ immediate?: Immediate;
1485
+ deep?: boolean | number;
1486
+ once?: boolean;
1487
+ }
1488
+ export declare function watchEffect(effect: WatchEffect, options?: WatchEffectOptions): WatchHandle;
1489
+ export declare function watchPostEffect(effect: WatchEffect, options?: DebuggerOptions): WatchHandle;
1490
+ export declare function watchSyncEffect(effect: WatchEffect, options?: DebuggerOptions): WatchHandle;
1491
+ export type MultiWatchSources = (WatchSource<unknown> | object)[];
1492
+ export declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchHandle;
1493
+ export declare function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(sources: readonly [...T] | T, cb: [T] extends [ReactiveMarker] ? WatchCallback<T, MaybeUndefined<T, Immediate>> : WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchHandle;
1494
+ export declare function watch<T extends MultiWatchSources, Immediate extends Readonly<boolean> = false>(sources: [...T], cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchHandle;
1495
+ export declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchHandle;
1496
+
1497
+ /**
1498
+ * A lazy hydration strategy for async components.
1499
+ * @param hydrate - call this to perform the actual hydration.
1500
+ * @param forEachElement - iterate through the root elements of the component's
1501
+ * non-hydrated DOM, accounting for possible fragments.
1502
+ * @returns a teardown function to be called if the async component is unmounted
1503
+ * before it is hydrated. This can be used to e.g. remove DOM event
1504
+ * listeners.
1505
+ */
1506
+ export type HydrationStrategy = (hydrate: () => void, forEachElement: (cb: (el: Element) => any) => void) => (() => void) | void;
1507
+ export type HydrationStrategyFactory<Options> = (options?: Options) => HydrationStrategy;
1508
+ export declare const hydrateOnIdle: HydrationStrategyFactory<number>;
1509
+ export declare const hydrateOnVisible: HydrationStrategyFactory<IntersectionObserverInit>;
1510
+ export declare const hydrateOnMediaQuery: HydrationStrategyFactory<string>;
1511
+ export declare const hydrateOnInteraction: HydrationStrategyFactory<keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap>>;
1512
+
1513
+ type AsyncComponentResolveResult<T = Component> = T | {
1514
+ default: T;
1515
+ };
1516
+ export type AsyncComponentLoader<T = any> = () => Promise<AsyncComponentResolveResult<T>>;
1517
+ export interface AsyncComponentOptions<T = any> {
1518
+ loader: AsyncComponentLoader<T>;
1519
+ loadingComponent?: Component;
1520
+ errorComponent?: Component;
1521
+ delay?: number;
1522
+ timeout?: number;
1523
+ suspensible?: boolean;
1524
+ hydrate?: HydrationStrategy;
1525
+ onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => any;
1526
+ }
1527
+ export declare function defineAsyncComponent<T extends Component = {
1528
+ new (): ComponentPublicInstance;
1529
+ }>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
1530
+
1531
+ export declare function useModel<M extends PropertyKey, T extends Record<string, any>, K extends keyof T, G = T[K], S = T[K]>(props: T, name: K, options?: DefineModelOptions<T[K], G, S>): ModelRef<T[K], M, G, S>;
1532
+
1533
+ export type TemplateRef<T = unknown> = Readonly<ShallowRef<T | null>>;
1534
+ export declare function useTemplateRef<T = unknown, Keys extends string = string>(key: Keys): TemplateRef<T>;
1535
+
1536
+ export declare function useId(): string;
1537
+
1538
+ type RawProps = VNodeProps & {
1539
+ __v_isVNode?: never;
1540
+ [Symbol.iterator]?: never;
1541
+ } & Record<string, any>;
1542
+ type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
1543
+ interface Constructor<P = any> {
1544
+ __isFragment?: never;
1545
+ __isTeleport?: never;
1546
+ __isSuspense?: never;
1547
+ new (...args: any[]): {
1548
+ $props: P;
1549
+ };
1550
+ }
1551
+ type HTMLElementEventHandler = {
1552
+ [K in keyof HTMLElementEventMap as `on${Capitalize<K>}`]?: (ev: HTMLElementEventMap[K]) => any;
1553
+ };
1554
+ export declare function h<K extends keyof HTMLElementTagNameMap>(type: K, children?: RawChildren): VNode;
1555
+ export declare function h<K extends keyof HTMLElementTagNameMap>(type: K, props?: (RawProps & HTMLElementEventHandler) | null, children?: RawChildren | RawSlots): VNode;
1556
+ export declare function h(type: string, children?: RawChildren): VNode;
1557
+ export declare function h(type: string, props?: RawProps | null, children?: RawChildren | RawSlots): VNode;
1558
+ export declare function h(type: typeof Text | typeof Comment, children?: string | number | boolean): VNode;
1559
+ export declare function h(type: typeof Text | typeof Comment, props?: null, children?: string | number | boolean): VNode;
1560
+ export declare function h(type: typeof Fragment, children?: VNodeArrayChildren): VNode;
1561
+ export declare function h(type: typeof Fragment, props?: RawProps | null, children?: VNodeArrayChildren): VNode;
1562
+ export declare function h(type: typeof Teleport, props: RawProps & TeleportProps, children: RawChildren | RawSlots): VNode;
1563
+ export declare function h(type: typeof Suspense, children?: RawChildren): VNode;
1564
+ export declare function h(type: typeof Suspense, props?: (RawProps & SuspenseProps) | null, children?: RawChildren | RawSlots): VNode;
1565
+ export declare function h<P, E extends EmitsOptions = {}, S extends Record<string, any> = any>(type: FunctionalComponent<P, any, S, any>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | IfAny<S, RawSlots, S>): VNode;
1566
+ export declare function h(type: Component, children?: RawChildren): VNode;
1567
+ export declare function h<P>(type: ConcreteComponent | string, children?: RawChildren): VNode;
1568
+ export declare function h<P>(type: ConcreteComponent<P> | string, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren): VNode;
1569
+ export declare function h<P>(type: Component<P>, props?: (RawProps & P) | null, children?: RawChildren | RawSlots): VNode;
1570
+ export declare function h<P>(type: ComponentOptions<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
1571
+ export declare function h(type: Constructor, children?: RawChildren): VNode;
1572
+ export declare function h<P>(type: Constructor<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
1573
+ export declare function h(type: DefineComponent, children?: RawChildren): VNode;
1574
+ export declare function h<P>(type: DefineComponent<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
1575
+ export declare function h(type: string | Component, children?: RawChildren): VNode;
1576
+ export declare function h<P>(type: string | Component<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
1577
+
1578
+ export declare const ssrContextKey: unique symbol;
1579
+ export declare const useSSRContext: <T = Record<string, any>>() => T | undefined;
1580
+
1581
+ declare function warn$1(msg: string, ...args: any[]): void;
1582
+
1583
+ export declare enum ErrorCodes {
1584
+ SETUP_FUNCTION = 0,
1585
+ RENDER_FUNCTION = 1,
1586
+ NATIVE_EVENT_HANDLER = 5,
1587
+ COMPONENT_EVENT_HANDLER = 6,
1588
+ VNODE_HOOK = 7,
1589
+ DIRECTIVE_HOOK = 8,
1590
+ TRANSITION_HOOK = 9,
1591
+ APP_ERROR_HANDLER = 10,
1592
+ APP_WARN_HANDLER = 11,
1593
+ FUNCTION_REF = 12,
1594
+ ASYNC_COMPONENT_LOADER = 13,
1595
+ SCHEDULER = 14,
1596
+ COMPONENT_UPDATE = 15,
1597
+ APP_UNMOUNT_CLEANUP = 16
1598
+ }
1599
+ type ErrorTypes = LifecycleHooks | ErrorCodes | WatchErrorCodes;
1600
+ export declare function callWithErrorHandling(fn: Function, instance: ComponentInternalInstance | null | undefined, type: ErrorTypes, args?: unknown[]): any;
1601
+ export declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any;
1602
+ export declare function handleError(err: unknown, instance: ComponentInternalInstance | null | undefined, type: ErrorTypes, throwInDev?: boolean): void;
1603
+
1604
+ export declare function initCustomFormatter(): void;
1605
+
1606
+ interface AppRecord {
1607
+ id: number;
1608
+ app: App;
1609
+ version: string;
1610
+ types: Record<string, string | Symbol>;
1611
+ }
1612
+ interface DevtoolsHook {
1613
+ enabled?: boolean;
1614
+ emit: (event: string, ...payload: any[]) => void;
1615
+ on: (event: string, handler: Function) => void;
1616
+ once: (event: string, handler: Function) => void;
1617
+ off: (event: string, handler: Function) => void;
1618
+ appRecords: AppRecord[];
1619
+ /**
1620
+ * Added at https://github.com/vuejs/devtools/commit/f2ad51eea789006ab66942e5a27c0f0986a257f9
1621
+ * Returns whether the arg was buffered or not
1622
+ */
1623
+ cleanupBuffer?: (matchArg: unknown) => boolean;
1624
+ }
1625
+ declare function setDevtoolsHook$1(hook: DevtoolsHook, target: any): void;
1626
+
1627
+ type HMRComponent = ComponentOptions | ClassComponent;
1628
+ export interface HMRRuntime {
1629
+ createRecord: typeof createRecord;
1630
+ rerender: typeof rerender;
1631
+ reload: typeof reload;
1632
+ }
1633
+ declare function createRecord(id: string, initialDef: HMRComponent): boolean;
1634
+ declare function rerender(id: string, newRender?: Function): void;
1635
+ declare function reload(id: string, newComp: HMRComponent): void;
1636
+
1637
+ /**
1638
+ * Set scope id when creating hoisted vnodes.
1639
+ * @private compiler helper
1640
+ */
1641
+ export declare function pushScopeId(id: string | null): void;
1642
+ /**
1643
+ * Technically we no longer need this after 3.0.8 but we need to keep the same
1644
+ * API for backwards compat w/ code generated by compilers.
1645
+ * @private
1646
+ */
1647
+ export declare function popScopeId(): void;
1648
+ /**
1649
+ * Only for backwards compat
1650
+ * @private
1651
+ */
1652
+ export declare const withScopeId: (_id: string) => typeof withCtx;
1653
+ /**
1654
+ * Wrap a slot function to memoize current rendering instance
1655
+ * @private compiler helper
1656
+ */
1657
+ export declare function withCtx(fn: Function, ctx?: ComponentInternalInstance | null, isNonScopedSlot?: boolean): Function;
1658
+
1659
+ /**
1660
+ * v-for string
1661
+ * @private
1662
+ */
1663
+ export declare function renderList(source: string, renderItem: (value: string, index: number) => VNodeChild): VNodeChild[];
1664
+ /**
1665
+ * v-for number
1666
+ */
1667
+ export declare function renderList(source: number, renderItem: (value: number, index: number) => VNodeChild): VNodeChild[];
1668
+ /**
1669
+ * v-for array
1670
+ */
1671
+ export declare function renderList<T>(source: T[], renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
1672
+ /**
1673
+ * v-for iterable
1674
+ */
1675
+ export declare function renderList<T>(source: Iterable<T>, renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
1676
+ /**
1677
+ * v-for object
1678
+ */
1679
+ export declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key: string, index: number) => VNodeChild): VNodeChild[];
1680
+
1681
+ /**
1682
+ * For prefixing keys in v-on="obj" with "on"
1683
+ * @private
1684
+ */
1685
+ export declare function toHandlers(obj: Record<string, any>, preserveCaseIfNecessary?: boolean): Record<string, any>;
1686
+
1687
+ /**
1688
+ * Compiler runtime helper for rendering `<slot/>`
1689
+ * @private
1690
+ */
1691
+ export declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren, noSlotted?: boolean): VNode;
1692
+
1693
+ type SSRSlot = (...args: any[]) => VNode[] | undefined;
1694
+ interface CompiledSlotDescriptor {
1695
+ name: string;
1696
+ fn: SSRSlot;
1697
+ key?: string;
1698
+ }
1699
+ /**
1700
+ * Compiler runtime helper for creating dynamic slots object
1701
+ * @private
1702
+ */
1703
+ export declare function createSlots(slots: Record<string, SSRSlot>, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record<string, SSRSlot>;
1704
+
1705
+ export declare function withMemo(memo: any[], render: () => VNode<any, any>, cache: any[], index: number): VNode<any, any>;
1706
+ export declare function isMemoSame(cached: VNode, memo: any[]): boolean;
1707
+
1708
+ export type LegacyConfig = {
1709
+ /**
1710
+ * @deprecated `config.silent` option has been removed
1711
+ */
1712
+ silent?: boolean;
1713
+ /**
1714
+ * @deprecated use __VUE_PROD_DEVTOOLS__ compile-time feature flag instead
1715
+ * https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags
1716
+ */
1717
+ devtools?: boolean;
1718
+ /**
1719
+ * @deprecated use `config.isCustomElement` instead
1720
+ * https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-ignoredelements-is-now-config-iscustomelement
1721
+ */
1722
+ ignoredElements?: (string | RegExp)[];
1723
+ /**
1724
+ * @deprecated
1725
+ * https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html
1726
+ */
1727
+ keyCodes?: Record<string, number | number[]>;
1728
+ /**
1729
+ * @deprecated
1730
+ * https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-productiontip-removed
1731
+ */
1732
+ productionTip?: boolean;
1733
+ };
1734
+
1735
+ type LegacyPublicInstance = ComponentPublicInstance & LegacyPublicProperties;
1736
+ interface LegacyPublicProperties {
1737
+ $set<T extends Record<keyof any, any>, K extends keyof T>(target: T, key: K, value: T[K]): void;
1738
+ $delete<T extends Record<keyof any, any>, K extends keyof T>(target: T, key: K): void;
1739
+ $mount(el?: string | Element): this;
1740
+ $destroy(): void;
1741
+ $scopedSlots: Slots;
1742
+ $on(event: string | string[], fn: Function): this;
1743
+ $once(event: string, fn: Function): this;
1744
+ $off(event?: string | string[], fn?: Function): this;
1745
+ $children: LegacyPublicProperties[];
1746
+ $listeners: Record<string, Function | Function[]>;
1747
+ }
1748
+
1749
+ /**
1750
+ * @deprecated the default `Vue` export has been removed in Vue 3. The type for
1751
+ * the default export is provided only for migration purposes. Please use
1752
+ * named imports instead - e.g. `import { createApp } from 'vue'`.
1753
+ */
1754
+ export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
1755
+ configureCompat: typeof configureCompat;
1756
+ new (options?: ComponentOptions): LegacyPublicInstance;
1757
+ version: string;
1758
+ config: AppConfig & LegacyConfig;
1759
+ nextTick: typeof nextTick;
1760
+ use<Options extends unknown[]>(plugin: Plugin<Options>, ...options: Options): CompatVue;
1761
+ use<Options>(plugin: Plugin<Options>, options: Options): CompatVue;
1762
+ mixin(mixin: ComponentOptions): CompatVue;
1763
+ component(name: string): Component | undefined;
1764
+ component(name: string, component: Component): CompatVue;
1765
+ directive<T = any, V = any>(name: string): Directive<T, V> | undefined;
1766
+ directive<T = any, V = any>(name: string, directive: Directive<T, V>): CompatVue;
1767
+ compile(template: string): RenderFunction;
1768
+ /**
1769
+ * @deprecated Vue 3 no longer supports extending constructors.
1770
+ */
1771
+ extend: (options?: ComponentOptions) => CompatVue;
1772
+ /**
1773
+ * @deprecated Vue 3 no longer needs set() for adding new properties.
1774
+ */
1775
+ set(target: any, key: PropertyKey, value: any): void;
1776
+ /**
1777
+ * @deprecated Vue 3 no longer needs delete() for property deletions.
1778
+ */
1779
+ delete(target: any, key: PropertyKey): void;
1780
+ /**
1781
+ * @deprecated use `reactive` instead.
1782
+ */
1783
+ observable: typeof reactive;
1784
+ /**
1785
+ * @deprecated filters have been removed from Vue 3.
1786
+ */
1787
+ filter(name: string, arg?: any): null;
1788
+ };
1789
+
1790
+ export declare const version: string;
1791
+
1792
+ export declare const warn: typeof warn$1;
1793
+
1794
+ export declare const devtools: DevtoolsHook;
1795
+ export declare const setDevtoolsHook: typeof setDevtoolsHook$1;
1796
+
1797
+ declare module '@vue/reactivity' {
1798
+ interface RefUnwrapBailTypes {
1799
+ runtimeCoreBailTypes: VNode | {
1800
+ $: ComponentInternalInstance;
1801
+ };
1802
+ }
1803
+ }
1804
+
1805
+ export declare const DeprecationTypes: typeof DeprecationTypes$1;
1806
+
1807
+ export { createBaseVNode as createElementVNode, };
1808
+ export type { WatchEffectOptions as WatchOptionsBase };
1809
+ // Note: this file is auto concatenated to the end of the bundled d.ts during
1810
+ // build.
1811
+
1812
+ declare module '@vue/runtime-core' {
1813
+ export interface GlobalComponents {
1814
+ Teleport: DefineComponent<TeleportProps>
1815
+ Suspense: DefineComponent<SuspenseProps>
1816
+ KeepAlive: DefineComponent<KeepAliveProps>
1817
+ BaseTransition: DefineComponent<BaseTransitionProps>
1818
+ }
1819
+ }
1820
+
1821
+ // Note: this file is auto concatenated to the end of the bundled d.ts during
1822
+ // build.
1823
+ type _defineProps = typeof defineProps
1824
+ type _defineEmits = typeof defineEmits
1825
+ type _defineExpose = typeof defineExpose
1826
+ type _defineOptions = typeof defineOptions
1827
+ type _defineSlots = typeof defineSlots
1828
+ type _defineModel = typeof defineModel
1829
+ type _withDefaults = typeof withDefaults
1830
+
1831
+ declare global {
1832
+ const defineProps: _defineProps
1833
+ const defineEmits: _defineEmits
1834
+ const defineExpose: _defineExpose
1835
+ const defineOptions: _defineOptions
1836
+ const defineSlots: _defineSlots
1837
+ const defineModel: _defineModel
1838
+ const withDefaults: _withDefaults
1839
+ }