@stencil/core 4.43.5 → 5.0.0-alpha.10

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 (376) hide show
  1. package/bin/stencil.mjs +2 -0
  2. package/dist/app-data/index.d.ts +2 -0
  3. package/dist/app-data/index.js +104 -0
  4. package/dist/app-globals/index.d.ts +5 -0
  5. package/dist/app-globals/index.js +5 -0
  6. package/dist/chunk-z9aeyW2b.mjs +15 -0
  7. package/dist/client-aTQ7xHxx.mjs +4678 -0
  8. package/dist/compiler/index.d.mts +192 -0
  9. package/dist/compiler/index.mjs +3 -0
  10. package/dist/compiler/utils/index.d.mts +2 -0
  11. package/dist/compiler/utils/index.mjs +3 -0
  12. package/dist/compiler-lTINDSgw.mjs +23136 -0
  13. package/{internal → dist/declarations}/stencil-ext-modules.d.ts +8 -8
  14. package/dist/declarations/stencil-public-compiler.d.ts +4374 -0
  15. package/dist/declarations/stencil-public-compiler.js +51 -0
  16. package/dist/declarations/stencil-public-docs.d.ts +505 -0
  17. package/dist/declarations/stencil-public-runtime.d.ts +1982 -0
  18. package/dist/declarations/stencil-public-runtime.js +0 -0
  19. package/dist/index-BvkyxSY6.d.mts +205 -0
  20. package/dist/index-vY35H18z.d.mts +6525 -0
  21. package/dist/index-xAkMgLX_.d.ts +1942 -0
  22. package/{internal/stencil-core/index.d.ts → dist/index.d.mts} +11 -4
  23. package/dist/index.mjs +2 -0
  24. package/dist/jsx-runtime.d.mts +18 -0
  25. package/dist/jsx-runtime.mjs +2 -0
  26. package/dist/mock-doc.d.mts +1 -0
  27. package/dist/mock-doc.mjs +2 -0
  28. package/dist/node--akYC-sG.mjs +1937 -0
  29. package/dist/regular-expression-CFVJOTUh.mjs +508 -0
  30. package/dist/runtime/client/lazy.js +4930 -0
  31. package/dist/runtime/client/runtime.d.ts +2386 -0
  32. package/dist/runtime/client/runtime.js +4924 -0
  33. package/dist/runtime/index.d.ts +211 -0
  34. package/dist/runtime/index.js +4795 -0
  35. package/dist/runtime/server/index.d.mts +1179 -0
  36. package/dist/runtime/server/index.mjs +5140 -0
  37. package/dist/runtime/server/runner.d.mts +319 -0
  38. package/dist/runtime/server/runner.mjs +13642 -0
  39. package/dist/signals/index.d.ts +47 -0
  40. package/dist/signals/index.js +199 -0
  41. package/dist/sys/node/index.d.mts +32 -0
  42. package/dist/sys/node/index.mjs +2 -0
  43. package/dist/sys/node/worker.d.mts +1 -0
  44. package/dist/sys/node/worker.mjs +48 -0
  45. package/dist/testing/index.d.mts +303 -0
  46. package/dist/testing/index.mjs +1477 -0
  47. package/dist/validation-ByxKj8bC.mjs +1458 -0
  48. package/package.json +108 -228
  49. package/bin/stencil +0 -57
  50. package/cli/config-flags.d.ts +0 -132
  51. package/cli/index.cjs +0 -6041
  52. package/cli/index.d.ts +0 -19
  53. package/cli/index.js +0 -6034
  54. package/cli/package.json +0 -14
  55. package/compiler/lib.d.ts +0 -22
  56. package/compiler/lib.decorators.d.ts +0 -384
  57. package/compiler/lib.decorators.legacy.d.ts +0 -22
  58. package/compiler/lib.dom.asynciterable.d.ts +0 -41
  59. package/compiler/lib.dom.d.ts +0 -29610
  60. package/compiler/lib.dom.iterable.d.ts +0 -493
  61. package/compiler/lib.es2015.collection.d.ts +0 -147
  62. package/compiler/lib.es2015.core.d.ts +0 -597
  63. package/compiler/lib.es2015.d.ts +0 -28
  64. package/compiler/lib.es2015.generator.d.ts +0 -77
  65. package/compiler/lib.es2015.iterable.d.ts +0 -605
  66. package/compiler/lib.es2015.promise.d.ts +0 -81
  67. package/compiler/lib.es2015.proxy.d.ts +0 -128
  68. package/compiler/lib.es2015.reflect.d.ts +0 -144
  69. package/compiler/lib.es2015.symbol.d.ts +0 -46
  70. package/compiler/lib.es2015.symbol.wellknown.d.ts +0 -326
  71. package/compiler/lib.es2016.array.include.d.ts +0 -116
  72. package/compiler/lib.es2016.d.ts +0 -21
  73. package/compiler/lib.es2016.full.d.ts +0 -23
  74. package/compiler/lib.es2016.intl.d.ts +0 -31
  75. package/compiler/lib.es2017.arraybuffer.d.ts +0 -21
  76. package/compiler/lib.es2017.d.ts +0 -26
  77. package/compiler/lib.es2017.date.d.ts +0 -31
  78. package/compiler/lib.es2017.full.d.ts +0 -23
  79. package/compiler/lib.es2017.intl.d.ts +0 -44
  80. package/compiler/lib.es2017.object.d.ts +0 -49
  81. package/compiler/lib.es2017.sharedmemory.d.ts +0 -135
  82. package/compiler/lib.es2017.string.d.ts +0 -45
  83. package/compiler/lib.es2017.typedarrays.d.ts +0 -53
  84. package/compiler/lib.es2018.asyncgenerator.d.ts +0 -77
  85. package/compiler/lib.es2018.asynciterable.d.ts +0 -53
  86. package/compiler/lib.es2018.d.ts +0 -24
  87. package/compiler/lib.es2018.full.d.ts +0 -24
  88. package/compiler/lib.es2018.intl.d.ts +0 -83
  89. package/compiler/lib.es2018.promise.d.ts +0 -30
  90. package/compiler/lib.es2018.regexp.d.ts +0 -37
  91. package/compiler/lib.es2019.array.d.ts +0 -79
  92. package/compiler/lib.es2019.d.ts +0 -24
  93. package/compiler/lib.es2019.full.d.ts +0 -24
  94. package/compiler/lib.es2019.intl.d.ts +0 -23
  95. package/compiler/lib.es2019.object.d.ts +0 -33
  96. package/compiler/lib.es2019.string.d.ts +0 -37
  97. package/compiler/lib.es2019.symbol.d.ts +0 -24
  98. package/compiler/lib.es2020.bigint.d.ts +0 -765
  99. package/compiler/lib.es2020.d.ts +0 -27
  100. package/compiler/lib.es2020.date.d.ts +0 -42
  101. package/compiler/lib.es2020.full.d.ts +0 -24
  102. package/compiler/lib.es2020.intl.d.ts +0 -474
  103. package/compiler/lib.es2020.number.d.ts +0 -28
  104. package/compiler/lib.es2020.promise.d.ts +0 -47
  105. package/compiler/lib.es2020.sharedmemory.d.ts +0 -99
  106. package/compiler/lib.es2020.string.d.ts +0 -44
  107. package/compiler/lib.es2020.symbol.wellknown.d.ts +0 -41
  108. package/compiler/lib.es2021.d.ts +0 -23
  109. package/compiler/lib.es2021.full.d.ts +0 -24
  110. package/compiler/lib.es2021.intl.d.ts +0 -166
  111. package/compiler/lib.es2021.promise.d.ts +0 -48
  112. package/compiler/lib.es2021.string.d.ts +0 -33
  113. package/compiler/lib.es2021.weakref.d.ts +0 -78
  114. package/compiler/lib.es2022.array.d.ts +0 -121
  115. package/compiler/lib.es2022.d.ts +0 -25
  116. package/compiler/lib.es2022.error.d.ts +0 -75
  117. package/compiler/lib.es2022.full.d.ts +0 -24
  118. package/compiler/lib.es2022.intl.d.ts +0 -121
  119. package/compiler/lib.es2022.object.d.ts +0 -26
  120. package/compiler/lib.es2022.regexp.d.ts +0 -39
  121. package/compiler/lib.es2022.string.d.ts +0 -25
  122. package/compiler/lib.es2023.array.d.ts +0 -924
  123. package/compiler/lib.es2023.collection.d.ts +0 -21
  124. package/compiler/lib.es2023.d.ts +0 -22
  125. package/compiler/lib.es2023.full.d.ts +0 -24
  126. package/compiler/lib.es2023.intl.d.ts +0 -56
  127. package/compiler/lib.es2024.arraybuffer.d.ts +0 -65
  128. package/compiler/lib.es2024.collection.d.ts +0 -29
  129. package/compiler/lib.es2024.d.ts +0 -26
  130. package/compiler/lib.es2024.full.d.ts +0 -24
  131. package/compiler/lib.es2024.object.d.ts +0 -29
  132. package/compiler/lib.es2024.promise.d.ts +0 -35
  133. package/compiler/lib.es2024.regexp.d.ts +0 -25
  134. package/compiler/lib.es2024.sharedmemory.d.ts +0 -68
  135. package/compiler/lib.es2024.string.d.ts +0 -29
  136. package/compiler/lib.es5.d.ts +0 -4594
  137. package/compiler/lib.es6.d.ts +0 -23
  138. package/compiler/lib.esnext.array.d.ts +0 -35
  139. package/compiler/lib.esnext.collection.d.ts +0 -96
  140. package/compiler/lib.esnext.d.ts +0 -27
  141. package/compiler/lib.esnext.decorators.d.ts +0 -28
  142. package/compiler/lib.esnext.disposable.d.ts +0 -193
  143. package/compiler/lib.esnext.float16.d.ts +0 -443
  144. package/compiler/lib.esnext.full.d.ts +0 -24
  145. package/compiler/lib.esnext.intl.d.ts +0 -21
  146. package/compiler/lib.esnext.iterator.d.ts +0 -148
  147. package/compiler/lib.esnext.promise.d.ts +0 -34
  148. package/compiler/lib.scripthost.d.ts +0 -322
  149. package/compiler/lib.webworker.asynciterable.d.ts +0 -41
  150. package/compiler/lib.webworker.d.ts +0 -9894
  151. package/compiler/lib.webworker.importscripts.d.ts +0 -23
  152. package/compiler/lib.webworker.iterable.d.ts +0 -287
  153. package/compiler/package.json +0 -8
  154. package/compiler/stencil.d.ts +0 -73
  155. package/compiler/stencil.js +0 -288221
  156. package/compiler/sys/in-memory-fs.d.ts +0 -227
  157. package/compiler/transpile.d.ts +0 -32
  158. package/dev-server/client/app-error.d.ts +0 -20
  159. package/dev-server/client/events.d.ts +0 -6
  160. package/dev-server/client/hmr-components.d.ts +0 -12
  161. package/dev-server/client/hmr-external-styles.d.ts +0 -1
  162. package/dev-server/client/hmr-images.d.ts +0 -1
  163. package/dev-server/client/hmr-inline-styles.d.ts +0 -1
  164. package/dev-server/client/hmr-util.d.ts +0 -39
  165. package/dev-server/client/hmr-window.d.ts +0 -10
  166. package/dev-server/client/index.d.ts +0 -6
  167. package/dev-server/client/index.js +0 -793
  168. package/dev-server/client/logger.d.ts +0 -6
  169. package/dev-server/client/package.json +0 -8
  170. package/dev-server/client/progress.d.ts +0 -3
  171. package/dev-server/client/status.d.ts +0 -4
  172. package/dev-server/client/test/hmr-util.spec.d.ts +0 -1
  173. package/dev-server/client/test/status.spec.d.ts +0 -1
  174. package/dev-server/connector.html +0 -6
  175. package/dev-server/index.d.ts +0 -3
  176. package/dev-server/index.js +0 -247
  177. package/dev-server/package.json +0 -8
  178. package/dev-server/server-process.js +0 -12304
  179. package/dev-server/server-worker-thread.js +0 -39
  180. package/dev-server/static/favicon.ico +0 -0
  181. package/dev-server/templates/directory-index.html +0 -176
  182. package/dev-server/templates/initial-load.html +0 -168
  183. package/dev-server/visualstudio.vbs +0 -82
  184. package/dev-server/xdg-open +0 -1066
  185. package/internal/app-data/index.cjs +0 -119
  186. package/internal/app-data/index.d.ts +0 -26
  187. package/internal/app-data/index.js +0 -92
  188. package/internal/app-data/package.json +0 -15
  189. package/internal/app-globals/index.d.ts +0 -2
  190. package/internal/app-globals/index.js +0 -14
  191. package/internal/app-globals/package.json +0 -14
  192. package/internal/child_process.d.ts +0 -7
  193. package/internal/client/index.js +0 -4777
  194. package/internal/client/package.json +0 -10
  195. package/internal/client/patch-browser.js +0 -45
  196. package/internal/client/polyfills/core-js.js +0 -11
  197. package/internal/client/polyfills/dom.js +0 -79
  198. package/internal/client/polyfills/es5-html-element.js +0 -1
  199. package/internal/client/polyfills/index.js +0 -34
  200. package/internal/client/polyfills/system.js +0 -6
  201. package/internal/client/shadow-css.js +0 -414
  202. package/internal/hydrate/index.js +0 -6915
  203. package/internal/hydrate/package.json +0 -7
  204. package/internal/hydrate/runner.d.ts +0 -287
  205. package/internal/hydrate/runner.js +0 -18173
  206. package/internal/index.d.ts +0 -4
  207. package/internal/index.js +0 -2
  208. package/internal/package.json +0 -9
  209. package/internal/stencil-core/index.cjs +0 -1
  210. package/internal/stencil-core/index.js +0 -18
  211. package/internal/stencil-core/jsx-dev-runtime.cjs +0 -7
  212. package/internal/stencil-core/jsx-dev-runtime.d.ts +0 -41
  213. package/internal/stencil-core/jsx-dev-runtime.js +0 -2
  214. package/internal/stencil-core/jsx-runtime.cjs +0 -8
  215. package/internal/stencil-core/jsx-runtime.d.ts +0 -40
  216. package/internal/stencil-core/jsx-runtime.js +0 -2
  217. package/internal/stencil-private.d.ts +0 -2549
  218. package/internal/stencil-public-compiler.d.ts +0 -2922
  219. package/internal/stencil-public-docs.d.ts +0 -472
  220. package/internal/stencil-public-runtime.d.ts +0 -1861
  221. package/internal/testing/index.js +0 -6779
  222. package/internal/testing/jsx-dev-runtime.d.ts +0 -2
  223. package/internal/testing/jsx-dev-runtime.js +0 -8
  224. package/internal/testing/jsx-runtime.d.ts +0 -2
  225. package/internal/testing/jsx-runtime.js +0 -9
  226. package/internal/testing/package.json +0 -7
  227. package/internal/utils/index.d.ts +0 -1
  228. package/internal/utils/result.d.ts +0 -112
  229. package/mock-doc/index.cjs +0 -10163
  230. package/mock-doc/index.d.ts +0 -1172
  231. package/mock-doc/index.js +0 -10142
  232. package/mock-doc/package.json +0 -15
  233. package/readme.md +0 -94
  234. package/screenshot/compare/assets/favicon.ico +0 -0
  235. package/screenshot/compare/assets/logo.png +0 -0
  236. package/screenshot/compare/build/app.css +0 -1
  237. package/screenshot/compare/build/app.esm.js +0 -1
  238. package/screenshot/compare/build/app.js +0 -33
  239. package/screenshot/compare/build/p-081b0641.js +0 -1
  240. package/screenshot/compare/build/p-227a1e18.entry.js +0 -1
  241. package/screenshot/compare/build/p-2c298727.entry.js +0 -1
  242. package/screenshot/compare/build/p-5479268c.entry.js +0 -1
  243. package/screenshot/compare/build/p-573ec8a4.entry.js +0 -1
  244. package/screenshot/compare/build/p-6ba08604.entry.js +0 -1
  245. package/screenshot/compare/build/p-6bc63295.entry.js +0 -1
  246. package/screenshot/compare/build/p-7a3759fd.entry.js +0 -1
  247. package/screenshot/compare/build/p-7b4e3ba7.js +0 -1
  248. package/screenshot/compare/build/p-988eb362.css +0 -1
  249. package/screenshot/compare/build/p-9b6a9315.js +0 -1
  250. package/screenshot/compare/build/p-b4cc611c.entry.js +0 -1
  251. package/screenshot/compare/build/p-d1bf53f5.entry.js +0 -1
  252. package/screenshot/compare/build/p-e2efe0df.js +0 -1
  253. package/screenshot/compare/build/p-e8ca6d97.entry.js +0 -1
  254. package/screenshot/compare/build/p-ec2f13e0.entry.js +0 -1
  255. package/screenshot/compare/build/p-f0b99977.entry.js +0 -1
  256. package/screenshot/compare/build/p-f4745c2f.entry.js +0 -1
  257. package/screenshot/compare/build/p-fbbae598.js +0 -1
  258. package/screenshot/compare/host.config.json +0 -15
  259. package/screenshot/compare/index.html +0 -1
  260. package/screenshot/compare/manifest.json +0 -13
  261. package/screenshot/connector-base.d.ts +0 -42
  262. package/screenshot/connector-local.d.ts +0 -7
  263. package/screenshot/connector.js +0 -2
  264. package/screenshot/index.d.ts +0 -3
  265. package/screenshot/index.js +0 -2642
  266. package/screenshot/local-connector.js +0 -2
  267. package/screenshot/package.json +0 -15
  268. package/screenshot/pixel-match.d.ts +0 -1
  269. package/screenshot/pixel-match.js +0 -2315
  270. package/screenshot/screenshot-compare.d.ts +0 -20
  271. package/screenshot/screenshot-fs.d.ts +0 -14
  272. package/sys/node/460.node-fetch.js +0 -451
  273. package/sys/node/autoprefixer.js +0 -9
  274. package/sys/node/glob.js +0 -1
  275. package/sys/node/graceful-fs.js +0 -1
  276. package/sys/node/index.d.ts +0 -39
  277. package/sys/node/index.js +0 -62
  278. package/sys/node/node-fetch.js +0 -12
  279. package/sys/node/package.json +0 -8
  280. package/sys/node/prompts.js +0 -1
  281. package/sys/node/worker.js +0 -4
  282. package/testing/index.d.ts +0 -9
  283. package/testing/index.js +0 -13276
  284. package/testing/jest/jest-27-and-under/jest-config.d.ts +0 -16
  285. package/testing/jest/jest-27-and-under/jest-environment.d.ts +0 -2
  286. package/testing/jest/jest-27-and-under/jest-facade.d.ts +0 -155
  287. package/testing/jest/jest-27-and-under/jest-preprocessor.d.ts +0 -59
  288. package/testing/jest/jest-27-and-under/jest-preset.d.ts +0 -3
  289. package/testing/jest/jest-27-and-under/jest-runner.d.ts +0 -11
  290. package/testing/jest/jest-27-and-under/jest-screenshot.d.ts +0 -2
  291. package/testing/jest/jest-27-and-under/jest-serializer.d.ts +0 -4
  292. package/testing/jest/jest-27-and-under/jest-setup-test-framework.d.ts +0 -9
  293. package/testing/jest/jest-27-and-under/matchers/attributes.d.ts +0 -14
  294. package/testing/jest/jest-27-and-under/matchers/class-list.d.ts +0 -12
  295. package/testing/jest/jest-27-and-under/matchers/events.d.ts +0 -25
  296. package/testing/jest/jest-27-and-under/matchers/html.d.ts +0 -13
  297. package/testing/jest/jest-27-and-under/matchers/index.d.ts +0 -24
  298. package/testing/jest/jest-27-and-under/matchers/screenshot.d.ts +0 -5
  299. package/testing/jest/jest-27-and-under/matchers/text.d.ts +0 -4
  300. package/testing/jest/jest-27-and-under/test/jest-config.spec.d.ts +0 -1
  301. package/testing/jest/jest-27-and-under/test/jest-preprocessor.spec.d.ts +0 -1
  302. package/testing/jest/jest-27-and-under/test/jest-runner.spec.d.ts +0 -1
  303. package/testing/jest/jest-27-and-under/test/jest-serializer.spec.d.ts +0 -1
  304. package/testing/jest/jest-27-and-under/test/jest-setup-test-framework.spec.d.ts +0 -1
  305. package/testing/jest/jest-28/jest-config.d.ts +0 -16
  306. package/testing/jest/jest-28/jest-environment.d.ts +0 -2
  307. package/testing/jest/jest-28/jest-facade.d.ts +0 -134
  308. package/testing/jest/jest-28/jest-preprocessor.d.ts +0 -35
  309. package/testing/jest/jest-28/jest-preset.d.ts +0 -3
  310. package/testing/jest/jest-28/jest-runner.d.ts +0 -11
  311. package/testing/jest/jest-28/jest-screenshot.d.ts +0 -2
  312. package/testing/jest/jest-28/jest-serializer.d.ts +0 -4
  313. package/testing/jest/jest-28/jest-setup-test-framework.d.ts +0 -9
  314. package/testing/jest/jest-28/matchers/attributes.d.ts +0 -14
  315. package/testing/jest/jest-28/matchers/class-list.d.ts +0 -12
  316. package/testing/jest/jest-28/matchers/events.d.ts +0 -25
  317. package/testing/jest/jest-28/matchers/html.d.ts +0 -13
  318. package/testing/jest/jest-28/matchers/index.d.ts +0 -24
  319. package/testing/jest/jest-28/matchers/screenshot.d.ts +0 -5
  320. package/testing/jest/jest-28/matchers/text.d.ts +0 -4
  321. package/testing/jest/jest-28/test/jest-config.spec.d.ts +0 -1
  322. package/testing/jest/jest-28/test/jest-preprocessor.spec.d.ts +0 -1
  323. package/testing/jest/jest-28/test/jest-runner.spec.d.ts +0 -1
  324. package/testing/jest/jest-28/test/jest-serializer.spec.d.ts +0 -1
  325. package/testing/jest/jest-28/test/jest-setup-test-framework.spec.d.ts +0 -1
  326. package/testing/jest/jest-29/jest-config.d.ts +0 -16
  327. package/testing/jest/jest-29/jest-environment.d.ts +0 -2
  328. package/testing/jest/jest-29/jest-facade.d.ts +0 -136
  329. package/testing/jest/jest-29/jest-preprocessor.d.ts +0 -35
  330. package/testing/jest/jest-29/jest-preset.d.ts +0 -3
  331. package/testing/jest/jest-29/jest-runner.d.ts +0 -11
  332. package/testing/jest/jest-29/jest-screenshot.d.ts +0 -2
  333. package/testing/jest/jest-29/jest-serializer.d.ts +0 -4
  334. package/testing/jest/jest-29/jest-setup-test-framework.d.ts +0 -9
  335. package/testing/jest/jest-29/matchers/attributes.d.ts +0 -14
  336. package/testing/jest/jest-29/matchers/class-list.d.ts +0 -12
  337. package/testing/jest/jest-29/matchers/events.d.ts +0 -25
  338. package/testing/jest/jest-29/matchers/html.d.ts +0 -13
  339. package/testing/jest/jest-29/matchers/index.d.ts +0 -24
  340. package/testing/jest/jest-29/matchers/screenshot.d.ts +0 -5
  341. package/testing/jest/jest-29/matchers/text.d.ts +0 -4
  342. package/testing/jest/jest-29/test/jest-config.spec.d.ts +0 -1
  343. package/testing/jest/jest-29/test/jest-preprocessor.spec.d.ts +0 -1
  344. package/testing/jest/jest-29/test/jest-runner.spec.d.ts +0 -1
  345. package/testing/jest/jest-29/test/jest-serializer.spec.d.ts +0 -1
  346. package/testing/jest/jest-29/test/jest-setup-test-framework.spec.d.ts +0 -1
  347. package/testing/jest/jest-apis.d.ts +0 -86
  348. package/testing/jest/jest-facade.d.ts +0 -74
  349. package/testing/jest/jest-stencil-connector.d.ts +0 -65
  350. package/testing/jest/test/jest-stencil-connector.spec.d.ts +0 -1
  351. package/testing/jest-environment.js +0 -3
  352. package/testing/jest-preprocessor.js +0 -3
  353. package/testing/jest-preset.js +0 -2
  354. package/testing/jest-runner.js +0 -3
  355. package/testing/jest-setuptestframework.js +0 -3
  356. package/testing/mock-fetch.d.ts +0 -11
  357. package/testing/mocks.d.ts +0 -56
  358. package/testing/package.json +0 -8
  359. package/testing/puppeteer/index.d.ts +0 -2
  360. package/testing/puppeteer/puppeteer-browser.d.ts +0 -6
  361. package/testing/puppeteer/puppeteer-declarations.d.ts +0 -414
  362. package/testing/puppeteer/puppeteer-element.d.ts +0 -67
  363. package/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
  364. package/testing/puppeteer/puppeteer-events.d.ts +0 -21
  365. package/testing/puppeteer/puppeteer-page.d.ts +0 -2
  366. package/testing/puppeteer/puppeteer-screenshot.d.ts +0 -27
  367. package/testing/puppeteer/test/puppeteer-screenshot.spec.d.ts +0 -1
  368. package/testing/reset-build-conditionals.d.ts +0 -12
  369. package/testing/spec-page.d.ts +0 -7
  370. package/testing/test/testing-utils.spec.d.ts +0 -1
  371. package/testing/test-transpile.d.ts +0 -2
  372. package/testing/testing-logger.d.ts +0 -26
  373. package/testing/testing-sys.d.ts +0 -6
  374. package/testing/testing-utils.d.ts +0 -80
  375. package/testing/testing.d.ts +0 -2
  376. /package/{screenshot/compare/build/index.esm.js → dist/declarations/stencil-public-docs.js} +0 -0
@@ -0,0 +1,1179 @@
1
+ import { BUILD, Env, NAMESPACE } from "@stencil/core/app-data";
2
+ //#region src/declarations/stencil-public-runtime.d.ts
3
+ interface UserBuildConditionals {
4
+ isDev: boolean;
5
+ isBrowser: boolean;
6
+ isServer: boolean;
7
+ isTesting: boolean;
8
+ }
9
+ type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
10
+ type ErrorHandler = (err: any, element?: HTMLElement) => void;
11
+ type TagTransformer = (tag: string) => string;
12
+ interface ComponentInterface {
13
+ connectedCallback?(): void;
14
+ disconnectedCallback?(): void;
15
+ componentWillRender?(): Promise<void> | void;
16
+ componentDidRender?(): void;
17
+ /**
18
+ * The component is about to load and it has not
19
+ * rendered yet.
20
+ *
21
+ * This is the best place to make any data updates
22
+ * before the first render.
23
+ *
24
+ * componentWillLoad will only be called once.
25
+ */
26
+ componentWillLoad?(): Promise<void> | void;
27
+ /**
28
+ * The component has loaded and has already rendered.
29
+ *
30
+ * Updating data in this method will cause the
31
+ * component to re-render.
32
+ *
33
+ * componentDidLoad will only be called once.
34
+ */
35
+ componentDidLoad?(): void;
36
+ /**
37
+ * A `@Prop` or `@State` property changed and a rerender is about to be requested.
38
+ *
39
+ * Called multiple times throughout the life of
40
+ * the component as its properties change.
41
+ *
42
+ * componentShouldUpdate is not called on the first render.
43
+ */
44
+ componentShouldUpdate?(newVal: any, oldVal: any, propName: string): boolean | void;
45
+ /**
46
+ * The component is about to update and re-render.
47
+ *
48
+ * Called multiple times throughout the life of
49
+ * the component as it updates.
50
+ *
51
+ * componentWillUpdate is not called on the first render.
52
+ */
53
+ componentWillUpdate?(): Promise<void> | void;
54
+ /**
55
+ * The component has just re-rendered.
56
+ *
57
+ * Called multiple times throughout the life of
58
+ * the component as it updates.
59
+ *
60
+ * componentWillUpdate is not called on the
61
+ * first render.
62
+ */
63
+ componentDidUpdate?(): void;
64
+ render?(): any;
65
+ [memberName: string]: any;
66
+ }
67
+ /**
68
+ * Utilities for working with functional Stencil components. An object
69
+ * conforming to this interface is passed by the Stencil runtime as the third
70
+ * argument to a functional component, allowing component authors to work with
71
+ * features like children.
72
+ *
73
+ * The children of a functional component will be passed as the second
74
+ * argument, so a functional component which uses these utils to transform its
75
+ * children might look like the following:
76
+ *
77
+ * ```ts
78
+ * export const AddClass: FunctionalComponent = (_, children, utils) => (
79
+ * utils.map(children, child => ({
80
+ * ...child,
81
+ * vattrs: {
82
+ * ...child.vattrs,
83
+ * class: `${child.vattrs.class} add-class`
84
+ * }
85
+ * }))
86
+ * );
87
+ * ```
88
+ *
89
+ * For more see the Stencil documentation, here:
90
+ * https://stenciljs.com/docs/functional-components
91
+ */
92
+ interface FunctionalUtilities {
93
+ /**
94
+ * Utility for reading the children of a functional component at runtime.
95
+ * Since the Stencil runtime uses a different interface for children it is
96
+ * not recommended to read the children directly, and is preferable to use
97
+ * this utility to, for instance, perform a side effect for each child.
98
+ */
99
+ forEach: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => void) => void;
100
+ /**
101
+ * Utility for transforming the children of a functional component. Given an
102
+ * array of children and a callback this will return a list of the results of
103
+ * passing each child to the supplied callback.
104
+ */
105
+ map: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => ChildNode$1) => VNode[];
106
+ }
107
+ interface FunctionalComponent<T = {}> {
108
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | null;
109
+ }
110
+ /**
111
+ * A Child VDOM node
112
+ *
113
+ * This has most of the same properties as {@link VNode} but friendlier names
114
+ * (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
115
+ * order to provide a friendlier public interface for users of the
116
+ * {@link FunctionalUtilities}).
117
+ */
118
+ interface ChildNode$1 {
119
+ vtag?: string | number | Function | symbol | null;
120
+ vkey?: string | number;
121
+ vtext?: string;
122
+ vchildren?: VNode[];
123
+ vattrs?: any;
124
+ vname?: string;
125
+ }
126
+ /**
127
+ * A virtual DOM node
128
+ */
129
+ interface VNode {
130
+ $flags$: number;
131
+ $tag$: string | number | Function | symbol | null;
132
+ $elm$: any;
133
+ $text$: string;
134
+ $children$: VNode[];
135
+ $attrs$?: any;
136
+ $name$?: string;
137
+ $key$?: string | number;
138
+ /** Signal reference for vdom bypass: signal text nodes store the signal here. */
139
+ $signal$?: any;
140
+ }
141
+ interface CustomElementsDefineOptions {
142
+ exclude?: string[];
143
+ syncQueue?: boolean;
144
+ /** Scoped custom element registry to define components in. Defaults to the global registry. */
145
+ registry?: CustomElementRegistry;
146
+ jmp?: (c: Function) => any;
147
+ raf?: (c: FrameRequestCallback) => number;
148
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
149
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
150
+ ce?: (eventName: string, opts?: any) => CustomEvent;
151
+ }
152
+ //#endregion
153
+ //#region src/declarations/stencil-public-compiler.d.ts
154
+ interface SsrDocumentOptions {
155
+ /**
156
+ * Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
157
+ * a random ID will be generated
158
+ */
159
+ buildId?: string;
160
+ /**
161
+ * Sets the `href` attribute on the `<link rel="canonical">`
162
+ * tag within the `<head>`. If the value is not defined it will
163
+ * ensure a canonical link tag is no included in the `<head>`.
164
+ */
165
+ canonicalUrl?: string;
166
+ /**
167
+ * Include the HTML comments and attributes used by the client-side
168
+ * JavaScript to read the structure of the HTML and rebuild each
169
+ * component. Defaults to `true`.
170
+ */
171
+ clientSsrAnnotations?: boolean;
172
+ /**
173
+ * Constrain `setTimeout()` to 1ms, but still async. Also
174
+ * only allows `setInterval()` to fire once, also constrained to 1ms.
175
+ * Defaults to `true`.
176
+ */
177
+ constrainTimeouts?: boolean;
178
+ /**
179
+ * Sets `document.cookie`
180
+ */
181
+ cookie?: string;
182
+ /**
183
+ * Sets the `dir` attribute on the top level `<html>`.
184
+ */
185
+ direction?: string;
186
+ /**
187
+ * Component tag names listed here will not be prerendered, nor will
188
+ * hydrated on the client-side. Components listed here will be ignored
189
+ * as custom elements and treated no differently than a `<div>`.
190
+ */
191
+ excludeComponents?: string[];
192
+ /**
193
+ * Sets the `lang` attribute on the top level `<html>`.
194
+ */
195
+ language?: string;
196
+ /**
197
+ * Maximum number of components to hydrate on one page. Defaults to `300`.
198
+ */
199
+ maxHydrateCount?: number;
200
+ /**
201
+ * Sets `document.referrer`
202
+ */
203
+ referrer?: string;
204
+ /**
205
+ * Removes every `<script>` element found in the `document`. Defaults to `false`.
206
+ */
207
+ removeScripts?: boolean;
208
+ /**
209
+ * Removes CSS not used by elements within the `document`. Defaults to `true`.
210
+ */
211
+ removeUnusedStyles?: boolean;
212
+ /**
213
+ * The url the runtime uses for the resources, such as the assets directory.
214
+ */
215
+ resourcesUrl?: string;
216
+ /**
217
+ * Prints out runtime console logs to the NodeJS process. Defaults to `false`.
218
+ */
219
+ runtimeLogging?: boolean;
220
+ /**
221
+ * Component tags listed here will only be prerendered or server-side-rendered
222
+ * and will not be client-side hydrated. This is useful for components that
223
+ * are not dynamic and do not need to be defined as a custom element within the
224
+ * browser. For example, a header or footer component would be a good example that
225
+ * may not require any client-side JavaScript.
226
+ */
227
+ staticComponents?: string[];
228
+ /**
229
+ * The amount of milliseconds to wait for a page to finish rendering until
230
+ * a timeout error is thrown. Defaults to `15000`.
231
+ */
232
+ timeout?: number;
233
+ /**
234
+ * Sets `document.title`.
235
+ */
236
+ title?: string;
237
+ /**
238
+ * Sets `location.href`
239
+ */
240
+ url?: string;
241
+ /**
242
+ * Sets `navigator.userAgent`
243
+ */
244
+ userAgent?: string;
245
+ /**
246
+ * Configure how Stencil serializes the components shadow root.
247
+ * - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
248
+ * - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
249
+ * and the shadow DOM will be created during client-side hydration.
250
+ * - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
251
+ * the value arrays containing the tag names of the components that should be rendered in that mode.
252
+ *
253
+ * Examples:
254
+ * - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
255
+ * Render all components as `scoped` apart from `my-component-1` and `another-component`
256
+ * - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
257
+ * Render all components within `declarative-shadow-dom` apart from `an-option-component`
258
+ * - `'scoped'` Render all components as `scoped`
259
+ * - `false` disables shadow root serialization
260
+ *
261
+ * *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
262
+ * @default 'declarative-shadow-dom'
263
+ */
264
+ serializeShadowRoot?: 'declarative-shadow-dom' | 'scoped' | {
265
+ 'declarative-shadow-dom'?: string[];
266
+ scoped?: string[];
267
+ default: 'declarative-shadow-dom' | 'scoped';
268
+ } | boolean;
269
+ }
270
+ interface SerializeDocumentOptions extends SsrDocumentOptions {
271
+ /**
272
+ * Runs after the `document` has been hydrated.
273
+ */
274
+ afterSsr?(document: any): any | Promise<any>;
275
+ /**
276
+ * @deprecated Use `afterSsr` instead.
277
+ */
278
+ afterHydrate?(document: any): any | Promise<any>;
279
+ /**
280
+ * Sets an approximate line width the HTML should attempt to stay within.
281
+ * Note that this is "approximate", in that HTML may often not be able
282
+ * to be split at an exact line width. Additionally, new lines created
283
+ * is where HTML naturally already has whitespace, such as before an
284
+ * attribute or spaces between words. Defaults to `100`.
285
+ */
286
+ approximateLineWidth?: number;
287
+ /**
288
+ * Runs before the `document` has been hydrated.
289
+ */
290
+ beforeSsr?(document: any): any | Promise<any>;
291
+ /**
292
+ * @deprecated Use `beforeSsr` instead.
293
+ */
294
+ beforeHydrate?(document: any): any | Promise<any>;
295
+ /**
296
+ * Format the HTML in a nicely indented format.
297
+ * Defaults to `false`.
298
+ */
299
+ prettyHtml?: boolean;
300
+ /**
301
+ * Remove quotes from attribute values when possible.
302
+ * Defaults to `true`.
303
+ */
304
+ removeAttributeQuotes?: boolean;
305
+ /**
306
+ * Remove the `=""` from standardized `boolean` attributes,
307
+ * such as `hidden` or `checked`. Defaults to `true`.
308
+ */
309
+ removeBooleanAttributeQuotes?: boolean;
310
+ /**
311
+ * Remove these standardized attributes when their value is empty:
312
+ * `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
313
+ */
314
+ removeEmptyAttributes?: boolean;
315
+ /**
316
+ * Remove HTML comments. Defaults to `true`.
317
+ */
318
+ removeHtmlComments?: boolean;
319
+ /**
320
+ * The `fullDocument` flag determines the format of the rendered output. Set it to true to
321
+ * generate a complete HTML document, or false to render only the component.
322
+ * @default true
323
+ */
324
+ fullDocument?: boolean;
325
+ /**
326
+ * Style modes to render the component in.
327
+ * @see https://stenciljs.com/docs/styling#style-modes
328
+ */
329
+ modes?: ResolutionHandler[];
330
+ }
331
+ interface SsrFactoryOptions extends SerializeDocumentOptions {
332
+ serializeToHtml: boolean;
333
+ destroyWindow: boolean;
334
+ destroyDocument: boolean;
335
+ }
336
+ interface Diagnostic {
337
+ absFilePath?: string | undefined;
338
+ code?: string;
339
+ columnNumber?: number | undefined;
340
+ debugText?: string;
341
+ header?: string;
342
+ language?: string;
343
+ level: 'error' | 'warn' | 'info' | 'log' | 'debug';
344
+ lineNumber?: number | undefined;
345
+ lines: PrintLine[];
346
+ messageText: string;
347
+ relFilePath?: string | undefined;
348
+ type: string;
349
+ }
350
+ //#endregion
351
+ //#region src/declarations/stencil-private.d.ts
352
+ interface PrintLine {
353
+ lineIndex: number;
354
+ lineNumber: number;
355
+ text: string;
356
+ errorCharStart: number;
357
+ errorLength?: number;
358
+ }
359
+ interface ComponentConstructor {
360
+ is?: string;
361
+ properties?: ComponentConstructorProperties;
362
+ watchers?: ComponentConstructorChangeHandlers;
363
+ events?: ComponentConstructorEvent[];
364
+ listeners?: ComponentConstructorListener[];
365
+ style?: string;
366
+ styleId?: string;
367
+ encapsulation?: ComponentConstructorEncapsulation;
368
+ observedAttributes?: string[];
369
+ cmpMeta?: ComponentRuntimeMeta;
370
+ isProxied?: boolean;
371
+ isStyleRegistered?: boolean;
372
+ serializers?: ComponentConstructorChangeHandlers;
373
+ deserializers?: ComponentConstructorChangeHandlers;
374
+ }
375
+ /**
376
+ * A mapping from class member names to a list of methods which are watching
377
+ * them.
378
+ */
379
+ interface ComponentConstructorChangeHandlers {
380
+ [propName: string]: {
381
+ [methodName: string]: number;
382
+ }[];
383
+ }
384
+ interface ComponentNativeConstructor extends ComponentConstructor {
385
+ cmpMeta: ComponentRuntimeMeta;
386
+ }
387
+ type ComponentConstructorEncapsulation = 'shadow' | 'scoped' | 'none';
388
+ interface ComponentConstructorProperties {
389
+ [propName: string]: ComponentConstructorProperty;
390
+ }
391
+ interface ComponentConstructorProperty {
392
+ attribute?: string;
393
+ elementRef?: boolean;
394
+ method?: boolean;
395
+ mutable?: boolean;
396
+ reflect?: boolean;
397
+ state?: boolean;
398
+ type?: ComponentConstructorPropertyType;
399
+ watchCallbacks?: string[];
400
+ }
401
+ type ComponentConstructorPropertyType = StringConstructor | BooleanConstructor | NumberConstructor | 'string' | 'boolean' | 'number';
402
+ interface ComponentConstructorEvent {
403
+ name: string;
404
+ method: string;
405
+ bubbles: boolean;
406
+ cancelable: boolean;
407
+ composed: boolean;
408
+ }
409
+ interface ComponentConstructorListener {
410
+ name: string;
411
+ method: string;
412
+ capture?: boolean;
413
+ passive?: boolean;
414
+ }
415
+ /**
416
+ * An interface extending `HTMLElement` which describes the fields added onto
417
+ * host HTML elements by the Stencil runtime.
418
+ */
419
+ interface HostElement extends HTMLElement {
420
+ connectedCallback?: () => void;
421
+ attributeChangedCallback?: (attribName: string, oldVal: string, newVal: string, namespace: string) => void;
422
+ disconnectedCallback?: () => void;
423
+ host?: Element;
424
+ forceUpdate?: () => void;
425
+ __s_ghr?: () => HostRef;
426
+ /**
427
+ * Unique stencil id for this element
428
+ */
429
+ ['s-id']?: string;
430
+ /**
431
+ * Content Reference:
432
+ * Reference to the HTML Comment that's placed inside of the
433
+ * host element's original content. This comment is used to
434
+ * always represent where host element's light dom is.
435
+ */
436
+ ['s-cr']?: RenderNode;
437
+ /**
438
+ * Lifecycle ready
439
+ */
440
+ ['s-lr']?: boolean;
441
+ /**
442
+ * A reference to the `ElementInternals` object for the current host
443
+ *
444
+ * This is used for maintaining a reference to the object between HMR
445
+ * refreshes in the lazy build.
446
+ *
447
+ * "stencil-element-internals"
448
+ */
449
+ ['s-ei']?: ElementInternals;
450
+ /**
451
+ * On Render Callbacks:
452
+ * Array of callbacks to fire off after it has rendered.
453
+ */
454
+ ['s-rc']?: (() => void)[];
455
+ /**
456
+ * Scope Id
457
+ * The scope id of this component when using scoped css encapsulation
458
+ * or using shadow dom but the browser doesn't support it
459
+ */
460
+ ['s-sc']?: string;
461
+ /**
462
+ * Scope Ids
463
+ * All the possible scope ids of this component when using scoped css encapsulation
464
+ * or using shadow dom but the browser doesn't support it
465
+ */
466
+ ['s-scs']?: string[];
467
+ /**
468
+ * Hot Module Replacement, dev mode only
469
+ *
470
+ * This function should be defined by the HMR-supporting runtime and should
471
+ * do the work of actually updating the component in-place.
472
+ */
473
+ ['s-hmr']?: (versionId: string) => void;
474
+ /**
475
+ * A list of nested nested hydration promises that
476
+ * must be resolved for the top, ancestor component to be fully hydrated
477
+ */
478
+ ['s-p']?: Promise<void>[];
479
+ componentOnReady?: () => Promise<this>;
480
+ }
481
+ interface SsrResults {
482
+ buildId: string;
483
+ diagnostics: Diagnostic[];
484
+ url: string;
485
+ host: string | null;
486
+ hostname: string | null;
487
+ href: string | null;
488
+ port: string | null;
489
+ pathname: string | null;
490
+ search: string | null;
491
+ hash: string | null;
492
+ html: string | null;
493
+ components: SsrComponent[];
494
+ anchors: SsrAnchorElement[];
495
+ imgs: SsrImgElement[];
496
+ scripts: SsrScriptElement[];
497
+ styles: SsrStyleElement[];
498
+ staticData: SsrStaticData[];
499
+ title: string | null;
500
+ hydratedCount: number;
501
+ httpStatus: number | null;
502
+ }
503
+ interface SsrComponent {
504
+ tag: string;
505
+ mode: string;
506
+ count: number;
507
+ depth: number;
508
+ }
509
+ interface SsrElement {
510
+ [attrName: string]: string | undefined;
511
+ }
512
+ interface SsrAnchorElement extends SsrElement {
513
+ href?: string;
514
+ target?: string;
515
+ }
516
+ interface SsrImgElement extends SsrElement {
517
+ src?: string;
518
+ }
519
+ interface SsrScriptElement extends SsrElement {
520
+ src?: string;
521
+ type?: string;
522
+ }
523
+ interface SsrStyleElement extends SsrElement {
524
+ id?: string;
525
+ href?: string;
526
+ content?: string;
527
+ }
528
+ interface SsrStaticData {
529
+ id: string;
530
+ type: string;
531
+ content: string;
532
+ }
533
+ /**
534
+ * Generic node that represents all of the
535
+ * different types of nodes we'd see when rendering
536
+ */
537
+ interface RenderNode extends HostElement {
538
+ /**
539
+ * Shadow root's host
540
+ */
541
+ host?: Element;
542
+ /**
543
+ * On Ref Function:
544
+ * Callback function to be called when the slotted node ref is ready.
545
+ */
546
+ ['s-rf']?: (elm: Element) => unknown;
547
+ /**
548
+ * Is initially hidden
549
+ * Whether this node was originally rendered with the `hidden` attribute.
550
+ *
551
+ * Used to reset the `hidden` state of a node during slot relocation.
552
+ */
553
+ ['s-ih']?: boolean;
554
+ /**
555
+ * Is Content Reference Node:
556
+ * This node is a content reference node.
557
+ */
558
+ ['s-cn']?: boolean;
559
+ /**
560
+ * Is a `slot` node when `shadow: false` (or `scoped: true`).
561
+ *
562
+ * This is a node (either empty text-node or `<slot-fb>` element)
563
+ * that represents where a `<slot>` is located in the original JSX.
564
+ */
565
+ ['s-sr']?: boolean;
566
+ /**
567
+ * Slot name of either the slot itself or the slotted node
568
+ */
569
+ ['s-sn']?: string;
570
+ /**
571
+ * Host element tag name:
572
+ * The tag name of the host element that this
573
+ * node was created in.
574
+ */
575
+ ['s-hn']?: string;
576
+ /**
577
+ * Slot host tag name:
578
+ * This is the tag name of the element where this node
579
+ * has been moved to during slot relocation.
580
+ *
581
+ * This allows us to check if the node has been moved and prevent
582
+ * us from thinking a node _should_ be moved when it may already be in
583
+ * its final destination.
584
+ *
585
+ * This value is set to `undefined` whenever the node is put back into its original location.
586
+ */
587
+ ['s-sh']?: string;
588
+ /**
589
+ * Original Location Reference:
590
+ * A reference pointing to the comment
591
+ * which represents the original location
592
+ * before it was moved to its slot.
593
+ */
594
+ ['s-ol']?: RenderNode;
595
+ /**
596
+ * Node reference:
597
+ * This is a reference from an original location node
598
+ * back to the node that's been moved around.
599
+ */
600
+ ['s-nr']?: PatchedSlotNode | RenderNode;
601
+ /**
602
+ * Original Order:
603
+ * During SSR; a number representing the order of a slotted node
604
+ */
605
+ ['s-oo']?: number;
606
+ /**
607
+ * Scope Id
608
+ */
609
+ ['s-si']?: string;
610
+ /**
611
+ * Host Id (hydrate only)
612
+ */
613
+ ['s-host-id']?: number;
614
+ /**
615
+ * Node Id (hydrate only)
616
+ */
617
+ ['s-node-id']?: number;
618
+ /**
619
+ * Used to know the components encapsulation.
620
+ * empty "" for shadow, "c" from scoped
621
+ */
622
+ ['s-en']?: '' | /*shadow*/'c';
623
+ /**
624
+ * On a `scoped: true` component
625
+ * with `lightDomPatches` flag enabled,
626
+ * returns the internal `childNodes` of the component
627
+ */
628
+ readonly __childNodes?: NodeListOf<ChildNode>;
629
+ /**
630
+ * On a `scoped: true` component
631
+ * with `lightDomPatches` flag enabled,
632
+ * returns the internal `children` of the component
633
+ */
634
+ readonly __children?: HTMLCollectionOf<Element>;
635
+ /**
636
+ * On a `scoped: true` component
637
+ * with `lightDomPatches` flag enabled,
638
+ * returns the internal `firstChild` of the component
639
+ */
640
+ readonly __firstChild?: ChildNode;
641
+ /**
642
+ * On a `scoped: true` component
643
+ * with `lightDomPatches` flag enabled,
644
+ * returns the internal `lastChild` of the component
645
+ */
646
+ readonly __lastChild?: ChildNode;
647
+ /**
648
+ * On a `scoped: true` component
649
+ * with `lightDomPatches` flag enabled,
650
+ * returns the internal `textContent` of the component
651
+ */
652
+ __textContent?: string;
653
+ /**
654
+ * On a `scoped: true` component
655
+ * with `lightDomPatches` flag enabled,
656
+ * gives access to the original `append` method
657
+ */
658
+ __append?: (...nodes: (Node | string)[]) => void;
659
+ /**
660
+ * On a `scoped: true` component
661
+ * with `lightDomPatches` flag enabled,
662
+ * gives access to the original `prepend` method
663
+ */
664
+ __prepend?: (...nodes: (Node | string)[]) => void;
665
+ /**
666
+ * On a `scoped: true` component
667
+ * with `lightDomPatches` flag enabled,
668
+ * gives access to the original `appendChild` method
669
+ */
670
+ __appendChild?: <T extends Node>(newChild: T) => T;
671
+ /**
672
+ * On a `scoped: true` component
673
+ * with `lightDomPatches` flag enabled,
674
+ * gives access to the original `insertBefore` method
675
+ */
676
+ __insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
677
+ /**
678
+ * On a `scoped: true` component
679
+ * with `lightDomPatches` flag enabled,
680
+ * gives access to the original `removeChild` method
681
+ */
682
+ __removeChild?: <T extends Node>(child: T) => T;
683
+ }
684
+ interface PatchedSlotNode extends Node {
685
+ /**
686
+ * Slot name
687
+ */
688
+ ['s-sn']?: string;
689
+ /**
690
+ * Original Location Reference:
691
+ * A reference pointing to the comment
692
+ * which represents the original location
693
+ * before it was moved to its slot.
694
+ */
695
+ ['s-ol']?: RenderNode;
696
+ /**
697
+ * Slot host tag name:
698
+ * This is the tag name of the element where this node
699
+ * has been moved to during slot relocation.
700
+ *
701
+ * This allows us to check if the node has been moved and prevent
702
+ * us from thinking a node _should_ be moved when it may already be in
703
+ * its final destination.
704
+ *
705
+ * This value is set to `undefined` whenever the node is put back into its original location.
706
+ */
707
+ ['s-sh']?: string;
708
+ /**
709
+ * Is a `slot` node when `shadow: false` (or `scoped: true`).
710
+ *
711
+ * This is a node (either empty text-node or `<slot-fb>` element)
712
+ * that represents where a `<slot>` is located in the original JSX.
713
+ */
714
+ ['s-sr']?: boolean;
715
+ /**
716
+ * On a `scoped: true` component
717
+ * with `lightDomPatches` flag enabled,
718
+ * returns the actual `parentNode` of the component
719
+ */
720
+ __parentNode?: RenderNode;
721
+ /**
722
+ * On a `scoped: true` component
723
+ * with `lightDomPatches` flag enabled,
724
+ * returns the actual `nextSibling` of the component
725
+ */
726
+ __nextSibling?: RenderNode;
727
+ /**
728
+ * On a `scoped: true` component
729
+ * with `lightDomPatches` flag enabled,
730
+ * returns the actual `previousSibling` of the component
731
+ */
732
+ __previousSibling?: RenderNode;
733
+ /**
734
+ * On a `scoped: true` component
735
+ * with `lightDomPatches` flag enabled,
736
+ * returns the actual `nextElementSibling` of the component
737
+ */
738
+ __nextElementSibling?: RenderNode;
739
+ /**
740
+ * On a `scoped: true` component
741
+ * with `lightDomPatches` flag enabled,
742
+ * returns the actual `nextElementSibling` of the component
743
+ */
744
+ __previousElementSibling?: RenderNode;
745
+ }
746
+ type LazyBundlesRuntimeData = LazyBundleRuntimeData[];
747
+ type LazyBundleRuntimeData = [/** bundleIds */string, ComponentRuntimeMetaCompact[]];
748
+ type ComponentRuntimeMetaCompact = [/** flags */number, /** tagname */string, /** members */{
749
+ [memberName: string]: ComponentRuntimeMember;
750
+ }?, /** listeners */ComponentRuntimeHostListener[]?, /** watchers */ComponentConstructorChangeHandlers?, /** serializers */ComponentConstructorChangeHandlers?, /** deserializers */ComponentConstructorChangeHandlers?];
751
+ /**
752
+ * Runtime metadata for a Stencil component
753
+ */
754
+ interface ComponentRuntimeMeta {
755
+ /**
756
+ * This number is used to hold a series of bitflags for various features we
757
+ * support on components. The flags which this value is intended to store are
758
+ * documented in the `CMP_FLAGS` enum.
759
+ */
760
+ $flags$: number;
761
+ /**
762
+ * Just what it says on the tin - the tag name for the component, as set in
763
+ * the `@Component` decorator.
764
+ */
765
+ $tagName$: string;
766
+ /**
767
+ * A map of the component's members, which could include fields decorated
768
+ * with `@Prop`, `@State`, etc as well as methods.
769
+ */
770
+ $members$?: ComponentRuntimeMembers;
771
+ /**
772
+ * Information about listeners on the component.
773
+ */
774
+ $listeners$?: ComponentRuntimeHostListener[];
775
+ /**
776
+ * Tuples containing information about `@Prop` fields on the component which
777
+ * are set to be reflected (i.e. kept in sync) as HTML attributes when
778
+ * updated.
779
+ */
780
+ $attrsToReflect$?: ComponentRuntimeReflectingAttr[];
781
+ /**
782
+ * Information about which class members have watchers attached on the component.
783
+ */
784
+ $watchers$?: ComponentConstructorChangeHandlers;
785
+ /**
786
+ * A bundle ID used for lazy loading.
787
+ */
788
+ $lazyBundleId$?: string;
789
+ /**
790
+ * Information about which class members have prop > attribute serializers attached on the component.
791
+ */
792
+ $serializers$?: ComponentConstructorChangeHandlers;
793
+ /**
794
+ * Information about which class members have attribute > prop deserializers attached on the component.
795
+ */
796
+ $deserializers$?: ComponentConstructorChangeHandlers;
797
+ }
798
+ /**
799
+ * A mapping of the names of members on the component to some runtime-specific
800
+ * information about them.
801
+ */
802
+ interface ComponentRuntimeMembers {
803
+ [memberName: string]: ComponentRuntimeMember;
804
+ }
805
+ /**
806
+ * A tuple with information about a class member that's relevant at runtime.
807
+ * The fields are:
808
+ *
809
+ * 1. A number used to hold bitflags for component members. The bit flags which
810
+ * this is intended to store are documented in the `MEMBER_FLAGS` enum.
811
+ * 2. The attribute name to observe.
812
+ */
813
+ type ComponentRuntimeMember = [number, string?];
814
+ /**
815
+ * A tuple holding information about a host listener which is relevant at
816
+ * runtime. The field are:
817
+ *
818
+ * 1. A number used to hold bitflags for listeners. The bit flags which this is
819
+ * intended to store are documented in the `LISTENER_FLAGS` enum.
820
+ * 2. The event name.
821
+ * 3. The method name.
822
+ */
823
+ type ComponentRuntimeHostListener = [number, string, string];
824
+ /**
825
+ * A tuple containing information about props which are "reflected" at runtime,
826
+ * meaning that HTML attributes on the component instance are kept in sync with
827
+ * the prop value.
828
+ *
829
+ * The fields are:
830
+ *
831
+ * 1. the prop name
832
+ * 2. the prop attribute.
833
+ */
834
+ type ComponentRuntimeReflectingAttr = [string, string | undefined];
835
+ /**
836
+ * A runtime component reference, consistent of either a host element _or_ an
837
+ * empty object. This is used in particular in a few different places as the
838
+ * keys in a `WeakMap` which maps {@link HostElement} instances to their
839
+ * associated {@link HostRef} instance.
840
+ */
841
+ type RuntimeRef = HostElement | {
842
+ __s_ghr?: () => HostRef;
843
+ };
844
+ /**
845
+ * Interface used to track an Element, it's virtual Node (`VNode`), and other data
846
+ */
847
+ interface HostRef {
848
+ $ancestorComponent$?: HostElement;
849
+ $flags$: number;
850
+ $cmpMeta$: ComponentRuntimeMeta;
851
+ $hostElement$: HostElement;
852
+ $instanceValues$?: Map<string, any>;
853
+ $signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
854
+ /** Dispose function that tears down all signal effects for this component. */
855
+ $signalCleanup$?: () => void;
856
+ $serializerValues$?: Map<string, string>;
857
+ $lazyInstance$?: ComponentInterface;
858
+ /**
859
+ * A list of callback functions called immediately after a lazy component module has been fetched.
860
+ */
861
+ $fetchedCbList$?: ((elm: HostElement) => void)[];
862
+ /**
863
+ * A promise that gets resolved if `BUILD.asyncLoading` is enabled and after the `componentDidLoad`
864
+ * and before the `componentDidUpdate` lifecycle events are triggered.
865
+ */
866
+ $onReadyPromise$?: Promise<HostElement>;
867
+ /**
868
+ * A callback which resolves {@link HostRef.$onReadyPromise$}
869
+ * @param elm host element
870
+ */
871
+ $onReadyResolve$?: (elm: HostElement) => void;
872
+ /**
873
+ * A promise which resolves with the host component once it has finished rendering
874
+ * for the first time. This is primarily used to wait for the first `update` to be
875
+ * called on a component.
876
+ */
877
+ $onInstancePromise$?: Promise<HostElement>;
878
+ /**
879
+ * A callback which resolves {@link HostRef.$onInstancePromise$}
880
+ * @param elm host element
881
+ */
882
+ $onInstanceResolve$?: (elm: HostElement) => void;
883
+ /**
884
+ * A promise which resolves when the component has finished rendering for the first time.
885
+ * It is called after {@link HostRef.$onInstancePromise$} resolves.
886
+ */
887
+ $onRenderResolve$?: () => void;
888
+ $vnode$?: VNode;
889
+ $queuedListeners$?: [string, any][];
890
+ $rmListeners$?: (() => void)[];
891
+ $modeName$?: string;
892
+ $renderCount$?: number;
893
+ /**
894
+ * Defer connectedCallback until after first render for components with slot relocation.
895
+ */
896
+ $deferredConnectedCallback$?: boolean;
897
+ }
898
+ interface PlatformRuntime {
899
+ /**
900
+ * This number is used to hold a series of bitflags for various features we
901
+ * support within the runtime. The flags which this value is intended to store are
902
+ * documented in the {@link PLATFORM_FLAGS} enum.
903
+ */
904
+ $flags$: number;
905
+ /**
906
+ * Holds a map of nodes to be hydrated.
907
+ */
908
+ $orgLocNodes$?: Map<string, RenderNode>;
909
+ /**
910
+ * Holds the resource url for given platform environment.
911
+ */
912
+ $resourcesUrl$: string;
913
+ /**
914
+ * The nonce value to be applied to all script/style tags at runtime.
915
+ * If `null`, the nonce attribute will not be applied.
916
+ */
917
+ $nonce$?: string | null;
918
+ /**
919
+ * A utility function that executes a given function and returns the result.
920
+ * @param c The callback function to execute
921
+ */
922
+ jmp: (c: Function) => any;
923
+ /**
924
+ * A wrapper for {@link https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame `requestAnimationFrame`}
925
+ */
926
+ raf: (c: FrameRequestCallback) => number;
927
+ /**
928
+ * A wrapper for {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener `addEventListener`}
929
+ */
930
+ ael: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
931
+ /**
932
+ * A wrapper for {@link https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener `removeEventListener`}
933
+ */
934
+ rel: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
935
+ /**
936
+ * A wrapper for creating a {@link https://developer.mozilla.org/docs/Web/API/CustomEvent `CustomEvent`}
937
+ */
938
+ ce: (eventName: string, opts?: any) => CustomEvent;
939
+ }
940
+ type StyleMap = Map<string, CSSStyleSheet | string>;
941
+ type ChildType = VNode | number | string;
942
+ //#endregion
943
+ //#region src/server/platform/h-async.d.ts
944
+ declare const hAsync: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode | Promise<VNode>;
945
+ //#endregion
946
+ //#region src/server/platform/ssr-app.d.ts
947
+ /**
948
+ * SSR a Document by patching the DOM APIs to wait for components to be connected and hydrated
949
+ * before allowing them to be added to the document.
950
+ * Once all components are hydrated, the `afterSsr` callback is called so that the caller can serialize
951
+ * the document to HTML and send it back to the client.
952
+ * @param win The window to use for SSR. This should be a patched window created by `patchDomImplementation`.
953
+ * @param opts The options to use for SSR. This is used to configure which components should be hydrated, how long to wait for hydration, etc.
954
+ * @param results The results object to store the hydration results.
955
+ * @param afterSsr The callback to be called after SSR is complete.
956
+ * @param resolve The resolve function to be called when SSR is complete.
957
+ */
958
+ declare function ssrApp(win: Window & typeof globalThis, opts: SsrFactoryOptions, results: SsrResults, afterSsr: (win: Window, opts: SsrFactoryOptions, results: SsrResults, resolve: (results: SsrResults) => void) => void, resolve: (results: SsrResults) => void): void;
959
+ //#endregion
960
+ //#region src/runtime/bootstrap-standalone.d.ts
961
+ declare const defineCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => void;
962
+ declare const proxyCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => any;
963
+ declare const forceModeUpdate: (elm: RenderNode) => void;
964
+ //#endregion
965
+ //#region src/runtime/bootstrap-loader.d.ts
966
+ declare const bootstrapLazy: (lazyBundles: LazyBundlesRuntimeData, options?: CustomElementsDefineOptions) => void;
967
+ //#endregion
968
+ //#region src/runtime/connected-callback.d.ts
969
+ declare const connectedCallback: (elm: HostElement) => void;
970
+ //#endregion
971
+ //#region src/runtime/disconnected-callback.d.ts
972
+ declare const disconnectedCallback: (elm: HostElement) => Promise<void>;
973
+ //#endregion
974
+ //#region src/runtime/element.d.ts
975
+ declare const getElement: (ref: any) => HostElement;
976
+ /**
977
+ * Get the shadow root for a Stencil component's host element.
978
+ * This works for both open and closed shadow DOM modes.
979
+ *
980
+ * For closed shadow DOM, `element.shadowRoot` returns `null` by design,
981
+ * but Stencil stores the reference internally so components can still
982
+ * access their own shadow root.
983
+ *
984
+ * @param element The host element (from @Element() decorator)
985
+ * @returns The shadow root, or null if no shadow root exists
986
+ */
987
+ declare const getShadowRoot: (element: HTMLElement) => ShadowRoot | null;
988
+ //#endregion
989
+ //#region src/runtime/event-emitter.d.ts
990
+ declare const createEvent: (ref: RuntimeRef, name: string, flags: number) => {
991
+ emit: (detail: any) => CustomEvent<any>;
992
+ };
993
+ //#endregion
994
+ //#region src/runtime/fragment.d.ts
995
+ declare const Fragment: FunctionalComponent;
996
+ //#endregion
997
+ //#region src/runtime/host-listener.d.ts
998
+ declare const addHostEventListeners: (elm: HostElement, hostRef: HostRef, listeners?: ComponentRuntimeHostListener[]) => void;
999
+ //#endregion
1000
+ //#region src/runtime/mixin.d.ts
1001
+ type Ctor<T = {}> = new (...args: any[]) => T;
1002
+ declare function Mixin(...mixins: ((base: Ctor) => Ctor)[]): Ctor<{}>;
1003
+ //#endregion
1004
+ //#region src/runtime/mode.d.ts
1005
+ declare const setMode: (handler: ResolutionHandler) => number;
1006
+ declare const getMode: (ref: RuntimeRef) => string;
1007
+ //#endregion
1008
+ //#region src/runtime/nonce.d.ts
1009
+ /**
1010
+ * Assigns the given value to the nonce property on the runtime platform object.
1011
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1012
+ * @param nonce The value to be assigned to the platform nonce property.
1013
+ * @returns void
1014
+ */
1015
+ declare const setNonce: (nonce: string) => string;
1016
+ //#endregion
1017
+ //#region src/runtime/parse-property-value.d.ts
1018
+ /**
1019
+ * Parse a new property value for a given property type.
1020
+ *
1021
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1022
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1023
+ * 1. `any`, the type given to `propValue` in the function signature
1024
+ * 2. the type stored from `propType`.
1025
+ *
1026
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1027
+ *
1028
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1029
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1030
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1031
+ * ```tsx
1032
+ * <my-cmp prop-val={0}></my-cmp>
1033
+ * ```
1034
+ *
1035
+ * HTML prop values on the other hand, will always a string
1036
+ *
1037
+ * @param propValue the new value to coerce to some type
1038
+ * @param propType the type of the prop, expressed as a binary number
1039
+ * @param isFormAssociated whether the component is form-associated (optional)
1040
+ * @returns the parsed/coerced value
1041
+ */
1042
+ declare const parsePropertyValue: (propValue: unknown, propType: number, isFormAssociated?: boolean) => any;
1043
+ //#endregion
1044
+ //#region src/runtime/proxy-component.d.ts
1045
+ /**
1046
+ * Attach a series of runtime constructs to a compiled Stencil component
1047
+ * constructor, including getters and setters for the `@Prop` and `@State`
1048
+ * decorators, callbacks for when attributes change, and so on.
1049
+ *
1050
+ * On a lazy loaded component, this is wired up to both the class instance
1051
+ * and the element separately. A `hostRef` keeps the 2 in sync.
1052
+ *
1053
+ * On a traditional component, this is wired up to the element only.
1054
+ *
1055
+ * @param Cstr - the constructor for a component that we need to process
1056
+ * @param cmpMeta - metadata collected previously about the component
1057
+ * @param flags - a number used to store a series of bit flags
1058
+ * @returns a reference to the same constructor passed in (but now mutated)
1059
+ */
1060
+ declare const proxyComponent: (Cstr: ComponentConstructor, cmpMeta: ComponentRuntimeMeta, flags: number) => ComponentConstructor;
1061
+ //#endregion
1062
+ //#region src/runtime/set-value.d.ts
1063
+ declare const getValue: (ref: RuntimeRef, propName: string) => any;
1064
+ declare const setValue: (ref: RuntimeRef, propName: string, newVal: any, cmpMeta: ComponentRuntimeMeta) => void;
1065
+ //#endregion
1066
+ //#region src/runtime/tag-transform.d.ts
1067
+ /**
1068
+ * Transforms a tag name using the current tag transformer
1069
+ * @param tag - the tag to transform e.g. `my-tag`
1070
+ * @returns the transformed tag e.g. `new-my-tag`
1071
+ */
1072
+ declare function transformTag<T extends string>(tag: T): T;
1073
+ /**
1074
+ * Sets the tag transformer to be used when rendering custom elements
1075
+ * @param transformer the transformer function to use. Must return a string
1076
+ */
1077
+ declare function setTagTransformer(transformer: TagTransformer): void;
1078
+ //#endregion
1079
+ //#region src/runtime/update-component.d.ts
1080
+ declare const getRenderingRef: () => any;
1081
+ declare const postUpdateComponent: (hostRef: HostRef) => void;
1082
+ declare const forceUpdate: (ref: any) => boolean;
1083
+ //#endregion
1084
+ //#region src/runtime/vdom/h.d.ts
1085
+ declare const Host: {};
1086
+ //#endregion
1087
+ //#region src/runtime/vdom/jsx-runtime.d.ts
1088
+ declare function jsx(type: any, props: any, key?: string): VNode;
1089
+ /**
1090
+ * @alias
1091
+ */
1092
+ declare const jsxs: typeof jsx;
1093
+ //#endregion
1094
+ //#region src/runtime/vdom/vdom-annotations.d.ts
1095
+ /**
1096
+ * Updates the DOM generated on the server with annotations such as node attributes and
1097
+ * comment nodes to facilitate future client-side hydration. These annotations are used for things
1098
+ * like moving elements back to their original hosts if using Shadow DOM on the client, and for quickly
1099
+ * reconstructing the vNode representations of the DOM.
1100
+ *
1101
+ * @param doc The DOM generated by the server.
1102
+ * @param staticComponents Any components that should be considered static and do not need client-side hydration.
1103
+ */
1104
+ declare const insertVdomAnnotations: (doc: Document, staticComponents: string[]) => void;
1105
+ //#endregion
1106
+ //#region src/runtime/vdom/vdom-render.d.ts
1107
+ /**
1108
+ * The main entry point for Stencil's virtual DOM-based rendering engine
1109
+ *
1110
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1111
+ * function will handle creating a virtual DOM tree with a single root, patching
1112
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
1113
+ * relocation, and reflecting attributes.
1114
+ *
1115
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
1116
+ * the DOM node into which it should be rendered.
1117
+ * @param renderFnResults the virtual DOM nodes to be rendered
1118
+ * @param isInitialLoad whether or not this is the first call after page load
1119
+ */
1120
+ declare const renderVdom: (hostRef: HostRef, renderFnResults: VNode | VNode[], isInitialLoad?: boolean) => void;
1121
+ //#endregion
1122
+ //#region src/server/platform/index.d.ts
1123
+ declare const cmpModules: Map<string, {
1124
+ [exportName: string]: ComponentConstructor;
1125
+ }>;
1126
+ declare const loadModule: (cmpMeta: ComponentRuntimeMeta, _hostRef: HostRef, _hmrVersionId?: string) => ComponentConstructor | null;
1127
+ declare const isMemberInElement: (elm: any, memberName: string) => boolean;
1128
+ declare const registerComponents: (Cstrs: ComponentNativeConstructor[]) => void;
1129
+ declare const win: Window & typeof globalThis;
1130
+ declare const readTask: (cb: Function) => void;
1131
+ declare const writeTask: (cb: Function) => void;
1132
+ declare const nextTick: (cb: () => void) => Promise<void>;
1133
+ declare const consoleError: ErrorHandler;
1134
+ declare const consoleDevError: (..._: any[]) => void;
1135
+ declare const consoleDevWarn: (..._: any[]) => void;
1136
+ declare const consoleDevInfo: (..._: any[]) => void;
1137
+ declare const setErrorHandler: (handler: ErrorHandler) => ErrorHandler;
1138
+ declare const plt: PlatformRuntime;
1139
+ declare const setPlatformHelpers: (helpers: {
1140
+ jmp?: (c: any) => any;
1141
+ raf?: (c: any) => number;
1142
+ ael?: (el: any, eventName: string, listener: any, options: any) => void;
1143
+ rel?: (el: any, eventName: string, listener: any, options: any) => void;
1144
+ ce?: (eventName: string, opts?: any) => any;
1145
+ }) => void;
1146
+ declare const supportsListenerOptions = false;
1147
+ declare const supportsConstructableStylesheets = false;
1148
+ declare const supportsMutableAdoptedStyleSheets = false;
1149
+ declare const getHostRef: (ref: RuntimeRef) => HostRef;
1150
+ declare const registerInstance: (lazyInstance: any, hostRef: HostRef) => HostRef;
1151
+ declare const registerHost: (elm: HostElement, cmpMeta: ComponentRuntimeMeta) => HostRef;
1152
+ declare const Build: UserBuildConditionals;
1153
+ declare const styles: StyleMap;
1154
+ declare const modeResolutionChain: ResolutionHandler[];
1155
+ /**
1156
+ * Server-side implementation of getAssetPath.
1157
+ *
1158
+ * Unlike the client-side version, this doesn't use import.meta.url as a fallback
1159
+ * because it doesn't make sense in the bundled hydrate factory context.
1160
+ * The base URL must come from plt.$resourcesUrl$ (set via hydration options).
1161
+ * @param path - The relative path to the asset
1162
+ * @returns The resolved asset path, which may be an absolute URL if resourcesUrl is set to an external URL, or a relative path if resourcesUrl is a relative path or not set at all
1163
+ */
1164
+ declare const getAssetPath: (path: string) => string;
1165
+ /**
1166
+ * Sets the base URL for resolving asset paths in the server/hydrate context.
1167
+ * @param path - The base URL to use for resolving asset paths. This should typically be set to the same value as the `resourcesUrl` option passed to `ssrDocument` to ensure that asset paths are resolved correctly in the server/hydrate context.
1168
+ * If not set, it defaults to './', which is a reasonable default for server-side rendering.
1169
+ * @returns void
1170
+ */
1171
+ declare const setAssetPath: (path: string) => string;
1172
+ /**
1173
+ * Checks to see any components are rendered with `scoped`
1174
+ * @param opts - SSR options
1175
+ */
1176
+ declare const setScopedSsr: (opts: SsrFactoryOptions) => void;
1177
+ declare const needsScopedSSR: () => boolean;
1178
+ //#endregion
1179
+ export { BUILD, Build, Env, Fragment, Host, Mixin, NAMESPACE, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, getShadowRoot, getValue, hAsync as h, insertVdomAnnotations, isMemberInElement, jsx, jsxs, loadModule, modeResolutionChain, needsScopedSSR, nextTick, parsePropertyValue, plt, postUpdateComponent, proxyComponent, proxyCustomElement, readTask, registerComponents, registerHost, registerInstance, renderVdom, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setScopedSsr, setTagTransformer, setValue, ssrApp, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsMutableAdoptedStyleSheets, transformTag, win, writeTask };