@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,753 @@
1
+ import { IfAny } from '@vue/shared';
2
+
3
+ export declare enum TrackOpTypes {
4
+ GET = "get",
5
+ HAS = "has",
6
+ ITERATE = "iterate"
7
+ }
8
+ export declare enum TriggerOpTypes {
9
+ SET = "set",
10
+ ADD = "add",
11
+ DELETE = "delete",
12
+ CLEAR = "clear"
13
+ }
14
+ export declare enum ReactiveFlags {
15
+ SKIP = "__v_skip",
16
+ IS_REACTIVE = "__v_isReactive",
17
+ IS_READONLY = "__v_isReadonly",
18
+ IS_SHALLOW = "__v_isShallow",
19
+ RAW = "__v_raw",
20
+ IS_REF = "__v_isRef"
21
+ }
22
+
23
+ export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>;
24
+ declare const ReactiveMarkerSymbol: unique symbol;
25
+ export interface ReactiveMarker {
26
+ [ReactiveMarkerSymbol]?: void;
27
+ }
28
+ export type Reactive<T> = UnwrapNestedRefs<T> & (T extends readonly any[] ? ReactiveMarker : {});
29
+ /**
30
+ * Returns a reactive proxy of the object.
31
+ *
32
+ * The reactive conversion is "deep": it affects all nested properties. A
33
+ * reactive object also deeply unwraps any properties that are refs while
34
+ * maintaining reactivity.
35
+ *
36
+ * @example
37
+ * ```js
38
+ * const obj = reactive({ count: 0 })
39
+ * ```
40
+ *
41
+ * @param target - The source object.
42
+ * @see {@link https://vuejs.org/api/reactivity-core.html#reactive}
43
+ */
44
+ export declare function reactive<T extends object>(target: T): Reactive<T>;
45
+ declare const ShallowReactiveMarker: unique symbol;
46
+ export type ShallowReactive<T> = T & {
47
+ [ShallowReactiveMarker]?: true;
48
+ };
49
+ /**
50
+ * Shallow version of {@link reactive}.
51
+ *
52
+ * Unlike {@link reactive}, there is no deep conversion: only root-level
53
+ * properties are reactive for a shallow reactive object. Property values are
54
+ * stored and exposed as-is - this also means properties with ref values will
55
+ * not be automatically unwrapped.
56
+ *
57
+ * @example
58
+ * ```js
59
+ * const state = shallowReactive({
60
+ * foo: 1,
61
+ * nested: {
62
+ * bar: 2
63
+ * }
64
+ * })
65
+ *
66
+ * // mutating state's own properties is reactive
67
+ * state.foo++
68
+ *
69
+ * // ...but does not convert nested objects
70
+ * isReactive(state.nested) // false
71
+ *
72
+ * // NOT reactive
73
+ * state.nested.bar++
74
+ * ```
75
+ *
76
+ * @param target - The source object.
77
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowreactive}
78
+ */
79
+ export declare function shallowReactive<T extends object>(target: T): ShallowReactive<T>;
80
+ type Primitive = string | number | boolean | bigint | symbol | undefined | null;
81
+ type Builtin = Primitive | Function | Date | Error | RegExp;
82
+ export type DeepReadonly<T> = T extends Builtin ? T : T extends Map<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends ReadonlyMap<infer K, infer V> ? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<DeepReadonly<K>, DeepReadonly<V>> : T extends Set<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends ReadonlySet<infer U> ? ReadonlySet<DeepReadonly<U>> : T extends WeakSet<infer U> ? WeakSet<DeepReadonly<U>> : T extends Promise<infer U> ? Promise<DeepReadonly<U>> : T extends Ref<infer U, unknown> ? Readonly<Ref<DeepReadonly<U>>> : T extends {} ? {
83
+ readonly [K in keyof T]: DeepReadonly<T[K]>;
84
+ } : Readonly<T>;
85
+ /**
86
+ * Takes an object (reactive or plain) or a ref and returns a readonly proxy to
87
+ * the original.
88
+ *
89
+ * A readonly proxy is deep: any nested property accessed will be readonly as
90
+ * well. It also has the same ref-unwrapping behavior as {@link reactive},
91
+ * except the unwrapped values will also be made readonly.
92
+ *
93
+ * @example
94
+ * ```js
95
+ * const original = reactive({ count: 0 })
96
+ *
97
+ * const copy = readonly(original)
98
+ *
99
+ * watchEffect(() => {
100
+ * // works for reactivity tracking
101
+ * console.log(copy.count)
102
+ * })
103
+ *
104
+ * // mutating original will trigger watchers relying on the copy
105
+ * original.count++
106
+ *
107
+ * // mutating the copy will fail and result in a warning
108
+ * copy.count++ // warning!
109
+ * ```
110
+ *
111
+ * @param target - The source object.
112
+ * @see {@link https://vuejs.org/api/reactivity-core.html#readonly}
113
+ */
114
+ export declare function readonly<T extends object>(target: T): DeepReadonly<UnwrapNestedRefs<T>>;
115
+ /**
116
+ * Shallow version of {@link readonly}.
117
+ *
118
+ * Unlike {@link readonly}, there is no deep conversion: only root-level
119
+ * properties are made readonly. Property values are stored and exposed as-is -
120
+ * this also means properties with ref values will not be automatically
121
+ * unwrapped.
122
+ *
123
+ * @example
124
+ * ```js
125
+ * const state = shallowReadonly({
126
+ * foo: 1,
127
+ * nested: {
128
+ * bar: 2
129
+ * }
130
+ * })
131
+ *
132
+ * // mutating state's own properties will fail
133
+ * state.foo++
134
+ *
135
+ * // ...but works on nested objects
136
+ * isReadonly(state.nested) // false
137
+ *
138
+ * // works
139
+ * state.nested.bar++
140
+ * ```
141
+ *
142
+ * @param target - The source object.
143
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowreadonly}
144
+ */
145
+ export declare function shallowReadonly<T extends object>(target: T): Readonly<T>;
146
+ /**
147
+ * Checks if an object is a proxy created by {@link reactive} or
148
+ * {@link shallowReactive} (or {@link ref} in some cases).
149
+ *
150
+ * @example
151
+ * ```js
152
+ * isReactive(reactive({})) // => true
153
+ * isReactive(readonly(reactive({}))) // => true
154
+ * isReactive(ref({}).value) // => true
155
+ * isReactive(readonly(ref({})).value) // => true
156
+ * isReactive(ref(true)) // => false
157
+ * isReactive(shallowRef({}).value) // => false
158
+ * isReactive(shallowReactive({})) // => true
159
+ * ```
160
+ *
161
+ * @param value - The value to check.
162
+ * @see {@link https://vuejs.org/api/reactivity-utilities.html#isreactive}
163
+ */
164
+ export declare function isReactive(value: unknown): boolean;
165
+ /**
166
+ * Checks whether the passed value is a readonly object. The properties of a
167
+ * readonly object can change, but they can't be assigned directly via the
168
+ * passed object.
169
+ *
170
+ * The proxies created by {@link readonly} and {@link shallowReadonly} are
171
+ * both considered readonly, as is a computed ref without a set function.
172
+ *
173
+ * @param value - The value to check.
174
+ * @see {@link https://vuejs.org/api/reactivity-utilities.html#isreadonly}
175
+ */
176
+ export declare function isReadonly(value: unknown): boolean;
177
+ export declare function isShallow(value: unknown): boolean;
178
+ /**
179
+ * Checks if an object is a proxy created by {@link reactive},
180
+ * {@link readonly}, {@link shallowReactive} or {@link shallowReadonly}.
181
+ *
182
+ * @param value - The value to check.
183
+ * @see {@link https://vuejs.org/api/reactivity-utilities.html#isproxy}
184
+ */
185
+ export declare function isProxy(value: any): boolean;
186
+ /**
187
+ * Returns the raw, original object of a Vue-created proxy.
188
+ *
189
+ * `toRaw()` can return the original object from proxies created by
190
+ * {@link reactive}, {@link readonly}, {@link shallowReactive} or
191
+ * {@link shallowReadonly}.
192
+ *
193
+ * This is an escape hatch that can be used to temporarily read without
194
+ * incurring proxy access / tracking overhead or write without triggering
195
+ * changes. It is **not** recommended to hold a persistent reference to the
196
+ * original object. Use with caution.
197
+ *
198
+ * @example
199
+ * ```js
200
+ * const foo = {}
201
+ * const reactiveFoo = reactive(foo)
202
+ *
203
+ * console.log(toRaw(reactiveFoo) === foo) // true
204
+ * ```
205
+ *
206
+ * @param observed - The object for which the "raw" value is requested.
207
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#toraw}
208
+ */
209
+ export declare function toRaw<T>(observed: T): T;
210
+ export type Raw<T> = T & {
211
+ [RawSymbol]?: true;
212
+ };
213
+ /**
214
+ * Marks an object so that it will never be converted to a proxy. Returns the
215
+ * object itself.
216
+ *
217
+ * @example
218
+ * ```js
219
+ * const foo = markRaw({})
220
+ * console.log(isReactive(reactive(foo))) // false
221
+ *
222
+ * // also works when nested inside other reactive objects
223
+ * const bar = reactive({ foo })
224
+ * console.log(isReactive(bar.foo)) // false
225
+ * ```
226
+ *
227
+ * **Warning:** `markRaw()` together with the shallow APIs such as
228
+ * {@link shallowReactive} allow you to selectively opt-out of the default
229
+ * deep reactive/readonly conversion and embed raw, non-proxied objects in your
230
+ * state graph.
231
+ *
232
+ * @param value - The object to be marked as "raw".
233
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#markraw}
234
+ */
235
+ export declare function markRaw<T extends object>(value: T): Raw<T>;
236
+ /**
237
+ * Returns a reactive proxy of the given value (if possible).
238
+ *
239
+ * If the given value is not an object, the original value itself is returned.
240
+ *
241
+ * @param value - The value for which a reactive proxy shall be created.
242
+ */
243
+ export declare const toReactive: <T extends unknown>(value: T) => T;
244
+ /**
245
+ * Returns a readonly proxy of the given value (if possible).
246
+ *
247
+ * If the given value is not an object, the original value itself is returned.
248
+ *
249
+ * @param value - The value for which a readonly proxy shall be created.
250
+ */
251
+ export declare const toReadonly: <T extends unknown>(value: T) => DeepReadonly<T>;
252
+
253
+ export type EffectScheduler = (...args: any[]) => any;
254
+ export type DebuggerEvent = {
255
+ effect: Subscriber;
256
+ } & DebuggerEventExtraInfo;
257
+ export type DebuggerEventExtraInfo = {
258
+ target: object;
259
+ type: TrackOpTypes | TriggerOpTypes;
260
+ key: any;
261
+ newValue?: any;
262
+ oldValue?: any;
263
+ oldTarget?: Map<any, any> | Set<any>;
264
+ };
265
+ export interface DebuggerOptions {
266
+ onTrack?: (event: DebuggerEvent) => void;
267
+ onTrigger?: (event: DebuggerEvent) => void;
268
+ }
269
+ export interface ReactiveEffectOptions extends DebuggerOptions {
270
+ scheduler?: EffectScheduler;
271
+ allowRecurse?: boolean;
272
+ onStop?: () => void;
273
+ }
274
+ export interface ReactiveEffectRunner<T = any> {
275
+ (): T;
276
+ effect: ReactiveEffect;
277
+ }
278
+ export declare enum EffectFlags {
279
+ /**
280
+ * ReactiveEffect only
281
+ */
282
+ ACTIVE = 1,
283
+ RUNNING = 2,
284
+ TRACKING = 4,
285
+ NOTIFIED = 8,
286
+ DIRTY = 16,
287
+ ALLOW_RECURSE = 32,
288
+ PAUSED = 64,
289
+ EVALUATED = 128
290
+ }
291
+ /**
292
+ * Subscriber is a type that tracks (or subscribes to) a list of deps.
293
+ */
294
+ interface Subscriber extends DebuggerOptions {
295
+ }
296
+ export declare class ReactiveEffect<T = any> implements Subscriber, ReactiveEffectOptions {
297
+ fn: () => T;
298
+ scheduler?: EffectScheduler;
299
+ onStop?: () => void;
300
+ onTrack?: (event: DebuggerEvent) => void;
301
+ onTrigger?: (event: DebuggerEvent) => void;
302
+ constructor(fn: () => T);
303
+ pause(): void;
304
+ resume(): void;
305
+ run(): T;
306
+ stop(): void;
307
+ trigger(): void;
308
+ get dirty(): boolean;
309
+ }
310
+ export declare function effect<T = any>(fn: () => T, options?: ReactiveEffectOptions): ReactiveEffectRunner<T>;
311
+ /**
312
+ * Stops the effect associated with the given runner.
313
+ *
314
+ * @param runner - Association with the effect to stop tracking.
315
+ */
316
+ export declare function stop(runner: ReactiveEffectRunner): void;
317
+ /**
318
+ * Temporarily pauses tracking.
319
+ */
320
+ export declare function pauseTracking(): void;
321
+ /**
322
+ * Re-enables effect tracking (if it was paused).
323
+ */
324
+ export declare function enableTracking(): void;
325
+ /**
326
+ * Resets the previous global effect tracking state.
327
+ */
328
+ export declare function resetTracking(): void;
329
+ /**
330
+ * Registers a cleanup function for the current active effect.
331
+ * The cleanup function is called right before the next effect run, or when the
332
+ * effect is stopped.
333
+ *
334
+ * Throws a warning if there is no current active effect. The warning can be
335
+ * suppressed by passing `true` to the second argument.
336
+ *
337
+ * @param fn - the cleanup function to be registered
338
+ * @param failSilently - if `true`, will not throw warning when called without
339
+ * an active effect.
340
+ */
341
+ export declare function onEffectCleanup(fn: () => void, failSilently?: boolean): void;
342
+
343
+ declare const ComputedRefSymbol: unique symbol;
344
+ declare const WritableComputedRefSymbol: unique symbol;
345
+ interface BaseComputedRef<T, S = T> extends Ref<T, S> {
346
+ [ComputedRefSymbol]: true;
347
+ /**
348
+ * @deprecated computed no longer uses effect
349
+ */
350
+ effect: ComputedRefImpl;
351
+ }
352
+ export interface ComputedRef<T = any> extends BaseComputedRef<T> {
353
+ readonly value: T;
354
+ }
355
+ export interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
356
+ [WritableComputedRefSymbol]: true;
357
+ }
358
+ export type ComputedGetter<T> = (oldValue?: T) => T;
359
+ export type ComputedSetter<T> = (newValue: T) => void;
360
+ export interface WritableComputedOptions<T, S = T> {
361
+ get: ComputedGetter<T>;
362
+ set: ComputedSetter<S>;
363
+ }
364
+ /**
365
+ * @private exported by @vue/reactivity for Vue core use, but not exported from
366
+ * the main vue package
367
+ */
368
+ export declare class ComputedRefImpl<T = any> implements Subscriber {
369
+ fn: ComputedGetter<T>;
370
+ private readonly setter;
371
+ effect: this;
372
+ onTrack?: (event: DebuggerEvent) => void;
373
+ onTrigger?: (event: DebuggerEvent) => void;
374
+ constructor(fn: ComputedGetter<T>, setter: ComputedSetter<T> | undefined, isSSR: boolean);
375
+ get value(): T;
376
+ set value(newValue: T);
377
+ }
378
+ /**
379
+ * Takes a getter function and returns a readonly reactive ref object for the
380
+ * returned value from the getter. It can also take an object with get and set
381
+ * functions to create a writable ref object.
382
+ *
383
+ * @example
384
+ * ```js
385
+ * // Creating a readonly computed ref:
386
+ * const count = ref(1)
387
+ * const plusOne = computed(() => count.value + 1)
388
+ *
389
+ * console.log(plusOne.value) // 2
390
+ * plusOne.value++ // error
391
+ * ```
392
+ *
393
+ * ```js
394
+ * // Creating a writable computed ref:
395
+ * const count = ref(1)
396
+ * const plusOne = computed({
397
+ * get: () => count.value + 1,
398
+ * set: (val) => {
399
+ * count.value = val - 1
400
+ * }
401
+ * })
402
+ *
403
+ * plusOne.value = 1
404
+ * console.log(count.value) // 0
405
+ * ```
406
+ *
407
+ * @param getter - Function that produces the next value.
408
+ * @param debugOptions - For debugging. See {@link https://vuejs.org/guide/extras/reactivity-in-depth.html#computed-debugging}.
409
+ * @see {@link https://vuejs.org/api/reactivity-core.html#computed}
410
+ */
411
+ export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
412
+ export declare function computed<T, S = T>(options: WritableComputedOptions<T, S>, debugOptions?: DebuggerOptions): WritableComputedRef<T, S>;
413
+
414
+ declare const RefSymbol: unique symbol;
415
+ declare const RawSymbol: unique symbol;
416
+ export interface Ref<T = any, S = T> {
417
+ get value(): T;
418
+ set value(_: S);
419
+ /**
420
+ * Type differentiator only.
421
+ * We need this to be in public d.ts but don't want it to show up in IDE
422
+ * autocomplete, so we use a private Symbol instead.
423
+ */
424
+ [RefSymbol]: true;
425
+ }
426
+ /**
427
+ * Checks if a value is a ref object.
428
+ *
429
+ * @param r - The value to inspect.
430
+ * @see {@link https://vuejs.org/api/reactivity-utilities.html#isref}
431
+ */
432
+ export declare function isRef<T>(r: Ref<T> | unknown): r is Ref<T>;
433
+ /**
434
+ * Takes an inner value and returns a reactive and mutable ref object, which
435
+ * has a single property `.value` that points to the inner value.
436
+ *
437
+ * @param value - The object to wrap in the ref.
438
+ * @see {@link https://vuejs.org/api/reactivity-core.html#ref}
439
+ */
440
+ export declare function ref<T>(value: T): [T] extends [Ref] ? IfAny<T, Ref<T>, T> : Ref<UnwrapRef<T>, UnwrapRef<T> | T>;
441
+ export declare function ref<T = any>(): Ref<T | undefined>;
442
+ declare const ShallowRefMarker: unique symbol;
443
+ export type ShallowRef<T = any, S = T> = Ref<T, S> & {
444
+ [ShallowRefMarker]?: true;
445
+ };
446
+ /**
447
+ * Shallow version of {@link ref}.
448
+ *
449
+ * @example
450
+ * ```js
451
+ * const state = shallowRef({ count: 1 })
452
+ *
453
+ * // does NOT trigger change
454
+ * state.value.count = 2
455
+ *
456
+ * // does trigger change
457
+ * state.value = { count: 2 }
458
+ * ```
459
+ *
460
+ * @param value - The "inner value" for the shallow ref.
461
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#shallowref}
462
+ */
463
+ export declare function shallowRef<T>(value: T): Ref extends T ? T extends Ref ? IfAny<T, ShallowRef<T>, T> : ShallowRef<T> : ShallowRef<T>;
464
+ export declare function shallowRef<T = any>(): ShallowRef<T | undefined>;
465
+ /**
466
+ * Force trigger effects that depends on a shallow ref. This is typically used
467
+ * after making deep mutations to the inner value of a shallow ref.
468
+ *
469
+ * @example
470
+ * ```js
471
+ * const shallow = shallowRef({
472
+ * greet: 'Hello, world'
473
+ * })
474
+ *
475
+ * // Logs "Hello, world" once for the first run-through
476
+ * watchEffect(() => {
477
+ * console.log(shallow.value.greet)
478
+ * })
479
+ *
480
+ * // This won't trigger the effect because the ref is shallow
481
+ * shallow.value.greet = 'Hello, universe'
482
+ *
483
+ * // Logs "Hello, universe"
484
+ * triggerRef(shallow)
485
+ * ```
486
+ *
487
+ * @param ref - The ref whose tied effects shall be executed.
488
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#triggerref}
489
+ */
490
+ export declare function triggerRef(ref: Ref): void;
491
+ export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
492
+ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T);
493
+ /**
494
+ * Returns the inner value if the argument is a ref, otherwise return the
495
+ * argument itself. This is a sugar function for
496
+ * `val = isRef(val) ? val.value : val`.
497
+ *
498
+ * @example
499
+ * ```js
500
+ * function useFoo(x: number | Ref<number>) {
501
+ * const unwrapped = unref(x)
502
+ * // unwrapped is guaranteed to be number now
503
+ * }
504
+ * ```
505
+ *
506
+ * @param ref - Ref or plain value to be converted into the plain value.
507
+ * @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
508
+ */
509
+ export declare function unref<T>(ref: MaybeRef<T> | ComputedRef<T>): T;
510
+ /**
511
+ * Normalizes values / refs / getters to values.
512
+ * This is similar to {@link unref}, except that it also normalizes getters.
513
+ * If the argument is a getter, it will be invoked and its return value will
514
+ * be returned.
515
+ *
516
+ * @example
517
+ * ```js
518
+ * toValue(1) // 1
519
+ * toValue(ref(1)) // 1
520
+ * toValue(() => 1) // 1
521
+ * ```
522
+ *
523
+ * @param source - A getter, an existing ref, or a non-function value.
524
+ * @see {@link https://vuejs.org/api/reactivity-utilities.html#tovalue}
525
+ */
526
+ export declare function toValue<T>(source: MaybeRefOrGetter<T>): T;
527
+ /**
528
+ * Returns a proxy for the given object that shallowly unwraps properties that
529
+ * are refs. If the object already is reactive, it's returned as-is. If not, a
530
+ * new reactive proxy is created.
531
+ *
532
+ * @param objectWithRefs - Either an already-reactive object or a simple object
533
+ * that contains refs.
534
+ */
535
+ export declare function proxyRefs<T extends object>(objectWithRefs: T): ShallowUnwrapRef<T>;
536
+ export type CustomRefFactory<T> = (track: () => void, trigger: () => void) => {
537
+ get: () => T;
538
+ set: (value: T) => void;
539
+ };
540
+ /**
541
+ * Creates a customized ref with explicit control over its dependency tracking
542
+ * and updates triggering.
543
+ *
544
+ * @param factory - The function that receives the `track` and `trigger` callbacks.
545
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#customref}
546
+ */
547
+ export declare function customRef<T>(factory: CustomRefFactory<T>): Ref<T>;
548
+ export type ToRefs<T = any> = {
549
+ [K in keyof T]: ToRef<T[K]>;
550
+ };
551
+ /**
552
+ * Converts a reactive object to a plain object where each property of the
553
+ * resulting object is a ref pointing to the corresponding property of the
554
+ * original object. Each individual ref is created using {@link toRef}.
555
+ *
556
+ * @param object - Reactive object to be made into an object of linked refs.
557
+ * @see {@link https://vuejs.org/api/reactivity-utilities.html#torefs}
558
+ */
559
+ export declare function toRefs<T extends object>(object: T): ToRefs<T>;
560
+ export type ToRef<T> = IfAny<T, Ref<T>, [T] extends [Ref] ? T : Ref<T>>;
561
+ /**
562
+ * Used to normalize values / refs / getters into refs.
563
+ *
564
+ * @example
565
+ * ```js
566
+ * // returns existing refs as-is
567
+ * toRef(existingRef)
568
+ *
569
+ * // creates a ref that calls the getter on .value access
570
+ * toRef(() => props.foo)
571
+ *
572
+ * // creates normal refs from non-function values
573
+ * // equivalent to ref(1)
574
+ * toRef(1)
575
+ * ```
576
+ *
577
+ * Can also be used to create a ref for a property on a source reactive object.
578
+ * The created ref is synced with its source property: mutating the source
579
+ * property will update the ref, and vice-versa.
580
+ *
581
+ * @example
582
+ * ```js
583
+ * const state = reactive({
584
+ * foo: 1,
585
+ * bar: 2
586
+ * })
587
+ *
588
+ * const fooRef = toRef(state, 'foo')
589
+ *
590
+ * // mutating the ref updates the original
591
+ * fooRef.value++
592
+ * console.log(state.foo) // 2
593
+ *
594
+ * // mutating the original also updates the ref
595
+ * state.foo++
596
+ * console.log(fooRef.value) // 3
597
+ * ```
598
+ *
599
+ * @param source - A getter, an existing ref, a non-function value, or a
600
+ * reactive object to create a property ref from.
601
+ * @param [key] - (optional) Name of the property in the reactive object.
602
+ * @see {@link https://vuejs.org/api/reactivity-utilities.html#toref}
603
+ */
604
+ export declare function toRef<T>(value: T): T extends () => infer R ? Readonly<Ref<R>> : T extends Ref ? T : Ref<UnwrapRef<T>>;
605
+ export declare function toRef<T extends object, K extends keyof T>(object: T, key: K): ToRef<T[K]>;
606
+ export declare function toRef<T extends object, K extends keyof T>(object: T, key: K, defaultValue: T[K]): ToRef<Exclude<T[K], undefined>>;
607
+ /**
608
+ * This is a special exported interface for other packages to declare
609
+ * additional types that should bail out for ref unwrapping. For example
610
+ * \@vue/runtime-dom can declare it like so in its d.ts:
611
+ *
612
+ * ``` ts
613
+ * declare module '@vue/reactivity' {
614
+ * export interface RefUnwrapBailTypes {
615
+ * runtimeDOMBailTypes: Node | Window
616
+ * }
617
+ * }
618
+ * ```
619
+ */
620
+ export interface RefUnwrapBailTypes {
621
+ }
622
+ export type ShallowUnwrapRef<T> = {
623
+ [K in keyof T]: DistributeRef<T[K]>;
624
+ };
625
+ type DistributeRef<T> = T extends Ref<infer V, unknown> ? V : T;
626
+ export type UnwrapRef<T> = T extends ShallowRef<infer V, unknown> ? V : T extends Ref<infer V, unknown> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
627
+ type UnwrapRefSimple<T> = T extends Builtin | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
628
+ [RawSymbol]?: true;
629
+ } ? T : T extends Map<infer K, infer V> ? Map<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Map<any, any>>> : T extends WeakMap<infer K, infer V> ? WeakMap<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakMap<any, any>>> : T extends Set<infer V> ? Set<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Set<any>>> : T extends WeakSet<infer V> ? WeakSet<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakSet<any>>> : T extends ReadonlyArray<any> ? {
630
+ [K in keyof T]: UnwrapRefSimple<T[K]>;
631
+ } : T extends object & {
632
+ [ShallowReactiveMarker]?: never;
633
+ } ? {
634
+ [P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>;
635
+ } : T;
636
+
637
+ export declare const ITERATE_KEY: unique symbol;
638
+ export declare const MAP_KEY_ITERATE_KEY: unique symbol;
639
+ export declare const ARRAY_ITERATE_KEY: unique symbol;
640
+ /**
641
+ * Tracks access to a reactive property.
642
+ *
643
+ * This will check which effect is running at the moment and record it as dep
644
+ * which records all effects that depend on the reactive property.
645
+ *
646
+ * @param target - Object holding the reactive property.
647
+ * @param type - Defines the type of access to the reactive property.
648
+ * @param key - Identifier of the reactive property to track.
649
+ */
650
+ export declare function track(target: object, type: TrackOpTypes, key: unknown): void;
651
+ /**
652
+ * Finds all deps associated with the target (or a specific property) and
653
+ * triggers the effects stored within.
654
+ *
655
+ * @param target - The reactive object.
656
+ * @param type - Defines the type of the operation that needs to trigger effects.
657
+ * @param key - Can be used to target a specific reactive property in the target object.
658
+ */
659
+ export declare function trigger(target: object, type: TriggerOpTypes, key?: unknown, newValue?: unknown, oldValue?: unknown, oldTarget?: Map<unknown, unknown> | Set<unknown>): void;
660
+
661
+ export declare class EffectScope {
662
+ detached: boolean;
663
+ private _isPaused;
664
+ constructor(detached?: boolean);
665
+ get active(): boolean;
666
+ pause(): void;
667
+ /**
668
+ * Resumes the effect scope, including all child scopes and effects.
669
+ */
670
+ resume(): void;
671
+ run<T>(fn: () => T): T | undefined;
672
+ prevScope: EffectScope | undefined;
673
+ stop(fromParent?: boolean): void;
674
+ }
675
+ /**
676
+ * Creates an effect scope object which can capture the reactive effects (i.e.
677
+ * computed and watchers) created within it so that these effects can be
678
+ * disposed together. For detailed use cases of this API, please consult its
679
+ * corresponding {@link https://github.com/vuejs/rfcs/blob/master/active-rfcs/0041-reactivity-effect-scope.md | RFC}.
680
+ *
681
+ * @param detached - Can be used to create a "detached" effect scope.
682
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#effectscope}
683
+ */
684
+ export declare function effectScope(detached?: boolean): EffectScope;
685
+ /**
686
+ * Returns the current active effect scope if there is one.
687
+ *
688
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#getcurrentscope}
689
+ */
690
+ export declare function getCurrentScope(): EffectScope | undefined;
691
+ /**
692
+ * Registers a dispose callback on the current active effect scope. The
693
+ * callback will be invoked when the associated effect scope is stopped.
694
+ *
695
+ * @param fn - The callback function to attach to the scope's cleanup.
696
+ * @see {@link https://vuejs.org/api/reactivity-advanced.html#onscopedispose}
697
+ */
698
+ export declare function onScopeDispose(fn: () => void, failSilently?: boolean): void;
699
+
700
+ /**
701
+ * Track array iteration and return:
702
+ * - if input is reactive: a cloned raw array with reactive values
703
+ * - if input is non-reactive or shallowReactive: the original raw array
704
+ */
705
+ export declare function reactiveReadArray<T>(array: T[]): T[];
706
+ /**
707
+ * Track array iteration and return raw array
708
+ */
709
+ export declare function shallowReadArray<T>(arr: T[]): T[];
710
+
711
+ export declare enum WatchErrorCodes {
712
+ WATCH_GETTER = 2,
713
+ WATCH_CALLBACK = 3,
714
+ WATCH_CLEANUP = 4
715
+ }
716
+ export type WatchEffect = (onCleanup: OnCleanup) => void;
717
+ export type WatchSource<T = any> = Ref<T, any> | ComputedRef<T> | (() => T);
718
+ export type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
719
+ export type OnCleanup = (cleanupFn: () => void) => void;
720
+ export interface WatchOptions<Immediate = boolean> extends DebuggerOptions {
721
+ immediate?: Immediate;
722
+ deep?: boolean | number;
723
+ once?: boolean;
724
+ scheduler?: WatchScheduler;
725
+ onWarn?: (msg: string, ...args: any[]) => void;
726
+ }
727
+ export type WatchStopHandle = () => void;
728
+ export interface WatchHandle extends WatchStopHandle {
729
+ pause: () => void;
730
+ resume: () => void;
731
+ stop: () => void;
732
+ }
733
+ export type WatchScheduler = (job: () => void, isFirstRun: boolean) => void;
734
+ /**
735
+ * Returns the current active effect if there is one.
736
+ */
737
+ export declare function getCurrentWatcher(): ReactiveEffect<any> | undefined;
738
+ /**
739
+ * Registers a cleanup callback on the current active effect. This
740
+ * registered cleanup callback will be invoked right before the
741
+ * associated effect re-runs.
742
+ *
743
+ * @param cleanupFn - The callback function to attach to the effect's cleanup.
744
+ * @param failSilently - if `true`, will not throw warning when called without
745
+ * an active effect.
746
+ * @param owner - The effect that this cleanup function should be attached to.
747
+ * By default, the current active effect.
748
+ */
749
+ export declare function onWatcherCleanup(cleanupFn: () => void, failSilently?: boolean, owner?: ReactiveEffect | undefined): void;
750
+ export declare function watch(source: WatchSource | WatchSource[] | WatchEffect | object, cb?: WatchCallback | null, options?: WatchOptions): WatchHandle;
751
+ export declare function traverse(value: unknown, depth?: number, seen?: Map<unknown, number>): unknown;
752
+
753
+