@nubjs/nub-linux-arm64 0.0.5 → 0.0.8

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 (381) hide show
  1. package/bin/nub +0 -0
  2. package/package.json +1 -1
  3. package/runtime/addons/nub-native.node +0 -0
  4. package/runtime/cache-evict.mjs +69 -0
  5. package/runtime/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
  6. package/runtime/node_modules/@js-temporal/polyfill/LICENSE +13 -0
  7. package/runtime/node_modules/@js-temporal/polyfill/README.md +90 -0
  8. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
  9. package/runtime/node_modules/@js-temporal/polyfill/dist/index.cjs.map +1 -0
  10. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
  11. package/runtime/node_modules/@js-temporal/polyfill/dist/index.esm.js.map +1 -0
  12. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
  13. package/runtime/node_modules/@js-temporal/polyfill/dist/index.umd.js.map +1 -0
  14. package/runtime/node_modules/@js-temporal/polyfill/index.d.cts +1215 -0
  15. package/runtime/node_modules/@js-temporal/polyfill/index.d.ts +1215 -0
  16. package/runtime/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
  17. package/runtime/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
  18. package/runtime/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
  19. package/runtime/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
  20. package/runtime/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
  21. package/runtime/node_modules/@js-temporal/polyfill/lib/durationformat.d.ts +93 -0
  22. package/runtime/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
  23. package/runtime/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
  24. package/runtime/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
  25. package/runtime/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
  26. package/runtime/node_modules/@js-temporal/polyfill/lib/internaltypes.d.ts +242 -0
  27. package/runtime/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
  28. package/runtime/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
  29. package/runtime/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
  30. package/runtime/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
  31. package/runtime/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
  32. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
  33. package/runtime/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
  34. package/runtime/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
  35. package/runtime/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
  36. package/runtime/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
  37. package/runtime/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
  38. package/runtime/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
  39. package/runtime/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
  40. package/runtime/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
  41. package/runtime/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
  42. package/runtime/node_modules/@js-temporal/polyfill/package.json +143 -0
  43. package/runtime/node_modules/@oxc-parser/binding-linux-arm64-gnu/README.md +3 -0
  44. package/runtime/node_modules/@oxc-parser/binding-linux-arm64-gnu/package.json +42 -0
  45. package/runtime/node_modules/@oxc-parser/binding-linux-arm64-gnu/parser.linux-arm64-gnu.node +0 -0
  46. package/runtime/node_modules/@oxc-parser/binding-linux-x64-gnu/README.md +3 -0
  47. package/runtime/node_modules/@oxc-parser/binding-linux-x64-gnu/package.json +42 -0
  48. package/runtime/node_modules/@oxc-parser/binding-linux-x64-gnu/parser.linux-x64-gnu.node +0 -0
  49. package/runtime/node_modules/@oxc-project/runtime/CHANGELOG.md +88 -0
  50. package/runtime/node_modules/@oxc-project/runtime/LICENSE +22 -0
  51. package/runtime/node_modules/@oxc-project/runtime/README.md +5 -0
  52. package/runtime/node_modules/@oxc-project/runtime/package.json +1066 -0
  53. package/runtime/node_modules/@oxc-project/runtime/src/helpers/AwaitValue.js +4 -0
  54. package/runtime/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js +4 -0
  55. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecoratedDescriptor.js +9 -0
  56. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs.js +236 -0
  57. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203.js +184 -0
  58. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2203R.js +191 -0
  59. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2301.js +222 -0
  60. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2305.js +133 -0
  61. package/runtime/node_modules/@oxc-project/runtime/src/helpers/applyDecs2311.js +124 -0
  62. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayLikeToArray.js +6 -0
  63. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithHoles.js +4 -0
  64. package/runtime/node_modules/@oxc-project/runtime/src/helpers/arrayWithoutHoles.js +5 -0
  65. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertClassBrand.js +5 -0
  66. package/runtime/node_modules/@oxc-project/runtime/src/helpers/assertThisInitialized.js +5 -0
  67. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncGeneratorDelegate.js +24 -0
  68. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js +45 -0
  69. package/runtime/node_modules/@oxc-project/runtime/src/helpers/asyncToGenerator.js +26 -0
  70. package/runtime/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js +5 -0
  71. package/runtime/node_modules/@oxc-project/runtime/src/helpers/callSuper.js +7 -0
  72. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkInRHS.js +6 -0
  73. package/runtime/node_modules/@oxc-project/runtime/src/helpers/checkPrivateRedeclaration.js +4 -0
  74. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorDestructureSet.js +10 -0
  75. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorGet.js +4 -0
  76. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classApplyDescriptorSet.js +7 -0
  77. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCallCheck.js +4 -0
  78. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticAccess.js +5 -0
  79. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classCheckPrivateStaticFieldDescriptor.js +4 -0
  80. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classExtractFieldDescriptor.js +5 -0
  81. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classNameTDZError.js +4 -0
  82. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldDestructureSet.js +7 -0
  83. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet.js +7 -0
  84. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldGet2.js +5 -0
  85. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldInitSpec.js +5 -0
  86. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseBase.js +5 -0
  87. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldLooseKey.js +5 -0
  88. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet.js +7 -0
  89. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateFieldSet2.js +5 -0
  90. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateGetter.js +5 -0
  91. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodGet.js +5 -0
  92. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodInitSpec.js +5 -0
  93. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateMethodSet.js +4 -0
  94. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classPrivateSetter.js +5 -0
  95. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldDestructureSet.js +7 -0
  96. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecGet.js +7 -0
  97. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateFieldSpecSet.js +7 -0
  98. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodGet.js +5 -0
  99. package/runtime/node_modules/@oxc-project/runtime/src/helpers/classStaticPrivateMethodSet.js +4 -0
  100. package/runtime/node_modules/@oxc-project/runtime/src/helpers/construct.js +10 -0
  101. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createClass.js +13 -0
  102. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelper.js +50 -0
  103. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createForOfIteratorHelperLoose.js +19 -0
  104. package/runtime/node_modules/@oxc-project/runtime/src/helpers/createSuper.js +16 -0
  105. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorate.js +23 -0
  106. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateMetadata.js +9 -0
  107. package/runtime/node_modules/@oxc-project/runtime/src/helpers/decorateParam.js +11 -0
  108. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defaults.js +9 -0
  109. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineAccessor.js +8 -0
  110. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineEnumerableProperties.js +12 -0
  111. package/runtime/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js +10 -0
  112. package/runtime/node_modules/@oxc-project/runtime/src/helpers/dispose.js +28 -0
  113. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/AwaitValue.js +4 -0
  114. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/OverloadYield.js +4 -0
  115. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecoratedDescriptor.js +9 -0
  116. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs.js +236 -0
  117. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203.js +184 -0
  118. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2203R.js +191 -0
  119. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2301.js +222 -0
  120. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2305.js +133 -0
  121. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/applyDecs2311.js +124 -0
  122. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayLikeToArray.js +6 -0
  123. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithHoles.js +4 -0
  124. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/arrayWithoutHoles.js +5 -0
  125. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertClassBrand.js +5 -0
  126. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/assertThisInitialized.js +5 -0
  127. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncGeneratorDelegate.js +24 -0
  128. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncIterator.js +45 -0
  129. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/asyncToGenerator.js +26 -0
  130. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/awaitAsyncGenerator.js +5 -0
  131. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/callSuper.js +7 -0
  132. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkInRHS.js +6 -0
  133. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/checkPrivateRedeclaration.js +4 -0
  134. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorDestructureSet.js +10 -0
  135. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorGet.js +4 -0
  136. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classApplyDescriptorSet.js +7 -0
  137. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCallCheck.js +4 -0
  138. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticAccess.js +5 -0
  139. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +4 -0
  140. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classExtractFieldDescriptor.js +5 -0
  141. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classNameTDZError.js +4 -0
  142. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldDestructureSet.js +7 -0
  143. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet.js +7 -0
  144. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldGet2.js +5 -0
  145. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldInitSpec.js +5 -0
  146. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseBase.js +5 -0
  147. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldLooseKey.js +5 -0
  148. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet.js +7 -0
  149. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateFieldSet2.js +5 -0
  150. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateGetter.js +5 -0
  151. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodGet.js +5 -0
  152. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodInitSpec.js +5 -0
  153. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateMethodSet.js +4 -0
  154. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classPrivateSetter.js +5 -0
  155. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldDestructureSet.js +7 -0
  156. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecGet.js +7 -0
  157. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateFieldSpecSet.js +7 -0
  158. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodGet.js +5 -0
  159. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/classStaticPrivateMethodSet.js +4 -0
  160. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/construct.js +10 -0
  161. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createClass.js +13 -0
  162. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelper.js +50 -0
  163. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createForOfIteratorHelperLoose.js +19 -0
  164. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/createSuper.js +16 -0
  165. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorate.js +21 -0
  166. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateMetadata.js +7 -0
  167. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/decorateParam.js +9 -0
  168. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defaults.js +9 -0
  169. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineAccessor.js +8 -0
  170. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineEnumerableProperties.js +12 -0
  171. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/defineProperty.js +10 -0
  172. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/dispose.js +28 -0
  173. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/extends.js +10 -0
  174. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/get.js +11 -0
  175. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/getPrototypeOf.js +6 -0
  176. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/identity.js +4 -0
  177. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/importDeferProxy.js +27 -0
  178. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inherits.js +14 -0
  179. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/inheritsLoose.js +5 -0
  180. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerDefineProperty.js +9 -0
  181. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/initializerWarningHelper.js +4 -0
  182. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/instanceof.js +4 -0
  183. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireDefault.js +6 -0
  184. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/interopRequireWildcard.js +27 -0
  185. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeFunction.js +8 -0
  186. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/isNativeReflectConstruct.js +9 -0
  187. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArray.js +4 -0
  188. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/iterableToArrayLimit.js +28 -0
  189. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/jsx.js +22 -0
  190. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/maybeArrayLike.js +9 -0
  191. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/newArrowCheck.js +4 -0
  192. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableRest.js +4 -0
  193. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nonIterableSpread.js +4 -0
  194. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/nullishReceiverError.js +4 -0
  195. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectDestructuringEmpty.js +4 -0
  196. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread.js +14 -0
  197. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectSpread2.js +23 -0
  198. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutProperties.js +13 -0
  199. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/objectWithoutPropertiesLoose.js +10 -0
  200. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/package.json +3 -0
  201. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/possibleConstructorReturn.js +8 -0
  202. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/readOnlyError.js +4 -0
  203. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/regeneratorRuntime.js +304 -0
  204. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/set.js +22 -0
  205. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setFunctionName.js +12 -0
  206. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/setPrototypeOf.js +6 -0
  207. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/skipFirstGeneratorNext.js +7 -0
  208. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/slicedToArray.js +8 -0
  209. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropBase.js +6 -0
  210. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropGet.js +9 -0
  211. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/superPropSet.js +6 -0
  212. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteral.js +8 -0
  213. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/taggedTemplateLiteralLoose.js +4 -0
  214. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/tdz.js +4 -0
  215. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalRef.js +6 -0
  216. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/temporalUndefined.js +2 -0
  217. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toArray.js +8 -0
  218. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toConsumableArray.js +8 -0
  219. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPrimitive.js +12 -0
  220. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toPropertyKey.js +7 -0
  221. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/toSetter.js +10 -0
  222. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/typeof.js +10 -0
  223. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/unsupportedIterableToArray.js +9 -0
  224. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/using.js +12 -0
  225. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/usingCtx.js +59 -0
  226. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapAsyncGenerator.js +69 -0
  227. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapNativeSuper.js +27 -0
  228. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/wrapRegExp.js +51 -0
  229. package/runtime/node_modules/@oxc-project/runtime/src/helpers/esm/writeOnlyError.js +4 -0
  230. package/runtime/node_modules/@oxc-project/runtime/src/helpers/extends.js +10 -0
  231. package/runtime/node_modules/@oxc-project/runtime/src/helpers/get.js +11 -0
  232. package/runtime/node_modules/@oxc-project/runtime/src/helpers/getPrototypeOf.js +6 -0
  233. package/runtime/node_modules/@oxc-project/runtime/src/helpers/identity.js +4 -0
  234. package/runtime/node_modules/@oxc-project/runtime/src/helpers/importDeferProxy.js +27 -0
  235. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inherits.js +14 -0
  236. package/runtime/node_modules/@oxc-project/runtime/src/helpers/inheritsLoose.js +5 -0
  237. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerDefineProperty.js +9 -0
  238. package/runtime/node_modules/@oxc-project/runtime/src/helpers/initializerWarningHelper.js +4 -0
  239. package/runtime/node_modules/@oxc-project/runtime/src/helpers/instanceof.js +4 -0
  240. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireDefault.js +6 -0
  241. package/runtime/node_modules/@oxc-project/runtime/src/helpers/interopRequireWildcard.js +27 -0
  242. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeFunction.js +8 -0
  243. package/runtime/node_modules/@oxc-project/runtime/src/helpers/isNativeReflectConstruct.js +9 -0
  244. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArray.js +4 -0
  245. package/runtime/node_modules/@oxc-project/runtime/src/helpers/iterableToArrayLimit.js +28 -0
  246. package/runtime/node_modules/@oxc-project/runtime/src/helpers/jsx.js +22 -0
  247. package/runtime/node_modules/@oxc-project/runtime/src/helpers/maybeArrayLike.js +9 -0
  248. package/runtime/node_modules/@oxc-project/runtime/src/helpers/newArrowCheck.js +4 -0
  249. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableRest.js +4 -0
  250. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nonIterableSpread.js +4 -0
  251. package/runtime/node_modules/@oxc-project/runtime/src/helpers/nullishReceiverError.js +4 -0
  252. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectDestructuringEmpty.js +4 -0
  253. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread.js +14 -0
  254. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js +23 -0
  255. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js +13 -0
  256. package/runtime/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js +10 -0
  257. package/runtime/node_modules/@oxc-project/runtime/src/helpers/possibleConstructorReturn.js +8 -0
  258. package/runtime/node_modules/@oxc-project/runtime/src/helpers/readOnlyError.js +4 -0
  259. package/runtime/node_modules/@oxc-project/runtime/src/helpers/regeneratorRuntime.js +304 -0
  260. package/runtime/node_modules/@oxc-project/runtime/src/helpers/set.js +22 -0
  261. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setFunctionName.js +12 -0
  262. package/runtime/node_modules/@oxc-project/runtime/src/helpers/setPrototypeOf.js +6 -0
  263. package/runtime/node_modules/@oxc-project/runtime/src/helpers/skipFirstGeneratorNext.js +7 -0
  264. package/runtime/node_modules/@oxc-project/runtime/src/helpers/slicedToArray.js +8 -0
  265. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropBase.js +6 -0
  266. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropGet.js +9 -0
  267. package/runtime/node_modules/@oxc-project/runtime/src/helpers/superPropSet.js +6 -0
  268. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteral.js +8 -0
  269. package/runtime/node_modules/@oxc-project/runtime/src/helpers/taggedTemplateLiteralLoose.js +4 -0
  270. package/runtime/node_modules/@oxc-project/runtime/src/helpers/tdz.js +4 -0
  271. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalRef.js +6 -0
  272. package/runtime/node_modules/@oxc-project/runtime/src/helpers/temporalUndefined.js +2 -0
  273. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toArray.js +8 -0
  274. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toConsumableArray.js +8 -0
  275. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js +12 -0
  276. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js +7 -0
  277. package/runtime/node_modules/@oxc-project/runtime/src/helpers/toSetter.js +10 -0
  278. package/runtime/node_modules/@oxc-project/runtime/src/helpers/typeof.js +10 -0
  279. package/runtime/node_modules/@oxc-project/runtime/src/helpers/unsupportedIterableToArray.js +9 -0
  280. package/runtime/node_modules/@oxc-project/runtime/src/helpers/using.js +12 -0
  281. package/runtime/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js +59 -0
  282. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js +69 -0
  283. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapNativeSuper.js +27 -0
  284. package/runtime/node_modules/@oxc-project/runtime/src/helpers/wrapRegExp.js +51 -0
  285. package/runtime/node_modules/@oxc-project/runtime/src/helpers/writeOnlyError.js +4 -0
  286. package/runtime/node_modules/@oxc-project/types/LICENSE +22 -0
  287. package/runtime/node_modules/@oxc-project/types/README.md +3 -0
  288. package/runtime/node_modules/@oxc-project/types/package.json +26 -0
  289. package/runtime/node_modules/@oxc-project/types/types.d.ts +1912 -0
  290. package/runtime/node_modules/@oxc-transform/binding-linux-arm64-gnu/README.md +3 -0
  291. package/runtime/node_modules/@oxc-transform/binding-linux-arm64-gnu/package.json +44 -0
  292. package/runtime/node_modules/@oxc-transform/binding-linux-arm64-gnu/transform.linux-arm64-gnu.node +0 -0
  293. package/runtime/node_modules/@petamoriken/float16/LICENSE +21 -0
  294. package/runtime/node_modules/@petamoriken/float16/README.md +413 -0
  295. package/runtime/node_modules/@petamoriken/float16/browser/float16.js +1340 -0
  296. package/runtime/node_modules/@petamoriken/float16/browser/float16.mjs +1325 -0
  297. package/runtime/node_modules/@petamoriken/float16/index.d.ts +546 -0
  298. package/runtime/node_modules/@petamoriken/float16/index.v5.6.d.ts +546 -0
  299. package/runtime/node_modules/@petamoriken/float16/index.v5.7.d.ts +555 -0
  300. package/runtime/node_modules/@petamoriken/float16/inspect/node.cjs +25 -0
  301. package/runtime/node_modules/@petamoriken/float16/inspect/node.mjs +23 -0
  302. package/runtime/node_modules/@petamoriken/float16/lib/DataView.cjs +16 -0
  303. package/runtime/node_modules/@petamoriken/float16/lib/Float16Array.cjs +690 -0
  304. package/runtime/node_modules/@petamoriken/float16/lib/_util/arrayIterator.cjs +52 -0
  305. package/runtime/node_modules/@petamoriken/float16/lib/_util/brand.cjs +27 -0
  306. package/runtime/node_modules/@petamoriken/float16/lib/_util/converter.cjs +111 -0
  307. package/runtime/node_modules/@petamoriken/float16/lib/_util/is.cjs +78 -0
  308. package/runtime/node_modules/@petamoriken/float16/lib/_util/messages.cjs +18 -0
  309. package/runtime/node_modules/@petamoriken/float16/lib/_util/primordials.cjs +150 -0
  310. package/runtime/node_modules/@petamoriken/float16/lib/_util/spec.cjs +84 -0
  311. package/runtime/node_modules/@petamoriken/float16/lib/f16round.cjs +10 -0
  312. package/runtime/node_modules/@petamoriken/float16/lib/index.cjs +16 -0
  313. package/runtime/node_modules/@petamoriken/float16/lib/isTypedArray.cjs +11 -0
  314. package/runtime/node_modules/@petamoriken/float16/package.json +115 -0
  315. package/runtime/node_modules/@petamoriken/float16/src/DataView.mjs +35 -0
  316. package/runtime/node_modules/@petamoriken/float16/src/Float16Array.mjs +1194 -0
  317. package/runtime/node_modules/@petamoriken/float16/src/_util/arrayIterator.mjs +86 -0
  318. package/runtime/node_modules/@petamoriken/float16/src/_util/brand.mjs +31 -0
  319. package/runtime/node_modules/@petamoriken/float16/src/_util/converter.mjs +173 -0
  320. package/runtime/node_modules/@petamoriken/float16/src/_util/is.mjs +151 -0
  321. package/runtime/node_modules/@petamoriken/float16/src/_util/messages.mjs +22 -0
  322. package/runtime/node_modules/@petamoriken/float16/src/_util/primordials.mjs +254 -0
  323. package/runtime/node_modules/@petamoriken/float16/src/_util/spec.mjs +137 -0
  324. package/runtime/node_modules/@petamoriken/float16/src/f16round.mjs +10 -0
  325. package/runtime/node_modules/@petamoriken/float16/src/index.mjs +7 -0
  326. package/runtime/node_modules/@petamoriken/float16/src/isTypedArray.mjs +10 -0
  327. package/runtime/node_modules/jsbi/LICENSE +176 -0
  328. package/runtime/node_modules/jsbi/README.md +173 -0
  329. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
  330. package/runtime/node_modules/jsbi/dist/jsbi-cjs.js.map +1 -0
  331. package/runtime/node_modules/jsbi/dist/jsbi-umd.js +2 -0
  332. package/runtime/node_modules/jsbi/dist/jsbi-umd.js.map +1 -0
  333. package/runtime/node_modules/jsbi/dist/jsbi.mjs +2 -0
  334. package/runtime/node_modules/jsbi/dist/jsbi.mjs.map +1 -0
  335. package/runtime/node_modules/jsbi/jsbi.d.ts +43 -0
  336. package/runtime/node_modules/jsbi/package.json +35 -0
  337. package/runtime/node_modules/oxc-parser/LICENSE +22 -0
  338. package/runtime/node_modules/oxc-parser/README.md +167 -0
  339. package/runtime/node_modules/oxc-parser/package.json +153 -0
  340. package/runtime/node_modules/oxc-parser/src-js/bindings.js +601 -0
  341. package/runtime/node_modules/oxc-parser/src-js/generated/constants.js +105 -0
  342. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js.js +5862 -0
  343. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/js_range.js +6403 -0
  344. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts.js +6154 -0
  345. package/runtime/node_modules/oxc-parser/src-js/generated/deserialize/ts_range.js +6723 -0
  346. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/constructors.js +13875 -0
  347. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/type_ids.js +191 -0
  348. package/runtime/node_modules/oxc-parser/src-js/generated/lazy/walk.js +5810 -0
  349. package/runtime/node_modules/oxc-parser/src-js/generated/visit/keys.js +220 -0
  350. package/runtime/node_modules/oxc-parser/src-js/generated/visit/type_ids.js +177 -0
  351. package/runtime/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts +387 -0
  352. package/runtime/node_modules/oxc-parser/src-js/generated/visit/walk.js +2455 -0
  353. package/runtime/node_modules/oxc-parser/src-js/index.d.ts +312 -0
  354. package/runtime/node_modules/oxc-parser/src-js/index.js +108 -0
  355. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/common.js +301 -0
  356. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/eager.js +255 -0
  357. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy-common.js +11 -0
  358. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/lazy.js +162 -0
  359. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/node-array.js +365 -0
  360. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/supported.js +52 -0
  361. package/runtime/node_modules/oxc-parser/src-js/raw-transfer/visitor.js +127 -0
  362. package/runtime/node_modules/oxc-parser/src-js/visit/index.js +41 -0
  363. package/runtime/node_modules/oxc-parser/src-js/visit/visitor.js +405 -0
  364. package/runtime/node_modules/oxc-parser/src-js/wasm.js +13 -0
  365. package/runtime/node_modules/oxc-parser/src-js/webcontainer-fallback.cjs +21 -0
  366. package/runtime/node_modules/oxc-parser/src-js/wrap.js +57 -0
  367. package/runtime/node_modules/urlpattern-polyfill/LICENSE +19 -0
  368. package/runtime/node_modules/urlpattern-polyfill/README.md +242 -0
  369. package/runtime/node_modules/urlpattern-polyfill/dist/index.d.ts +9 -0
  370. package/runtime/node_modules/urlpattern-polyfill/dist/types.d.ts +49 -0
  371. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.cjs +1 -0
  372. package/runtime/node_modules/urlpattern-polyfill/dist/urlpattern.js +1 -0
  373. package/runtime/node_modules/urlpattern-polyfill/index.cjs +7 -0
  374. package/runtime/node_modules/urlpattern-polyfill/index.js +7 -0
  375. package/runtime/node_modules/urlpattern-polyfill/package.json +149 -0
  376. package/runtime/polyfills.mjs +73 -97
  377. package/runtime/preload-async-hooks.mjs +50 -0
  378. package/runtime/preload.mjs +274 -320
  379. package/runtime/transform-core.mjs +762 -0
  380. package/runtime/version.mjs +12 -0
  381. package/runtime/worker-polyfill.mjs +147 -9
@@ -0,0 +1,1215 @@
1
+ export namespace Temporal {
2
+ export type ComparisonResult = -1 | 0 | 1;
3
+ export type RoundingMode =
4
+ | 'ceil'
5
+ | 'floor'
6
+ | 'expand'
7
+ | 'trunc'
8
+ | 'halfCeil'
9
+ | 'halfFloor'
10
+ | 'halfExpand'
11
+ | 'halfTrunc'
12
+ | 'halfEven';
13
+
14
+ /**
15
+ * Options for assigning fields using `with()` or entire objects with
16
+ * `from()`.
17
+ * */
18
+ export type AssignmentOptions = {
19
+ /**
20
+ * How to deal with out-of-range values
21
+ *
22
+ * - In `'constrain'` mode, out-of-range values are clamped to the nearest
23
+ * in-range value.
24
+ * - In `'reject'` mode, out-of-range values will cause the function to
25
+ * throw a RangeError.
26
+ *
27
+ * The default is `'constrain'`.
28
+ */
29
+ overflow?: 'constrain' | 'reject';
30
+ };
31
+
32
+ /**
33
+ * Options for assigning fields using `Duration.prototype.with()` or entire
34
+ * objects with `Duration.from()`, and for arithmetic with
35
+ * `Duration.prototype.add()` and `Duration.prototype.subtract()`.
36
+ * */
37
+ export type DurationOptions = {
38
+ /**
39
+ * How to deal with out-of-range values
40
+ *
41
+ * - In `'constrain'` mode, out-of-range values are clamped to the nearest
42
+ * in-range value.
43
+ * - In `'balance'` mode, out-of-range values are resolved by balancing them
44
+ * with the next highest unit.
45
+ *
46
+ * The default is `'constrain'`.
47
+ */
48
+ overflow?: 'constrain' | 'balance';
49
+ };
50
+
51
+ /**
52
+ * Options for conversions of `Temporal.PlainDateTime` to `Temporal.Instant`
53
+ * */
54
+ export type ToInstantOptions = {
55
+ /**
56
+ * Controls handling of invalid or ambiguous times caused by time zone
57
+ * offset changes like Daylight Saving time (DST) transitions.
58
+ *
59
+ * This option is only relevant if a `DateTime` value does not exist in the
60
+ * destination time zone (e.g. near "Spring Forward" DST transitions), or
61
+ * exists more than once (e.g. near "Fall Back" DST transitions).
62
+ *
63
+ * In case of ambiguous or nonexistent times, this option controls what
64
+ * exact time to return:
65
+ * - `'compatible'`: Equivalent to `'earlier'` for backward transitions like
66
+ * the start of DST in the Spring, and `'later'` for forward transitions
67
+ * like the end of DST in the Fall. This matches the behavior of legacy
68
+ * `Date`, of libraries like moment.js, Luxon, or date-fns, and of
69
+ * cross-platform standards like [RFC 5545
70
+ * (iCalendar)](https://tools.ietf.org/html/rfc5545).
71
+ * - `'earlier'`: The earlier time of two possible times
72
+ * - `'later'`: The later of two possible times
73
+ * - `'reject'`: Throw a RangeError instead
74
+ *
75
+ * The default is `'compatible'`.
76
+ *
77
+ * */
78
+ disambiguation?: 'compatible' | 'earlier' | 'later' | 'reject';
79
+ };
80
+
81
+ type OffsetDisambiguationOptions = {
82
+ /**
83
+ * Time zone definitions can change. If an application stores data about
84
+ * events in the future, then stored data about future events may become
85
+ * ambiguous, for example if a country permanently abolishes DST. The
86
+ * `offset` option controls this unusual case.
87
+ *
88
+ * - `'use'` always uses the offset (if it's provided) to calculate the
89
+ * instant. This ensures that the result will match the instant that was
90
+ * originally stored, even if local clock time is different.
91
+ * - `'prefer'` uses the offset if it's valid for the date/time in this time
92
+ * zone, but if it's not valid then the time zone will be used as a
93
+ * fallback to calculate the instant.
94
+ * - `'ignore'` will disregard any provided offset. Instead, the time zone
95
+ * and date/time value are used to calculate the instant. This will keep
96
+ * local clock time unchanged but may result in a different real-world
97
+ * instant.
98
+ * - `'reject'` acts like `'prefer'`, except it will throw a RangeError if
99
+ * the offset is not valid for the given time zone identifier and
100
+ * date/time value.
101
+ *
102
+ * If the ISO string ends in 'Z' then this option is ignored because there
103
+ * is no possibility of ambiguity.
104
+ *
105
+ * If a time zone offset is not present in the input, then this option is
106
+ * ignored because the time zone will always be used to calculate the
107
+ * offset.
108
+ *
109
+ * If the offset is not used, and if the date/time and time zone don't
110
+ * uniquely identify a single instant, then the `disambiguation` option will
111
+ * be used to choose the correct instant. However, if the offset is used
112
+ * then the `disambiguation` option will be ignored.
113
+ */
114
+ offset?: 'use' | 'prefer' | 'ignore' | 'reject';
115
+ };
116
+
117
+ export type ZonedDateTimeAssignmentOptions = Partial<
118
+ AssignmentOptions & ToInstantOptions & OffsetDisambiguationOptions
119
+ >;
120
+
121
+ /**
122
+ * Options for arithmetic operations like `add()` and `subtract()`
123
+ * */
124
+ export type ArithmeticOptions = {
125
+ /**
126
+ * Controls handling of out-of-range arithmetic results.
127
+ *
128
+ * If a result is out of range, then `'constrain'` will clamp the result to
129
+ * the allowed range, while `'reject'` will throw a RangeError.
130
+ *
131
+ * The default is `'constrain'`.
132
+ */
133
+ overflow?: 'constrain' | 'reject';
134
+ };
135
+
136
+ export type DateUnit = 'year' | 'month' | 'week' | 'day';
137
+ export type TimeUnit = 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond';
138
+ export type DateTimeUnit = DateUnit | TimeUnit;
139
+
140
+ /**
141
+ * When the name of a unit is provided to a Temporal API as a string, it is
142
+ * usually singular, e.g. 'day' or 'hour'. But plural unit names like 'days'
143
+ * or 'hours' are also accepted.
144
+ * */
145
+ export type PluralUnit<T extends DateTimeUnit> = {
146
+ year: 'years';
147
+ month: 'months';
148
+ week: 'weeks';
149
+ day: 'days';
150
+ hour: 'hours';
151
+ minute: 'minutes';
152
+ second: 'seconds';
153
+ millisecond: 'milliseconds';
154
+ microsecond: 'microseconds';
155
+ nanosecond: 'nanoseconds';
156
+ }[T];
157
+
158
+ export type LargestUnit<T extends DateTimeUnit> = 'auto' | T | PluralUnit<T>;
159
+ export type SmallestUnit<T extends DateTimeUnit> = T | PluralUnit<T>;
160
+ export type TotalUnit<T extends DateTimeUnit> = T | PluralUnit<T>;
161
+
162
+ /**
163
+ * Options for outputting precision in toString() on types with seconds
164
+ */
165
+ export type ToStringPrecisionOptions = {
166
+ fractionalSecondDigits?: 'auto' | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
167
+ smallestUnit?: SmallestUnit<'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>;
168
+
169
+ /**
170
+ * Controls how rounding is performed:
171
+ * - `halfExpand`: Round to the nearest of the values allowed by
172
+ * `roundingIncrement` and `smallestUnit`. When there is a tie, round up.
173
+ * This mode is the default.
174
+ * - `ceil`: Always round up, towards the end of time.
175
+ * - `trunc`: Always round down, towards the beginning of time.
176
+ * - `floor`: Also round down, towards the beginning of time. This mode acts
177
+ * the same as `trunc`, but it's included for consistency with
178
+ * `Temporal.Duration.round()` where negative values are allowed and
179
+ * `trunc` rounds towards zero, unlike `floor` which rounds towards
180
+ * negative infinity which is usually unexpected. For this reason, `trunc`
181
+ * is recommended for most use cases.
182
+ */
183
+ roundingMode?: RoundingMode;
184
+ };
185
+
186
+ export type ShowCalendarOption = {
187
+ calendarName?: 'auto' | 'always' | 'never' | 'critical';
188
+ };
189
+
190
+ export type CalendarTypeToStringOptions = Partial<ToStringPrecisionOptions & ShowCalendarOption>;
191
+
192
+ export type ZonedDateTimeToStringOptions = Partial<
193
+ CalendarTypeToStringOptions & {
194
+ timeZoneName?: 'auto' | 'never' | 'critical';
195
+ offset?: 'auto' | 'never';
196
+ }
197
+ >;
198
+
199
+ export type InstantToStringOptions = Partial<
200
+ ToStringPrecisionOptions & {
201
+ timeZone: TimeZoneLike;
202
+ }
203
+ >;
204
+
205
+ /**
206
+ * Options to control the result of `until()` and `since()` methods in
207
+ * `Temporal` types.
208
+ */
209
+ export interface DifferenceOptions<T extends DateTimeUnit> {
210
+ /**
211
+ * The unit to round to. For example, to round to the nearest minute, use
212
+ * `smallestUnit: 'minute'`. This property is optional for `until()` and
213
+ * `since()`, because those methods default behavior is not to round.
214
+ * However, the same property is required for `round()`.
215
+ */
216
+ smallestUnit?: SmallestUnit<T>;
217
+
218
+ /**
219
+ * The largest unit to allow in the resulting `Temporal.Duration` object.
220
+ *
221
+ * Larger units will be "balanced" into smaller units. For example, if
222
+ * `largestUnit` is `'minute'` then a two-hour duration will be output as a
223
+ * 120-minute duration.
224
+ *
225
+ * Valid values may include `'year'`, `'month'`, `'week'`, `'day'`,
226
+ * `'hour'`, `'minute'`, `'second'`, `'millisecond'`, `'microsecond'`,
227
+ * `'nanosecond'` and `'auto'`, although some types may throw an exception
228
+ * if a value is used that would produce an invalid result. For example,
229
+ * `hours` is not accepted by `Temporal.PlainDate.prototype.since()`.
230
+ *
231
+ * The default is always `'auto'`, though the meaning of this depends on the
232
+ * type being used.
233
+ */
234
+ largestUnit?: LargestUnit<T>;
235
+
236
+ /**
237
+ * Allows rounding to an integer number of units. For example, to round to
238
+ * increments of a half hour, use `{ smallestUnit: 'minute',
239
+ * roundingIncrement: 30 }`.
240
+ */
241
+ roundingIncrement?: number;
242
+
243
+ /**
244
+ * Controls how rounding is performed:
245
+ * - `halfExpand`: Round to the nearest of the values allowed by
246
+ * `roundingIncrement` and `smallestUnit`. When there is a tie, round away
247
+ * from zero like `ceil` for positive durations and like `floor` for
248
+ * negative durations.
249
+ * - `ceil`: Always round up, towards the end of time.
250
+ * - `trunc`: Always round down, towards the beginning of time. This mode is
251
+ * the default.
252
+ * - `floor`: Also round down, towards the beginning of time. This mode acts
253
+ * the same as `trunc`, but it's included for consistency with
254
+ * `Temporal.Duration.round()` where negative values are allowed and
255
+ * `trunc` rounds towards zero, unlike `floor` which rounds towards
256
+ * negative infinity which is usually unexpected. For this reason, `trunc`
257
+ * is recommended for most use cases.
258
+ */
259
+ roundingMode?: RoundingMode;
260
+ }
261
+
262
+ /**
263
+ * `round` methods take one required parameter. If a string is provided, the
264
+ * resulting `Temporal.Duration` object will be rounded to that unit. If an
265
+ * object is provided, its `smallestUnit` property is required while other
266
+ * properties are optional. A string is treated the same as an object whose
267
+ * `smallestUnit` property value is that string.
268
+ */
269
+ export type RoundTo<T extends DateTimeUnit> =
270
+ | SmallestUnit<T>
271
+ | {
272
+ /**
273
+ * The unit to round to. For example, to round to the nearest minute,
274
+ * use `smallestUnit: 'minute'`. This option is required. Note that the
275
+ * same-named property is optional when passed to `until` or `since`
276
+ * methods, because those methods do no rounding by default.
277
+ */
278
+ smallestUnit: SmallestUnit<T>;
279
+
280
+ /**
281
+ * Allows rounding to an integer number of units. For example, to round to
282
+ * increments of a half hour, use `{ smallestUnit: 'minute',
283
+ * roundingIncrement: 30 }`.
284
+ */
285
+ roundingIncrement?: number;
286
+
287
+ /**
288
+ * Controls how rounding is performed:
289
+ * - `halfExpand`: Round to the nearest of the values allowed by
290
+ * `roundingIncrement` and `smallestUnit`. When there is a tie, round up.
291
+ * This mode is the default.
292
+ * - `ceil`: Always round up, towards the end of time.
293
+ * - `trunc`: Always round down, towards the beginning of time.
294
+ * - `floor`: Also round down, towards the beginning of time. This mode acts
295
+ * the same as `trunc`, but it's included for consistency with
296
+ * `Temporal.Duration.round()` where negative values are allowed and
297
+ * `trunc` rounds towards zero, unlike `floor` which rounds towards
298
+ * negative infinity which is usually unexpected. For this reason, `trunc`
299
+ * is recommended for most use cases.
300
+ */
301
+ roundingMode?: RoundingMode;
302
+ };
303
+
304
+ /**
305
+ * The `round` method of the `Temporal.Duration` accepts one required
306
+ * parameter. If a string is provided, the resulting `Temporal.Duration`
307
+ * object will be rounded to that unit. If an object is provided, the
308
+ * `smallestUnit` and/or `largestUnit` property is required, while other
309
+ * properties are optional. A string parameter is treated the same as an
310
+ * object whose `smallestUnit` property value is that string.
311
+ */
312
+ export type DurationRoundTo =
313
+ | SmallestUnit<DateTimeUnit>
314
+ | ((
315
+ | {
316
+ /**
317
+ * The unit to round to. For example, to round to the nearest
318
+ * minute, use `smallestUnit: 'minute'`. This property is normally
319
+ * required, but is optional if `largestUnit` is provided and not
320
+ * undefined.
321
+ */
322
+ smallestUnit: SmallestUnit<DateTimeUnit>;
323
+
324
+ /**
325
+ * The largest unit to allow in the resulting `Temporal.Duration`
326
+ * object.
327
+ *
328
+ * Larger units will be "balanced" into smaller units. For example,
329
+ * if `largestUnit` is `'minute'` then a two-hour duration will be
330
+ * output as a 120-minute duration.
331
+ *
332
+ * Valid values include `'year'`, `'month'`, `'week'`, `'day'`,
333
+ * `'hour'`, `'minute'`, `'second'`, `'millisecond'`,
334
+ * `'microsecond'`, `'nanosecond'` and `'auto'`.
335
+ *
336
+ * The default is `'auto'`, which means "the largest nonzero unit in
337
+ * the input duration". This default prevents expanding durations to
338
+ * larger units unless the caller opts into this behavior.
339
+ *
340
+ * If `smallestUnit` is larger, then `smallestUnit` will be used as
341
+ * `largestUnit`, superseding a caller-supplied or default value.
342
+ */
343
+ largestUnit?: LargestUnit<DateTimeUnit>;
344
+ }
345
+ | {
346
+ /**
347
+ * The unit to round to. For example, to round to the nearest
348
+ * minute, use `smallestUnit: 'minute'`. This property is normally
349
+ * required, but is optional if `largestUnit` is provided and not
350
+ * undefined.
351
+ */
352
+ smallestUnit?: SmallestUnit<DateTimeUnit>;
353
+
354
+ /**
355
+ * The largest unit to allow in the resulting `Temporal.Duration`
356
+ * object.
357
+ *
358
+ * Larger units will be "balanced" into smaller units. For example,
359
+ * if `largestUnit` is `'minute'` then a two-hour duration will be
360
+ * output as a 120-minute duration.
361
+ *
362
+ * Valid values include `'year'`, `'month'`, `'week'`, `'day'`,
363
+ * `'hour'`, `'minute'`, `'second'`, `'millisecond'`,
364
+ * `'microsecond'`, `'nanosecond'` and `'auto'`.
365
+ *
366
+ * The default is `'auto'`, which means "the largest nonzero unit in
367
+ * the input duration". This default prevents expanding durations to
368
+ * larger units unless the caller opts into this behavior.
369
+ *
370
+ * If `smallestUnit` is larger, then `smallestUnit` will be used as
371
+ * `largestUnit`, superseding a caller-supplied or default value.
372
+ */
373
+ largestUnit: LargestUnit<DateTimeUnit>;
374
+ }
375
+ ) & {
376
+ /**
377
+ * Allows rounding to an integer number of units. For example, to round
378
+ * to increments of a half hour, use `{ smallestUnit: 'minute',
379
+ * roundingIncrement: 30 }`.
380
+ */
381
+ roundingIncrement?: number;
382
+
383
+ /**
384
+ * Controls how rounding is performed:
385
+ * - `halfExpand`: Round to the nearest of the values allowed by
386
+ * `roundingIncrement` and `smallestUnit`. When there is a tie, round
387
+ * away from zero like `ceil` for positive durations and like `floor`
388
+ * for negative durations. This mode is the default.
389
+ * - `ceil`: Always round towards positive infinity. For negative
390
+ * durations this option will decrease the absolute value of the
391
+ * duration which may be unexpected. To round away from zero, use
392
+ * `ceil` for positive durations and `floor` for negative durations.
393
+ * - `trunc`: Always round down towards zero.
394
+ * - `floor`: Always round towards negative infinity. This mode acts the
395
+ * same as `trunc` for positive durations but for negative durations
396
+ * it will increase the absolute value of the result which may be
397
+ * unexpected. For this reason, `trunc` is recommended for most "round
398
+ * down" use cases.
399
+ */
400
+ roundingMode?: RoundingMode;
401
+
402
+ /**
403
+ * The starting point to use for rounding and conversions when
404
+ * variable-length units (years, months, weeks depending on the
405
+ * calendar) are involved. This option is required if any of the
406
+ * following are true:
407
+ * - `unit` is `'week'` or larger units
408
+ * - `this` has a nonzero value for `weeks` or larger units
409
+ *
410
+ * This value must be either a `Temporal.PlainDateTime`, a
411
+ * `Temporal.ZonedDateTime`, or a string or object value that can be
412
+ * passed to `from()` of those types. Examples:
413
+ * - `'2020-01-01T00:00-08:00[America/Los_Angeles]'`
414
+ * - `'2020-01-01'`
415
+ * - `Temporal.PlainDate.from('2020-01-01')`
416
+ *
417
+ * `Temporal.ZonedDateTime` will be tried first because it's more
418
+ * specific, with `Temporal.PlainDateTime` as a fallback.
419
+ *
420
+ * If the value resolves to a `Temporal.ZonedDateTime`, then operation
421
+ * will adjust for DST and other time zone transitions. Otherwise
422
+ * (including if this option is omitted), then the operation will ignore
423
+ * time zone transitions and all days will be assumed to be 24 hours
424
+ * long.
425
+ */
426
+ relativeTo?: Temporal.PlainDateTime | Temporal.ZonedDateTime | PlainDateTimeLike | ZonedDateTimeLike | string;
427
+ });
428
+
429
+ /**
430
+ * Options to control behavior of `Duration.prototype.total()`
431
+ */
432
+ export type DurationTotalOf =
433
+ | TotalUnit<DateTimeUnit>
434
+ | {
435
+ /**
436
+ * The unit to convert the duration to. This option is required.
437
+ */
438
+ unit: TotalUnit<DateTimeUnit>;
439
+
440
+ /**
441
+ * The starting point to use when variable-length units (years, months,
442
+ * weeks depending on the calendar) are involved. This option is required if
443
+ * any of the following are true:
444
+ * - `unit` is `'week'` or larger units
445
+ * - `this` has a nonzero value for `weeks` or larger units
446
+ *
447
+ * This value must be either a `Temporal.PlainDateTime`, a
448
+ * `Temporal.ZonedDateTime`, or a string or object value that can be passed
449
+ * to `from()` of those types. Examples:
450
+ * - `'2020-01-01T00:00-08:00[America/Los_Angeles]'`
451
+ * - `'2020-01-01'`
452
+ * - `Temporal.PlainDate.from('2020-01-01')`
453
+ *
454
+ * `Temporal.ZonedDateTime` will be tried first because it's more
455
+ * specific, with `Temporal.PlainDateTime` as a fallback.
456
+ *
457
+ * If the value resolves to a `Temporal.ZonedDateTime`, then operation will
458
+ * adjust for DST and other time zone transitions. Otherwise (including if
459
+ * this option is omitted), then the operation will ignore time zone
460
+ * transitions and all days will be assumed to be 24 hours long.
461
+ */
462
+ relativeTo?: Temporal.ZonedDateTime | Temporal.PlainDateTime | ZonedDateTimeLike | PlainDateTimeLike | string;
463
+ };
464
+
465
+ /**
466
+ * Options to control behavior of `Duration.compare()`
467
+ */
468
+ export interface DurationArithmeticOptions {
469
+ /**
470
+ * The starting point to use when variable-length units (years, months,
471
+ * weeks depending on the calendar) are involved. This option is required if
472
+ * either of the durations has a nonzero value for `weeks` or larger units.
473
+ *
474
+ * This value must be either a `Temporal.PlainDateTime`, a
475
+ * `Temporal.ZonedDateTime`, or a string or object value that can be passed
476
+ * to `from()` of those types. Examples:
477
+ * - `'2020-01-01T00:00-08:00[America/Los_Angeles]'`
478
+ * - `'2020-01-01'`
479
+ * - `Temporal.PlainDate.from('2020-01-01')`
480
+ *
481
+ * `Temporal.ZonedDateTime` will be tried first because it's more
482
+ * specific, with `Temporal.PlainDateTime` as a fallback.
483
+ *
484
+ * If the value resolves to a `Temporal.ZonedDateTime`, then operation will
485
+ * adjust for DST and other time zone transitions. Otherwise (including if
486
+ * this option is omitted), then the operation will ignore time zone
487
+ * transitions and all days will be assumed to be 24 hours long.
488
+ */
489
+ relativeTo?: Temporal.ZonedDateTime | Temporal.PlainDateTime | ZonedDateTimeLike | PlainDateTimeLike | string;
490
+ }
491
+
492
+ /**
493
+ * Options to control behaviour of `ZonedDateTime.prototype.getTimeZoneTransition()`
494
+ */
495
+ export type TransitionDirection = 'next' | 'previous' | { direction: 'next' | 'previous' };
496
+
497
+ // Handle Intl.LocalesArgument regardless of whether the TS version has it yet
498
+ type LocalesArgument = ConstructorParameters<typeof Intl.DateTimeFormat>[0];
499
+ // Provide a quick replacement for Intl.DurationFormatOptions if not in TS
500
+ type DurationFormatOptions = typeof Intl extends { DurationFormat: any }
501
+ ? ConstructorParameters<(typeof Intl)['DurationFormat']>[1]
502
+ : Record<string, unknown>;
503
+
504
+ export type DurationLike = {
505
+ years?: number;
506
+ months?: number;
507
+ weeks?: number;
508
+ days?: number;
509
+ hours?: number;
510
+ minutes?: number;
511
+ seconds?: number;
512
+ milliseconds?: number;
513
+ microseconds?: number;
514
+ nanoseconds?: number;
515
+ };
516
+
517
+ /**
518
+ *
519
+ * A `Temporal.Duration` represents an immutable duration of time which can be
520
+ * used in date/time arithmetic.
521
+ *
522
+ * See https://tc39.es/proposal-temporal/docs/duration.html for more details.
523
+ */
524
+ export class Duration {
525
+ static from(item: Temporal.Duration | DurationLike | string): Temporal.Duration;
526
+ static compare(
527
+ one: Temporal.Duration | DurationLike | string,
528
+ two: Temporal.Duration | DurationLike | string,
529
+ options?: DurationArithmeticOptions
530
+ ): ComparisonResult;
531
+ constructor(
532
+ years?: number,
533
+ months?: number,
534
+ weeks?: number,
535
+ days?: number,
536
+ hours?: number,
537
+ minutes?: number,
538
+ seconds?: number,
539
+ milliseconds?: number,
540
+ microseconds?: number,
541
+ nanoseconds?: number
542
+ );
543
+ readonly sign: -1 | 0 | 1;
544
+ readonly blank: boolean;
545
+ readonly years: number;
546
+ readonly months: number;
547
+ readonly weeks: number;
548
+ readonly days: number;
549
+ readonly hours: number;
550
+ readonly minutes: number;
551
+ readonly seconds: number;
552
+ readonly milliseconds: number;
553
+ readonly microseconds: number;
554
+ readonly nanoseconds: number;
555
+ negated(): Temporal.Duration;
556
+ abs(): Temporal.Duration;
557
+ with(durationLike: DurationLike): Temporal.Duration;
558
+ add(other: Temporal.Duration | DurationLike | string): Temporal.Duration;
559
+ subtract(other: Temporal.Duration | DurationLike | string): Temporal.Duration;
560
+ round(roundTo: DurationRoundTo): Temporal.Duration;
561
+ total(totalOf: DurationTotalOf): number;
562
+ toLocaleString(locales?: LocalesArgument, options?: DurationFormatOptions): string;
563
+ toJSON(): string;
564
+ toString(options?: ToStringPrecisionOptions): string;
565
+ valueOf(): never;
566
+ readonly [Symbol.toStringTag]: 'Temporal.Duration';
567
+ }
568
+
569
+ /**
570
+ * A `Temporal.Instant` is an exact point in time, with a precision in
571
+ * nanoseconds. No time zone or calendar information is present. Therefore,
572
+ * `Temporal.Instant` has no concept of days, months, or even hours.
573
+ *
574
+ * For convenience of interoperability, it internally uses nanoseconds since
575
+ * the {@link https://en.wikipedia.org/wiki/Unix_time|Unix epoch} (midnight
576
+ * UTC on January 1, 1970). However, a `Temporal.Instant` can be created from
577
+ * any of several expressions that refer to a single point in time, including
578
+ * an {@link https://datatracker.ietf.org/doc/html/rfc9557|RFC 9557 string}
579
+ * with a time zone offset such as '2020-01-23T17:04:36.491865121-08:00'.
580
+ *
581
+ * See https://tc39.es/proposal-temporal/docs/instant.html for more details.
582
+ */
583
+ export class Instant {
584
+ static fromEpochMilliseconds(epochMilliseconds: number): Temporal.Instant;
585
+ static fromEpochNanoseconds(epochNanoseconds: bigint): Temporal.Instant;
586
+ static from(item: Temporal.Instant | string): Temporal.Instant;
587
+ static compare(one: Temporal.Instant | string, two: Temporal.Instant | string): ComparisonResult;
588
+ constructor(epochNanoseconds: bigint);
589
+ readonly epochMilliseconds: number;
590
+ readonly epochNanoseconds: bigint;
591
+ equals(other: Temporal.Instant | string): boolean;
592
+ add(
593
+ durationLike: Omit<Temporal.Duration | DurationLike, 'years' | 'months' | 'weeks' | 'days'> | string
594
+ ): Temporal.Instant;
595
+ subtract(
596
+ durationLike: Omit<Temporal.Duration | DurationLike, 'years' | 'months' | 'weeks' | 'days'> | string
597
+ ): Temporal.Instant;
598
+ until(
599
+ other: Temporal.Instant | string,
600
+ options?: DifferenceOptions<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>
601
+ ): Temporal.Duration;
602
+ since(
603
+ other: Temporal.Instant | string,
604
+ options?: DifferenceOptions<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>
605
+ ): Temporal.Duration;
606
+ round(
607
+ roundTo: RoundTo<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>
608
+ ): Temporal.Instant;
609
+ toZonedDateTimeISO(tzLike: TimeZoneLike): Temporal.ZonedDateTime;
610
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
611
+ toJSON(): string;
612
+ toString(options?: InstantToStringOptions): string;
613
+ valueOf(): never;
614
+ readonly [Symbol.toStringTag]: 'Temporal.Instant';
615
+ }
616
+
617
+ /**
618
+ * Any of these types can be passed to Temporal methods instead of a calendar ID.
619
+ * */
620
+ export type CalendarLike = string | ZonedDateTime | PlainDateTime | PlainDate | PlainYearMonth | PlainMonthDay;
621
+
622
+ export type PlainDateLike = {
623
+ era?: string | undefined;
624
+ eraYear?: number | undefined;
625
+ year?: number;
626
+ month?: number;
627
+ monthCode?: string;
628
+ day?: number;
629
+ calendar?: CalendarLike;
630
+ };
631
+
632
+ /**
633
+ * A `Temporal.PlainDate` represents a calendar date. "Calendar date" refers to the
634
+ * concept of a date as expressed in everyday usage, independent of any time
635
+ * zone. For example, it could be used to represent an event on a calendar
636
+ * which happens during the whole day no matter which time zone it's happening
637
+ * in.
638
+ *
639
+ * See https://tc39.es/proposal-temporal/docs/plaindate.html for more details.
640
+ */
641
+ export class PlainDate {
642
+ static from(item: Temporal.PlainDate | PlainDateLike | string, options?: AssignmentOptions): Temporal.PlainDate;
643
+ static compare(
644
+ one: Temporal.PlainDate | PlainDateLike | string,
645
+ two: Temporal.PlainDate | PlainDateLike | string
646
+ ): ComparisonResult;
647
+ constructor(isoYear: number, isoMonth: number, isoDay: number, calendar?: string);
648
+ readonly era: string | undefined;
649
+ readonly eraYear: number | undefined;
650
+ readonly year: number;
651
+ readonly month: number;
652
+ readonly monthCode: string;
653
+ readonly day: number;
654
+ readonly calendarId: string;
655
+ readonly dayOfWeek: number;
656
+ readonly dayOfYear: number;
657
+ readonly weekOfYear: number | undefined;
658
+ readonly yearOfWeek: number | undefined;
659
+ readonly daysInWeek: number;
660
+ readonly daysInYear: number;
661
+ readonly daysInMonth: number;
662
+ readonly monthsInYear: number;
663
+ readonly inLeapYear: boolean;
664
+ equals(other: Temporal.PlainDate | PlainDateLike | string): boolean;
665
+ with(dateLike: PlainDateLike, options?: AssignmentOptions): Temporal.PlainDate;
666
+ withCalendar(calendar: CalendarLike): Temporal.PlainDate;
667
+ add(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainDate;
668
+ subtract(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainDate;
669
+ until(
670
+ other: Temporal.PlainDate | PlainDateLike | string,
671
+ options?: DifferenceOptions<'year' | 'month' | 'week' | 'day'>
672
+ ): Temporal.Duration;
673
+ since(
674
+ other: Temporal.PlainDate | PlainDateLike | string,
675
+ options?: DifferenceOptions<'year' | 'month' | 'week' | 'day'>
676
+ ): Temporal.Duration;
677
+ toPlainDateTime(temporalTime?: Temporal.PlainTime | PlainTimeLike | string): Temporal.PlainDateTime;
678
+ toZonedDateTime(
679
+ timeZoneAndTime:
680
+ | string
681
+ | {
682
+ timeZone: TimeZoneLike;
683
+ plainTime?: Temporal.PlainTime | PlainTimeLike | string;
684
+ }
685
+ ): Temporal.ZonedDateTime;
686
+ toPlainYearMonth(): Temporal.PlainYearMonth;
687
+ toPlainMonthDay(): Temporal.PlainMonthDay;
688
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
689
+ toJSON(): string;
690
+ toString(options?: ShowCalendarOption): string;
691
+ valueOf(): never;
692
+ readonly [Symbol.toStringTag]: 'Temporal.PlainDate';
693
+ }
694
+
695
+ export type PlainDateTimeLike = {
696
+ era?: string | undefined;
697
+ eraYear?: number | undefined;
698
+ year?: number;
699
+ month?: number;
700
+ monthCode?: string;
701
+ day?: number;
702
+ hour?: number;
703
+ minute?: number;
704
+ second?: number;
705
+ millisecond?: number;
706
+ microsecond?: number;
707
+ nanosecond?: number;
708
+ calendar?: CalendarLike;
709
+ };
710
+
711
+ /**
712
+ * A `Temporal.PlainDateTime` represents a calendar date and wall-clock time, with
713
+ * a precision in nanoseconds, and without any time zone. Of the Temporal
714
+ * classes carrying human-readable time information, it is the most general
715
+ * and complete one. `Temporal.PlainDate`, `Temporal.PlainTime`, `Temporal.PlainYearMonth`,
716
+ * and `Temporal.PlainMonthDay` all carry less information and should be used when
717
+ * complete information is not required.
718
+ *
719
+ * See https://tc39.es/proposal-temporal/docs/plaindatetime.html for more details.
720
+ */
721
+ export class PlainDateTime {
722
+ static from(
723
+ item: Temporal.PlainDateTime | PlainDateTimeLike | string,
724
+ options?: AssignmentOptions
725
+ ): Temporal.PlainDateTime;
726
+ static compare(
727
+ one: Temporal.PlainDateTime | PlainDateTimeLike | string,
728
+ two: Temporal.PlainDateTime | PlainDateTimeLike | string
729
+ ): ComparisonResult;
730
+ constructor(
731
+ isoYear: number,
732
+ isoMonth: number,
733
+ isoDay: number,
734
+ hour?: number,
735
+ minute?: number,
736
+ second?: number,
737
+ millisecond?: number,
738
+ microsecond?: number,
739
+ nanosecond?: number,
740
+ calendar?: string
741
+ );
742
+ readonly era: string | undefined;
743
+ readonly eraYear: number | undefined;
744
+ readonly year: number;
745
+ readonly month: number;
746
+ readonly monthCode: string;
747
+ readonly day: number;
748
+ readonly hour: number;
749
+ readonly minute: number;
750
+ readonly second: number;
751
+ readonly millisecond: number;
752
+ readonly microsecond: number;
753
+ readonly nanosecond: number;
754
+ readonly calendarId: string;
755
+ readonly dayOfWeek: number;
756
+ readonly dayOfYear: number;
757
+ readonly weekOfYear: number | undefined;
758
+ readonly yearOfWeek: number | undefined;
759
+ readonly daysInWeek: number;
760
+ readonly daysInYear: number;
761
+ readonly daysInMonth: number;
762
+ readonly monthsInYear: number;
763
+ readonly inLeapYear: boolean;
764
+ equals(other: Temporal.PlainDateTime | PlainDateTimeLike | string): boolean;
765
+ with(dateTimeLike: PlainDateTimeLike, options?: AssignmentOptions): Temporal.PlainDateTime;
766
+ withPlainTime(timeLike?: Temporal.PlainTime | PlainTimeLike | string): Temporal.PlainDateTime;
767
+ withCalendar(calendar: CalendarLike): Temporal.PlainDateTime;
768
+ add(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainDateTime;
769
+ subtract(
770
+ durationLike: Temporal.Duration | DurationLike | string,
771
+ options?: ArithmeticOptions
772
+ ): Temporal.PlainDateTime;
773
+ until(
774
+ other: Temporal.PlainDateTime | PlainDateTimeLike | string,
775
+ options?: DifferenceOptions<
776
+ 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'
777
+ >
778
+ ): Temporal.Duration;
779
+ since(
780
+ other: Temporal.PlainDateTime | PlainDateTimeLike | string,
781
+ options?: DifferenceOptions<
782
+ 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'
783
+ >
784
+ ): Temporal.Duration;
785
+ round(
786
+ roundTo: RoundTo<'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>
787
+ ): Temporal.PlainDateTime;
788
+ toZonedDateTime(tzLike: TimeZoneLike, options?: ToInstantOptions): Temporal.ZonedDateTime;
789
+ toPlainDate(): Temporal.PlainDate;
790
+ toPlainTime(): Temporal.PlainTime;
791
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
792
+ toJSON(): string;
793
+ toString(options?: CalendarTypeToStringOptions): string;
794
+ valueOf(): never;
795
+ readonly [Symbol.toStringTag]: 'Temporal.PlainDateTime';
796
+ }
797
+
798
+ export type PlainMonthDayLike = {
799
+ era?: string | undefined;
800
+ eraYear?: number | undefined;
801
+ year?: number;
802
+ month?: number;
803
+ monthCode?: string;
804
+ day?: number;
805
+ calendar?: CalendarLike;
806
+ };
807
+
808
+ /**
809
+ * A `Temporal.PlainMonthDay` represents a particular day on the calendar, but
810
+ * without a year. For example, it could be used to represent a yearly
811
+ * recurring event, like "Bastille Day is on the 14th of July."
812
+ *
813
+ * See https://tc39.es/proposal-temporal/docs/plainmonthday.html for more details.
814
+ */
815
+ export class PlainMonthDay {
816
+ static from(
817
+ item: Temporal.PlainMonthDay | PlainMonthDayLike | string,
818
+ options?: AssignmentOptions
819
+ ): Temporal.PlainMonthDay;
820
+ constructor(isoMonth: number, isoDay: number, calendar?: string, referenceISOYear?: number);
821
+ readonly monthCode: string;
822
+ readonly day: number;
823
+ readonly calendarId: string;
824
+ equals(other: Temporal.PlainMonthDay | PlainMonthDayLike | string): boolean;
825
+ with(monthDayLike: PlainMonthDayLike, options?: AssignmentOptions): Temporal.PlainMonthDay;
826
+ toPlainDate(year: { year: number }): Temporal.PlainDate;
827
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
828
+ toJSON(): string;
829
+ toString(options?: ShowCalendarOption): string;
830
+ valueOf(): never;
831
+ readonly [Symbol.toStringTag]: 'Temporal.PlainMonthDay';
832
+ }
833
+
834
+ export type PlainTimeLike = {
835
+ hour?: number;
836
+ minute?: number;
837
+ second?: number;
838
+ millisecond?: number;
839
+ microsecond?: number;
840
+ nanosecond?: number;
841
+ };
842
+
843
+ /**
844
+ * A `Temporal.PlainTime` represents a wall-clock time, with a precision in
845
+ * nanoseconds, and without any time zone. "Wall-clock time" refers to the
846
+ * concept of a time as expressed in everyday usage — the time that you read
847
+ * off the clock on the wall. For example, it could be used to represent an
848
+ * event that happens daily at a certain time, no matter what time zone.
849
+ *
850
+ * `Temporal.PlainTime` refers to a time with no associated calendar date; if you
851
+ * need to refer to a specific time on a specific day, use
852
+ * `Temporal.PlainDateTime`. A `Temporal.PlainTime` can be converted into a
853
+ * `Temporal.PlainDateTime` by combining it with a `Temporal.PlainDate` using the
854
+ * `toPlainDateTime()` method.
855
+ *
856
+ * See https://tc39.es/proposal-temporal/docs/plaintime.html for more details.
857
+ */
858
+ export class PlainTime {
859
+ static from(item: Temporal.PlainTime | PlainTimeLike | string, options?: AssignmentOptions): Temporal.PlainTime;
860
+ static compare(
861
+ one: Temporal.PlainTime | PlainTimeLike | string,
862
+ two: Temporal.PlainTime | PlainTimeLike | string
863
+ ): ComparisonResult;
864
+ constructor(
865
+ hour?: number,
866
+ minute?: number,
867
+ second?: number,
868
+ millisecond?: number,
869
+ microsecond?: number,
870
+ nanosecond?: number
871
+ );
872
+ readonly hour: number;
873
+ readonly minute: number;
874
+ readonly second: number;
875
+ readonly millisecond: number;
876
+ readonly microsecond: number;
877
+ readonly nanosecond: number;
878
+ equals(other: Temporal.PlainTime | PlainTimeLike | string): boolean;
879
+ with(timeLike: Temporal.PlainTime | PlainTimeLike, options?: AssignmentOptions): Temporal.PlainTime;
880
+ add(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainTime;
881
+ subtract(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainTime;
882
+ until(
883
+ other: Temporal.PlainTime | PlainTimeLike | string,
884
+ options?: DifferenceOptions<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>
885
+ ): Temporal.Duration;
886
+ since(
887
+ other: Temporal.PlainTime | PlainTimeLike | string,
888
+ options?: DifferenceOptions<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>
889
+ ): Temporal.Duration;
890
+ round(
891
+ roundTo: RoundTo<'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>
892
+ ): Temporal.PlainTime;
893
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
894
+ toJSON(): string;
895
+ toString(options?: ToStringPrecisionOptions): string;
896
+ valueOf(): never;
897
+ readonly [Symbol.toStringTag]: 'Temporal.PlainTime';
898
+ }
899
+
900
+ /**
901
+ * To provide a time zone to any non-constructor Temporal method, any of the
902
+ * following are allowed:
903
+ * - An IANA time zone ID string like "Europe/Paris"
904
+ * - An RFC 9557 string that includes a time zone annotation like
905
+ * "2025-03-13T05:40:57.499+01:00[Europe/Paris]"
906
+ * - A `Temporal.ZonedDateTime` object
907
+ */
908
+ export type TimeZoneLike = string | ZonedDateTime;
909
+
910
+ export type PlainYearMonthLike = {
911
+ era?: string | undefined;
912
+ eraYear?: number | undefined;
913
+ year?: number;
914
+ month?: number;
915
+ monthCode?: string;
916
+ calendar?: CalendarLike;
917
+ };
918
+
919
+ /**
920
+ * A `Temporal.PlainYearMonth` represents a particular month on the calendar. For
921
+ * example, it could be used to represent a particular instance of a monthly
922
+ * recurring event, like "the June 2019 meeting".
923
+ *
924
+ * See https://tc39.es/proposal-temporal/docs/plainyearmonth.html for more details.
925
+ */
926
+ export class PlainYearMonth {
927
+ static from(
928
+ item: Temporal.PlainYearMonth | PlainYearMonthLike | string,
929
+ options?: AssignmentOptions
930
+ ): Temporal.PlainYearMonth;
931
+ static compare(
932
+ one: Temporal.PlainYearMonth | PlainYearMonthLike | string,
933
+ two: Temporal.PlainYearMonth | PlainYearMonthLike | string
934
+ ): ComparisonResult;
935
+ constructor(isoYear: number, isoMonth: number, calendar?: string, referenceISODay?: number);
936
+ readonly era: string | undefined;
937
+ readonly eraYear: number | undefined;
938
+ readonly year: number;
939
+ readonly month: number;
940
+ readonly monthCode: string;
941
+ readonly calendarId: string;
942
+ readonly daysInMonth: number;
943
+ readonly daysInYear: number;
944
+ readonly monthsInYear: number;
945
+ readonly inLeapYear: boolean;
946
+ equals(other: Temporal.PlainYearMonth | PlainYearMonthLike | string): boolean;
947
+ with(yearMonthLike: PlainYearMonthLike, options?: AssignmentOptions): Temporal.PlainYearMonth;
948
+ add(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.PlainYearMonth;
949
+ subtract(
950
+ durationLike: Temporal.Duration | DurationLike | string,
951
+ options?: ArithmeticOptions
952
+ ): Temporal.PlainYearMonth;
953
+ until(
954
+ other: Temporal.PlainYearMonth | PlainYearMonthLike | string,
955
+ options?: DifferenceOptions<'year' | 'month'>
956
+ ): Temporal.Duration;
957
+ since(
958
+ other: Temporal.PlainYearMonth | PlainYearMonthLike | string,
959
+ options?: DifferenceOptions<'year' | 'month'>
960
+ ): Temporal.Duration;
961
+ toPlainDate(day: { day: number }): Temporal.PlainDate;
962
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
963
+ toJSON(): string;
964
+ toString(options?: ShowCalendarOption): string;
965
+ valueOf(): never;
966
+ readonly [Symbol.toStringTag]: 'Temporal.PlainYearMonth';
967
+ }
968
+
969
+ export type ZonedDateTimeLike = {
970
+ era?: string | undefined;
971
+ eraYear?: number | undefined;
972
+ year?: number;
973
+ month?: number;
974
+ monthCode?: string;
975
+ day?: number;
976
+ hour?: number;
977
+ minute?: number;
978
+ second?: number;
979
+ millisecond?: number;
980
+ microsecond?: number;
981
+ nanosecond?: number;
982
+ offset?: string;
983
+ timeZone?: TimeZoneLike;
984
+ calendar?: CalendarLike;
985
+ };
986
+
987
+ export class ZonedDateTime {
988
+ static from(
989
+ item: Temporal.ZonedDateTime | ZonedDateTimeLike | string,
990
+ options?: ZonedDateTimeAssignmentOptions
991
+ ): ZonedDateTime;
992
+ static compare(
993
+ one: Temporal.ZonedDateTime | ZonedDateTimeLike | string,
994
+ two: Temporal.ZonedDateTime | ZonedDateTimeLike | string
995
+ ): ComparisonResult;
996
+ constructor(epochNanoseconds: bigint, timeZone: string, calendar?: string);
997
+ readonly era: string | undefined;
998
+ readonly eraYear: number | undefined;
999
+ readonly year: number;
1000
+ readonly month: number;
1001
+ readonly monthCode: string;
1002
+ readonly day: number;
1003
+ readonly hour: number;
1004
+ readonly minute: number;
1005
+ readonly second: number;
1006
+ readonly millisecond: number;
1007
+ readonly microsecond: number;
1008
+ readonly nanosecond: number;
1009
+ readonly timeZoneId: string;
1010
+ readonly calendarId: string;
1011
+ readonly dayOfWeek: number;
1012
+ readonly dayOfYear: number;
1013
+ readonly weekOfYear: number | undefined;
1014
+ readonly yearOfWeek: number | undefined;
1015
+ readonly hoursInDay: number;
1016
+ readonly daysInWeek: number;
1017
+ readonly daysInMonth: number;
1018
+ readonly daysInYear: number;
1019
+ readonly monthsInYear: number;
1020
+ readonly inLeapYear: boolean;
1021
+ readonly offsetNanoseconds: number;
1022
+ readonly offset: string;
1023
+ readonly epochMilliseconds: number;
1024
+ readonly epochNanoseconds: bigint;
1025
+ equals(other: Temporal.ZonedDateTime | ZonedDateTimeLike | string): boolean;
1026
+ with(zonedDateTimeLike: ZonedDateTimeLike, options?: ZonedDateTimeAssignmentOptions): Temporal.ZonedDateTime;
1027
+ withPlainTime(timeLike?: Temporal.PlainTime | PlainTimeLike | string): Temporal.ZonedDateTime;
1028
+ withCalendar(calendar: CalendarLike): Temporal.ZonedDateTime;
1029
+ withTimeZone(timeZone: TimeZoneLike): Temporal.ZonedDateTime;
1030
+ add(durationLike: Temporal.Duration | DurationLike | string, options?: ArithmeticOptions): Temporal.ZonedDateTime;
1031
+ subtract(
1032
+ durationLike: Temporal.Duration | DurationLike | string,
1033
+ options?: ArithmeticOptions
1034
+ ): Temporal.ZonedDateTime;
1035
+ until(
1036
+ other: Temporal.ZonedDateTime | ZonedDateTimeLike | string,
1037
+ options?: Temporal.DifferenceOptions<
1038
+ 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'
1039
+ >
1040
+ ): Temporal.Duration;
1041
+ since(
1042
+ other: Temporal.ZonedDateTime | ZonedDateTimeLike | string,
1043
+ options?: Temporal.DifferenceOptions<
1044
+ 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'
1045
+ >
1046
+ ): Temporal.Duration;
1047
+ round(
1048
+ roundTo: RoundTo<'day' | 'hour' | 'minute' | 'second' | 'millisecond' | 'microsecond' | 'nanosecond'>
1049
+ ): Temporal.ZonedDateTime;
1050
+ startOfDay(): Temporal.ZonedDateTime;
1051
+ getTimeZoneTransition(direction: TransitionDirection): Temporal.ZonedDateTime | null;
1052
+ toInstant(): Temporal.Instant;
1053
+ toPlainDateTime(): Temporal.PlainDateTime;
1054
+ toPlainDate(): Temporal.PlainDate;
1055
+ toPlainTime(): Temporal.PlainTime;
1056
+ toLocaleString(locales?: LocalesArgument, options?: globalThis.Intl.DateTimeFormatOptions): string;
1057
+ toJSON(): string;
1058
+ toString(options?: ZonedDateTimeToStringOptions): string;
1059
+ valueOf(): never;
1060
+ readonly [Symbol.toStringTag]: 'Temporal.ZonedDateTime';
1061
+ }
1062
+
1063
+ /**
1064
+ * The `Temporal.Now` object has several methods which give information about
1065
+ * the current date, time, and time zone.
1066
+ *
1067
+ * See https://tc39.es/proposal-temporal/docs/now.html for more details.
1068
+ */
1069
+ export const Now: {
1070
+ /**
1071
+ * Get the exact system date and time as a `Temporal.Instant`.
1072
+ *
1073
+ * This method gets the current exact system time, without regard to
1074
+ * calendar or time zone. This is a good way to get a timestamp for an
1075
+ * event, for example. It works like the old-style JavaScript `Date.now()`,
1076
+ * but with nanosecond precision instead of milliseconds.
1077
+ *
1078
+ * Note that a `Temporal.Instant` doesn't know about time zones. For the
1079
+ * exact time in a specific time zone, use `Temporal.Now.zonedDateTimeISO`
1080
+ * or `Temporal.Now.zonedDateTime`.
1081
+ * */
1082
+ instant: () => Temporal.Instant;
1083
+
1084
+ /**
1085
+ * Get the current calendar date and clock time in a specific time zone,
1086
+ * using the ISO 8601 calendar.
1087
+ *
1088
+ * @param {TimeZoneLike} [tzLike] -
1089
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier}
1090
+ * string (e.g. `'Europe/London'`). If omitted, the environment's
1091
+ * current time zone will be used.
1092
+ */
1093
+ zonedDateTimeISO: (tzLike?: TimeZoneLike) => Temporal.ZonedDateTime;
1094
+
1095
+ /**
1096
+ * Get the current date and clock time in a specific time zone, using the
1097
+ * ISO 8601 calendar.
1098
+ *
1099
+ * Note that the `Temporal.PlainDateTime` type does not persist the time zone,
1100
+ * but retaining the time zone is required for most time-zone-related use
1101
+ * cases. Therefore, it's usually recommended to use
1102
+ * `Temporal.Now.zonedDateTimeISO` instead of this function.
1103
+ *
1104
+ * @param {TimeZoneLike} [tzLike] -
1105
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier}
1106
+ * string (e.g. `'Europe/London'`). If omitted, the environment's
1107
+ * current time zone will be used.
1108
+ */
1109
+ plainDateTimeISO: (tzLike?: TimeZoneLike) => Temporal.PlainDateTime;
1110
+
1111
+ /**
1112
+ * Get the current date in a specific time zone, using the ISO 8601
1113
+ * calendar.
1114
+ *
1115
+ * @param {TimeZoneLike} [tzLike] -
1116
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier}
1117
+ * string (e.g. `'Europe/London'`). If omitted, the environment's
1118
+ * current time zone will be used.
1119
+ */
1120
+ plainDateISO: (tzLike?: TimeZoneLike) => Temporal.PlainDate;
1121
+
1122
+ /**
1123
+ * Get the current clock time in a specific time zone, using the ISO 8601 calendar.
1124
+ *
1125
+ * @param {TimeZoneLike} [tzLike] -
1126
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone identifier}
1127
+ * string (e.g. `'Europe/London'`). If omitted, the environment's
1128
+ * current time zone will be used.
1129
+ */
1130
+ plainTimeISO: (tzLike?: TimeZoneLike) => Temporal.PlainTime;
1131
+
1132
+ /**
1133
+ * Get the identifier of the environment's current time zone.
1134
+ *
1135
+ * This method gets the identifier of the current system time zone. This
1136
+ * will usually be a named
1137
+ * {@link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones|IANA time zone}.
1138
+ */
1139
+ timeZoneId: () => string;
1140
+
1141
+ readonly [Symbol.toStringTag]: 'Temporal.Now';
1142
+ };
1143
+ }
1144
+
1145
+ declare namespace Intl {
1146
+ type Formattable =
1147
+ | Date
1148
+ | Temporal.Instant
1149
+ | Temporal.ZonedDateTime
1150
+ | Temporal.PlainDate
1151
+ | Temporal.PlainTime
1152
+ | Temporal.PlainDateTime
1153
+ | Temporal.PlainYearMonth
1154
+ | Temporal.PlainMonthDay;
1155
+
1156
+ export interface DateTimeFormat extends globalThis.Intl.DateTimeFormat {
1157
+ /**
1158
+ * Format a date into a string according to the locale and formatting
1159
+ * options of this `Intl.DateTimeFormat` object.
1160
+ *
1161
+ * @param date The date to format.
1162
+ */
1163
+ format(date?: Formattable | number): string;
1164
+
1165
+ /**
1166
+ * Allow locale-aware formatting of strings produced by
1167
+ * `Intl.DateTimeFormat` formatters.
1168
+ *
1169
+ * @param date The date to format.
1170
+ */
1171
+ formatToParts(date?: Formattable | number): globalThis.Intl.DateTimeFormatPart[];
1172
+
1173
+ /**
1174
+ * Format a date range in the most concise way based on the locale and
1175
+ * options provided when instantiating this `Intl.DateTimeFormat` object.
1176
+ *
1177
+ * @param startDate The start date of the range to format.
1178
+ * @param endDate The start date of the range to format. Must be the same
1179
+ * type as `startRange`.
1180
+ */
1181
+ formatRange<T extends Formattable>(startDate: T, endDate: T): string;
1182
+ formatRange(startDate: Date | number, endDate: Date | number): string;
1183
+
1184
+ /**
1185
+ * Allow locale-aware formatting of tokens representing each part of the
1186
+ * formatted date range produced by `Intl.DateTimeFormat` formatters.
1187
+ *
1188
+ * @param startDate The start date of the range to format.
1189
+ * @param endDate The start date of the range to format. Must be the same
1190
+ * type as `startRange`.
1191
+ */
1192
+ formatRangeToParts<T extends Formattable>(startDate: T, endDate: T): globalThis.Intl.DateTimeRangeFormatPart[];
1193
+ formatRangeToParts(startDate: Date | number, endDate: Date | number): globalThis.Intl.DateTimeRangeFormatPart[];
1194
+ }
1195
+
1196
+ export const DateTimeFormat: {
1197
+ /**
1198
+ * Creates `Intl.DateTimeFormat` objects that enable language-sensitive
1199
+ * date and time formatting.
1200
+ */
1201
+ new (locales?: string | string[], options?: globalThis.Intl.DateTimeFormatOptions): DateTimeFormat;
1202
+ (locales?: string | string[], options?: globalThis.Intl.DateTimeFormatOptions): DateTimeFormat;
1203
+
1204
+ /**
1205
+ * Get an array containing those of the provided locales that are supported
1206
+ * in date and time formatting without having to fall back to the runtime's
1207
+ * default locale.
1208
+ */
1209
+ supportedLocalesOf(locales: string | string[], options?: globalThis.Intl.DateTimeFormatOptions): string[];
1210
+ };
1211
+ }
1212
+
1213
+ export { Intl as Intl };
1214
+
1215
+ export function toTemporalInstant(this: Date): Temporal.Instant;