@flickfyi/flkr 0.0.141 → 0.0.146

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 (494) hide show
  1. package/node_modules/@flickfyi/attestation/.turbo/turbo-build.log +7 -7
  2. package/node_modules/@flickfyi/biscuit/.turbo/turbo-build.log +7 -7
  3. package/node_modules/@flickfyi/core/.oxlintrc.json +2 -1
  4. package/node_modules/@flickfyi/core/.turbo/turbo-build.log +502 -95
  5. package/node_modules/@flickfyi/core/README.md +58 -4
  6. package/node_modules/@flickfyi/core/dist/index.cjs +1 -1
  7. package/node_modules/@flickfyi/core/dist/index.js +35 -24
  8. package/node_modules/@flickfyi/core/dist/kowalski/calculations.d.ts +17 -0
  9. package/node_modules/@flickfyi/core/dist/kowalski/calculator.d.ts +13 -0
  10. package/node_modules/@flickfyi/core/dist/kowalski/catalog.cjs +1 -0
  11. package/node_modules/@flickfyi/core/dist/kowalski/catalog.d.cts +962 -0
  12. package/node_modules/@flickfyi/core/dist/kowalski/catalog.d.ts +962 -0
  13. package/node_modules/@flickfyi/core/dist/kowalski/catalog.js +639 -0
  14. package/node_modules/@flickfyi/core/dist/kowalski/clocks.d.ts +4 -0
  15. package/node_modules/@flickfyi/core/dist/kowalski/date-time.d.ts +22 -0
  16. package/node_modules/@flickfyi/core/dist/kowalski/details.d.ts +7 -0
  17. package/node_modules/@flickfyi/core/dist/kowalski/everyday.d.ts +8 -0
  18. package/node_modules/@flickfyi/core/dist/kowalski/format.d.ts +4 -0
  19. package/node_modules/@flickfyi/core/dist/kowalski/frame.d.ts +161 -0
  20. package/node_modules/@flickfyi/core/dist/kowalski/index.cjs +21 -0
  21. package/node_modules/@flickfyi/core/dist/kowalski/index.d.cts +8 -0
  22. package/node_modules/@flickfyi/core/dist/kowalski/index.d.ts +8 -0
  23. package/node_modules/@flickfyi/core/dist/kowalski/index.js +7496 -0
  24. package/node_modules/@flickfyi/core/dist/kowalski/productivity.d.ts +5 -0
  25. package/node_modules/@flickfyi/core/dist/kowalski/recipe.d.ts +8 -0
  26. package/node_modules/@flickfyi/core/dist/kowalski/tools.d.ts +7 -0
  27. package/node_modules/@flickfyi/core/dist/kowalski/use-clock.d.ts +6 -0
  28. package/node_modules/@flickfyi/core/dist/kowalski/use-configured-feature.d.ts +19 -0
  29. package/node_modules/@flickfyi/core/dist/kowalski/use-feature-store.d.ts +15 -0
  30. package/node_modules/@flickfyi/core/dist/kowalski.css +506 -0
  31. package/node_modules/@flickfyi/core/dist/molecules/field/field.d.ts +8 -0
  32. package/node_modules/@flickfyi/core/dist/molecules/index.cjs +1 -1
  33. package/node_modules/@flickfyi/core/dist/molecules/index.d.cts +3 -0
  34. package/node_modules/@flickfyi/core/dist/molecules/index.d.ts +3 -0
  35. package/node_modules/@flickfyi/core/dist/molecules/index.js +88 -27
  36. package/node_modules/@flickfyi/core/dist/molecules/segmented/segmented.d.ts +10 -0
  37. package/node_modules/@flickfyi/core/dist/molecules/stepper/stepper.d.ts +10 -0
  38. package/node_modules/@flickfyi/core/dist/quantum/use-store.d.ts +7 -1
  39. package/node_modules/@flickfyi/core/dist/themes.css +2 -0
  40. package/node_modules/@flickfyi/core/examples/kowalski/bill-split/bill-split.stories.tsx +15 -0
  41. package/node_modules/@flickfyi/core/examples/kowalski/bill-split/bill-split.tsx +17 -0
  42. package/node_modules/@flickfyi/core/examples/kowalski/bookmark/bookmark.stories.tsx +15 -0
  43. package/node_modules/@flickfyi/core/examples/kowalski/bookmark/bookmark.tsx +23 -0
  44. package/node_modules/@flickfyi/core/examples/kowalski/budget/budget.stories.tsx +15 -0
  45. package/node_modules/@flickfyi/core/examples/kowalski/budget/budget.tsx +26 -0
  46. package/node_modules/@flickfyi/core/examples/kowalski/calculator/calculator.stories.tsx +15 -0
  47. package/node_modules/@flickfyi/core/examples/kowalski/calculator/calculator.tsx +24 -0
  48. package/node_modules/@flickfyi/core/examples/kowalski/checklist/checklist.stories.tsx +15 -0
  49. package/node_modules/@flickfyi/core/examples/kowalski/checklist/checklist.tsx +26 -0
  50. package/node_modules/@flickfyi/core/examples/kowalski/color-palette/color-palette.stories.tsx +15 -0
  51. package/node_modules/@flickfyi/core/examples/kowalski/color-palette/color-palette.tsx +22 -0
  52. package/node_modules/@flickfyi/core/examples/kowalski/contact/contact.stories.tsx +15 -0
  53. package/node_modules/@flickfyi/core/examples/kowalski/contact/contact.tsx +23 -0
  54. package/node_modules/@flickfyi/core/examples/kowalski/countdown/countdown.stories.tsx +15 -0
  55. package/node_modules/@flickfyi/core/examples/kowalski/countdown/countdown.tsx +23 -0
  56. package/node_modules/@flickfyi/core/examples/kowalski/event/event.stories.tsx +15 -0
  57. package/node_modules/@flickfyi/core/examples/kowalski/event/event.tsx +24 -0
  58. package/node_modules/@flickfyi/core/examples/kowalski/expense/expense.stories.tsx +15 -0
  59. package/node_modules/@flickfyi/core/examples/kowalski/expense/expense.tsx +23 -0
  60. package/node_modules/@flickfyi/core/examples/kowalski/goal/goal.stories.tsx +15 -0
  61. package/node_modules/@flickfyi/core/examples/kowalski/goal/goal.tsx +24 -0
  62. package/node_modules/@flickfyi/core/examples/kowalski/habit/habit.stories.tsx +15 -0
  63. package/node_modules/@flickfyi/core/examples/kowalski/habit/habit.tsx +23 -0
  64. package/node_modules/@flickfyi/core/examples/kowalski/ledger/ledger.stories.tsx +15 -0
  65. package/node_modules/@flickfyi/core/examples/kowalski/ledger/ledger.tsx +25 -0
  66. package/node_modules/@flickfyi/core/examples/kowalski/note/note.stories.tsx +15 -0
  67. package/node_modules/@flickfyi/core/examples/kowalski/note/note.tsx +22 -0
  68. package/node_modules/@flickfyi/core/examples/kowalski/poll/poll.stories.tsx +15 -0
  69. package/node_modules/@flickfyi/core/examples/kowalski/poll/poll.tsx +26 -0
  70. package/node_modules/@flickfyi/core/examples/kowalski/random-picker/random-picker.stories.tsx +15 -0
  71. package/node_modules/@flickfyi/core/examples/kowalski/random-picker/random-picker.tsx +23 -0
  72. package/node_modules/@flickfyi/core/examples/kowalski/rating/rating.stories.tsx +15 -0
  73. package/node_modules/@flickfyi/core/examples/kowalski/rating/rating.tsx +19 -0
  74. package/node_modules/@flickfyi/core/examples/kowalski/recipe/recipe.stories.tsx +15 -0
  75. package/node_modules/@flickfyi/core/examples/kowalski/recipe/recipe.tsx +120 -0
  76. package/node_modules/@flickfyi/core/examples/kowalski/reminder/reminder.stories.tsx +15 -0
  77. package/node_modules/@flickfyi/core/examples/kowalski/reminder/reminder.tsx +23 -0
  78. package/node_modules/@flickfyi/core/examples/kowalski/rotation/rotation.stories.tsx +15 -0
  79. package/node_modules/@flickfyi/core/examples/kowalski/rotation/rotation.tsx +27 -0
  80. package/node_modules/@flickfyi/core/examples/kowalski/scoreboard/scoreboard.stories.tsx +15 -0
  81. package/node_modules/@flickfyi/core/examples/kowalski/scoreboard/scoreboard.tsx +26 -0
  82. package/node_modules/@flickfyi/core/examples/kowalski/shopping-list/shopping-list.stories.tsx +15 -0
  83. package/node_modules/@flickfyi/core/examples/kowalski/shopping-list/shopping-list.tsx +27 -0
  84. package/node_modules/@flickfyi/core/examples/kowalski/task-board/task-board.stories.tsx +15 -0
  85. package/node_modules/@flickfyi/core/examples/kowalski/task-board/task-board.tsx +27 -0
  86. package/node_modules/@flickfyi/core/examples/kowalski/theme.ts +3 -0
  87. package/node_modules/@flickfyi/core/examples/kowalski/time-zone/time-zone.stories.tsx +15 -0
  88. package/node_modules/@flickfyi/core/examples/kowalski/time-zone/time-zone.tsx +22 -0
  89. package/node_modules/@flickfyi/core/examples/kowalski/timer/timer.stories.tsx +15 -0
  90. package/node_modules/@flickfyi/core/examples/kowalski/timer/timer.tsx +23 -0
  91. package/node_modules/@flickfyi/core/examples/kowalski/trip/trip.stories.tsx +15 -0
  92. package/node_modules/@flickfyi/core/examples/kowalski/trip/trip.tsx +26 -0
  93. package/node_modules/@flickfyi/core/examples/kowalski/unit-converter/unit-converter.stories.tsx +15 -0
  94. package/node_modules/@flickfyi/core/examples/kowalski/unit-converter/unit-converter.tsx +24 -0
  95. package/node_modules/@flickfyi/core/examples/parrott/calculator/calculator.stories.tsx +3 -1
  96. package/node_modules/@flickfyi/core/examples/parrott/checklist/checklist.stories.tsx +3 -1
  97. package/node_modules/@flickfyi/core/examples/parrott/countdown/countdown.stories.tsx +3 -1
  98. package/node_modules/@flickfyi/core/examples/parrott/counter/counter.stories.tsx +1 -0
  99. package/node_modules/@flickfyi/core/examples/parrott/fortune/fortune.stories.tsx +3 -1
  100. package/node_modules/@flickfyi/core/examples/parrott/grid/grid.stories.tsx +3 -1
  101. package/node_modules/@flickfyi/core/examples/parrott/kale-smoothie/kale-smoothie.stories.tsx +1 -0
  102. package/node_modules/@flickfyi/core/examples/parrott/list/list.stories.tsx +3 -1
  103. package/node_modules/@flickfyi/core/examples/parrott/log/log.stories.tsx +3 -1
  104. package/node_modules/@flickfyi/core/examples/parrott/timed-task/timed-task.stories.tsx +3 -1
  105. package/node_modules/@flickfyi/core/examples/parrott/timer/timer.stories.tsx +3 -1
  106. package/node_modules/@flickfyi/core/fixtures/native/host/project.yml +3 -0
  107. package/node_modules/@flickfyi/core/fixtures/native/src/catalog-features.tsx +88 -0
  108. package/node_modules/@flickfyi/core/package.json +35 -5
  109. package/node_modules/@flickfyi/core/package.tsgo.json +19 -1
  110. package/node_modules/@flickfyi/core/scripts/vite-globals.d.ts +2 -0
  111. package/node_modules/@flickfyi/core/src/generated-types.d.ts +1 -0
  112. package/node_modules/@flickfyi/core/src/kowalski/README.md +9 -0
  113. package/node_modules/@flickfyi/core/src/kowalski/calculations.ts +106 -0
  114. package/node_modules/@flickfyi/core/src/kowalski/calculator.ts +243 -0
  115. package/node_modules/@flickfyi/core/src/kowalski/catalog.ts +787 -0
  116. package/node_modules/@flickfyi/core/src/kowalski/clocks.tsx +464 -0
  117. package/node_modules/@flickfyi/core/src/kowalski/date-time.tsx +469 -0
  118. package/node_modules/@flickfyi/core/src/kowalski/details.tsx +1387 -0
  119. package/node_modules/@flickfyi/core/src/kowalski/everyday.tsx +652 -0
  120. package/node_modules/@flickfyi/core/src/kowalski/format.ts +48 -0
  121. package/node_modules/@flickfyi/core/src/kowalski/frame.tsx +351 -0
  122. package/node_modules/@flickfyi/core/src/kowalski/index.ts +23 -0
  123. package/node_modules/@flickfyi/core/src/kowalski/productivity.tsx +575 -0
  124. package/node_modules/@flickfyi/core/src/kowalski/recipe.tsx +555 -0
  125. package/node_modules/@flickfyi/core/src/kowalski/stories/composition.stories.tsx +47 -0
  126. package/node_modules/@flickfyi/core/src/kowalski/stories/composition.tsx +100 -0
  127. package/node_modules/@flickfyi/core/src/kowalski/tools.tsx +1213 -0
  128. package/node_modules/@flickfyi/core/src/kowalski/use-clock.ts +19 -0
  129. package/node_modules/@flickfyi/core/src/kowalski/use-configured-feature.ts +85 -0
  130. package/node_modules/@flickfyi/core/src/kowalski/use-feature-store.ts +119 -0
  131. package/node_modules/@flickfyi/core/src/molecules/field/field.tsx +34 -0
  132. package/node_modules/@flickfyi/core/src/molecules/index.ts +3 -0
  133. package/node_modules/@flickfyi/core/src/molecules/segmented/segmented.tsx +48 -0
  134. package/node_modules/@flickfyi/core/src/molecules/stepper/stepper.tsx +54 -0
  135. package/node_modules/@flickfyi/core/src/quantum/use-store.ts +41 -16
  136. package/node_modules/@flickfyi/core/tests/fly.test.ts +34 -7
  137. package/node_modules/@flickfyi/core/tests/kowalski-calculations.test.ts +60 -0
  138. package/node_modules/@flickfyi/core/tests/kowalski-calculator.test.ts +142 -0
  139. package/node_modules/@flickfyi/core/tests/kowalski-contracts.test.ts +223 -0
  140. package/node_modules/@flickfyi/core/tests/kowalski-date-time.test.tsx +462 -0
  141. package/node_modules/@flickfyi/core/tests/kowalski-features.test.tsx +2158 -0
  142. package/node_modules/@flickfyi/core/tests/kowalski-store.test.tsx +514 -0
  143. package/node_modules/@flickfyi/core/tests/preview-build.test.ts +1 -1
  144. package/node_modules/@flickfyi/core/tests/quantum-use-store.test.ts +53 -1
  145. package/node_modules/@flickfyi/core/tests/verify-tsgo-assets.test.ts +1 -1
  146. package/node_modules/@flickfyi/core/tsconfig.vite-dts.json +2 -1
  147. package/node_modules/@flickfyi/core/tsgo.bun.lock +111 -9
  148. package/node_modules/@flickfyi/core/tsgo.package.json +21 -3
  149. package/node_modules/@flickfyi/core/vite.config.ts +9 -5
  150. package/node_modules/@flickfyi/core/vitest.config.ts +1 -1
  151. package/node_modules/@flickfyi/http-message-sig/.turbo/turbo-build.log +7 -7
  152. package/node_modules/@flickfyi/identity/.turbo/turbo-build.log +8 -9
  153. package/node_modules/@flickfyi/lens/.turbo/turbo-build.log +7 -7
  154. package/node_modules/@flickfyi/photon/.turbo/turbo-build.log +10 -4
  155. package/node_modules/@flickfyi/photon/Sources/Photon/Components/Button.swift +29 -2
  156. package/node_modules/@flickfyi/photon/Sources/PhotonVersion/Resources/photon-version.json +1 -1
  157. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Components/ButtonHostTests.swift +26 -0
  158. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-features.styles.json +1 -0
  159. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-native.styles.json +1 -1
  160. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-scale.styles.json +1 -1
  161. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-theme.styles.json +1 -1
  162. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-typography.styles.json +1 -1
  163. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/stylex-calculator.styles.json +1 -1
  164. package/node_modules/@flickfyi/photon/dist/globals.d.ts +5 -0
  165. package/node_modules/@flickfyi/photon/dist/version.cjs +1 -1
  166. package/node_modules/@flickfyi/photon/dist/version.js +1 -1
  167. package/node_modules/@flickfyi/photon/generated/react-swiftui.d.ts +1 -0
  168. package/node_modules/@flickfyi/photon/package.json +1 -1
  169. package/node_modules/@flickfyi/photon/src/globals.d.ts +5 -0
  170. package/node_modules/@flickfyi/rwsdk-extensions/.turbo/turbo-build.log +7 -7
  171. package/node_modules/@formatjs/fast-memoize/LICENSE.md +9 -0
  172. package/node_modules/@formatjs/fast-memoize/README.md +3 -0
  173. package/node_modules/@formatjs/fast-memoize/index.d.ts +35 -0
  174. package/node_modules/@formatjs/fast-memoize/index.js +69 -0
  175. package/node_modules/@formatjs/fast-memoize/index.js.map +1 -0
  176. package/node_modules/@formatjs/fast-memoize/package.json +25 -0
  177. package/node_modules/@formatjs/icu-messageformat-parser/LICENSE.md +9 -0
  178. package/node_modules/@formatjs/icu-messageformat-parser/README.md +38 -0
  179. package/node_modules/@formatjs/icu-messageformat-parser/index.d.ts +393 -0
  180. package/node_modules/@formatjs/icu-messageformat-parser/index.js +2187 -0
  181. package/node_modules/@formatjs/icu-messageformat-parser/index.js.map +1 -0
  182. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.d.ts +175 -0
  183. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +209 -0
  184. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js.map +1 -0
  185. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.d.ts +183 -0
  186. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +162 -0
  187. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js.map +1 -0
  188. package/node_modules/@formatjs/icu-messageformat-parser/package.json +21 -0
  189. package/node_modules/@formatjs/icu-messageformat-parser/printer.d.ts +154 -0
  190. package/node_modules/@formatjs/icu-messageformat-parser/printer.js +224 -0
  191. package/node_modules/@formatjs/icu-messageformat-parser/printer.js.map +1 -0
  192. package/node_modules/@formatjs/icu-skeleton-parser/LICENSE.md +9 -0
  193. package/node_modules/@formatjs/icu-skeleton-parser/README.md +1 -0
  194. package/node_modules/@formatjs/icu-skeleton-parser/index.d.ts +67 -0
  195. package/node_modules/@formatjs/icu-skeleton-parser/index.js +380 -0
  196. package/node_modules/@formatjs/icu-skeleton-parser/index.js.map +1 -0
  197. package/node_modules/@formatjs/icu-skeleton-parser/package.json +15 -0
  198. package/node_modules/@formatjs/intl/LICENSE.md +9 -0
  199. package/node_modules/@formatjs/intl/README.md +3 -0
  200. package/node_modules/@formatjs/intl/index.d.ts +499 -0
  201. package/node_modules/@formatjs/intl/index.js +595 -0
  202. package/node_modules/@formatjs/intl/index.js.map +1 -0
  203. package/node_modules/@formatjs/intl/package.json +37 -0
  204. package/node_modules/decimal.js/LICENCE.md +23 -0
  205. package/node_modules/decimal.js/README.md +246 -0
  206. package/node_modules/decimal.js/decimal.d.ts +301 -0
  207. package/node_modules/decimal.js/decimal.js +4951 -0
  208. package/node_modules/decimal.js/decimal.mjs +4914 -0
  209. package/node_modules/decimal.js/package.json +55 -0
  210. package/node_modules/format-quantity/LICENSE +21 -0
  211. package/node_modules/format-quantity/README.md +181 -0
  212. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.development.d.ts +131 -0
  213. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.development.js +214 -0
  214. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.development.js.map +1 -0
  215. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.production.d.ts +131 -0
  216. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.production.js +2 -0
  217. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.production.js.map +1 -0
  218. package/node_modules/format-quantity/dist/cjs/index.d.ts +1 -0
  219. package/node_modules/format-quantity/dist/cjs/index.js +6 -0
  220. package/node_modules/format-quantity/dist/format-quantity.d.mts +131 -0
  221. package/node_modules/format-quantity/dist/format-quantity.legacy-esm.d.ts +131 -0
  222. package/node_modules/format-quantity/dist/format-quantity.legacy-esm.js +268 -0
  223. package/node_modules/format-quantity/dist/format-quantity.legacy-esm.js.map +1 -0
  224. package/node_modules/format-quantity/dist/format-quantity.mjs +208 -0
  225. package/node_modules/format-quantity/dist/format-quantity.mjs.map +1 -0
  226. package/node_modules/format-quantity/dist/format-quantity.production.d.mts +131 -0
  227. package/node_modules/format-quantity/dist/format-quantity.production.mjs +2 -0
  228. package/node_modules/format-quantity/dist/format-quantity.production.mjs.map +1 -0
  229. package/node_modules/format-quantity/dist/format-quantity.umd.min.js +3 -0
  230. package/node_modules/format-quantity/dist/format-quantity.umd.min.js.map +1 -0
  231. package/node_modules/format-quantity/package.json +81 -0
  232. package/node_modules/intl-messageformat/LICENSE.md +33 -0
  233. package/node_modules/intl-messageformat/README.md +3 -0
  234. package/node_modules/intl-messageformat/index.d.ts +177 -0
  235. package/node_modules/intl-messageformat/index.js +327 -0
  236. package/node_modules/intl-messageformat/index.js.map +1 -0
  237. package/node_modules/intl-messageformat/intl-messageformat.iife.js +2819 -0
  238. package/node_modules/intl-messageformat/package.json +40 -0
  239. package/node_modules/numeric-quantity/LICENSE +21 -0
  240. package/node_modules/numeric-quantity/README.md +306 -0
  241. package/node_modules/numeric-quantity/dist/cjs/index.d.ts +1 -0
  242. package/node_modules/numeric-quantity/dist/cjs/index.js +6 -0
  243. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.development.d.ts +293 -0
  244. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.development.js +579 -0
  245. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.development.js.map +1 -0
  246. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.production.d.ts +293 -0
  247. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.production.js +2 -0
  248. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.production.js.map +1 -0
  249. package/node_modules/numeric-quantity/dist/numeric-quantity.d.mts +293 -0
  250. package/node_modules/numeric-quantity/dist/numeric-quantity.iife.umd.min.js +2 -0
  251. package/node_modules/numeric-quantity/dist/numeric-quantity.iife.umd.min.js.map +1 -0
  252. package/node_modules/numeric-quantity/dist/numeric-quantity.legacy-esm.d.ts +293 -0
  253. package/node_modules/numeric-quantity/dist/numeric-quantity.legacy-esm.js +622 -0
  254. package/node_modules/numeric-quantity/dist/numeric-quantity.legacy-esm.js.map +1 -0
  255. package/node_modules/numeric-quantity/dist/numeric-quantity.mjs +564 -0
  256. package/node_modules/numeric-quantity/dist/numeric-quantity.mjs.map +1 -0
  257. package/node_modules/numeric-quantity/dist/numeric-quantity.production.d.mts +293 -0
  258. package/node_modules/numeric-quantity/dist/numeric-quantity.production.mjs +2 -0
  259. package/node_modules/numeric-quantity/dist/numeric-quantity.production.mjs.map +1 -0
  260. package/node_modules/numeric-quantity/package.json +72 -0
  261. package/node_modules/validator/LICENSE +20 -0
  262. package/node_modules/validator/README.md +269 -0
  263. package/node_modules/validator/es/index.js +218 -0
  264. package/node_modules/validator/es/lib/alpha.js +151 -0
  265. package/node_modules/validator/es/lib/blacklist.js +5 -0
  266. package/node_modules/validator/es/lib/contains.js +15 -0
  267. package/node_modules/validator/es/lib/equals.js +5 -0
  268. package/node_modules/validator/es/lib/escape.js +5 -0
  269. package/node_modules/validator/es/lib/isAbaRouting.js +15 -0
  270. package/node_modules/validator/es/lib/isAfter.js +10 -0
  271. package/node_modules/validator/es/lib/isAlpha.js +23 -0
  272. package/node_modules/validator/es/lib/isAlphanumeric.js +23 -0
  273. package/node_modules/validator/es/lib/isAscii.js +10 -0
  274. package/node_modules/validator/es/lib/isBIC.js +16 -0
  275. package/node_modules/validator/es/lib/isBase32.js +15 -0
  276. package/node_modules/validator/es/lib/isBase58.js +8 -0
  277. package/node_modules/validator/es/lib/isBase64.js +23 -0
  278. package/node_modules/validator/es/lib/isBefore.js +10 -0
  279. package/node_modules/validator/es/lib/isBoolean.js +15 -0
  280. package/node_modules/validator/es/lib/isBtcAddress.js +7 -0
  281. package/node_modules/validator/es/lib/isByteLength.js +19 -0
  282. package/node_modules/validator/es/lib/isCreditCard.js +43 -0
  283. package/node_modules/validator/es/lib/isCurrency.js +74 -0
  284. package/node_modules/validator/es/lib/isDataURI.js +31 -0
  285. package/node_modules/validator/es/lib/isDate.js +93 -0
  286. package/node_modules/validator/es/lib/isDecimal.js +22 -0
  287. package/node_modules/validator/es/lib/isDivisibleBy.js +6 -0
  288. package/node_modules/validator/es/lib/isEAN.js +70 -0
  289. package/node_modules/validator/es/lib/isEmail.js +165 -0
  290. package/node_modules/validator/es/lib/isEmpty.js +10 -0
  291. package/node_modules/validator/es/lib/isEthereumAddress.js +6 -0
  292. package/node_modules/validator/es/lib/isFQDN.js +67 -0
  293. package/node_modules/validator/es/lib/isFloat.js +14 -0
  294. package/node_modules/validator/es/lib/isFullWidth.js +6 -0
  295. package/node_modules/validator/es/lib/isHSL.js +13 -0
  296. package/node_modules/validator/es/lib/isHalfWidth.js +6 -0
  297. package/node_modules/validator/es/lib/isHash.js +21 -0
  298. package/node_modules/validator/es/lib/isHexColor.js +13 -0
  299. package/node_modules/validator/es/lib/isHexadecimal.js +6 -0
  300. package/node_modules/validator/es/lib/isIBAN.js +171 -0
  301. package/node_modules/validator/es/lib/isIMEI.js +40 -0
  302. package/node_modules/validator/es/lib/isIP.js +58 -0
  303. package/node_modules/validator/es/lib/isIPRange.js +41 -0
  304. package/node_modules/validator/es/lib/isISBN.js +47 -0
  305. package/node_modules/validator/es/lib/isISIN.js +55 -0
  306. package/node_modules/validator/es/lib/isISO15924.js +9 -0
  307. package/node_modules/validator/es/lib/isISO31661Alpha2.js +21 -0
  308. package/node_modules/validator/es/lib/isISO31661Alpha3.js +20 -0
  309. package/node_modules/validator/es/lib/isISO31661Numeric.js +8 -0
  310. package/node_modules/validator/es/lib/isISO4217.js +9 -0
  311. package/node_modules/validator/es/lib/isISO6346.js +28 -0
  312. package/node_modules/validator/es/lib/isISO6391.js +6 -0
  313. package/node_modules/validator/es/lib/isISO8601.js +42 -0
  314. package/node_modules/validator/es/lib/isISRC.js +8 -0
  315. package/node_modules/validator/es/lib/isISSN.js +19 -0
  316. package/node_modules/validator/es/lib/isIdentityCard.js +407 -0
  317. package/node_modules/validator/es/lib/isIn.js +23 -0
  318. package/node_modules/validator/es/lib/isInt.js +19 -0
  319. package/node_modules/validator/es/lib/isJSON.js +26 -0
  320. package/node_modules/validator/es/lib/isJWT.js +15 -0
  321. package/node_modules/validator/es/lib/isLatLong.js +21 -0
  322. package/node_modules/validator/es/lib/isLength.js +27 -0
  323. package/node_modules/validator/es/lib/isLicensePlate.js +58 -0
  324. package/node_modules/validator/es/lib/isLocale.js +107 -0
  325. package/node_modules/validator/es/lib/isLowercase.js +5 -0
  326. package/node_modules/validator/es/lib/isLuhnNumber.js +25 -0
  327. package/node_modules/validator/es/lib/isMACAddress.js +36 -0
  328. package/node_modules/validator/es/lib/isMD5.js +6 -0
  329. package/node_modules/validator/es/lib/isMagnetURI.js +9 -0
  330. package/node_modules/validator/es/lib/isMailtoURI.js +75 -0
  331. package/node_modules/validator/es/lib/isMimeType.js +40 -0
  332. package/node_modules/validator/es/lib/isMobilePhone.js +212 -0
  333. package/node_modules/validator/es/lib/isMongoId.js +6 -0
  334. package/node_modules/validator/es/lib/isMultibyte.js +10 -0
  335. package/node_modules/validator/es/lib/isNumeric.js +10 -0
  336. package/node_modules/validator/es/lib/isOctal.js +6 -0
  337. package/node_modules/validator/es/lib/isPassportNumber.js +145 -0
  338. package/node_modules/validator/es/lib/isPort.js +8 -0
  339. package/node_modules/validator/es/lib/isPostalCode.js +100 -0
  340. package/node_modules/validator/es/lib/isRFC3339.js +21 -0
  341. package/node_modules/validator/es/lib/isRgbColor.js +34 -0
  342. package/node_modules/validator/es/lib/isSemVer.js +14 -0
  343. package/node_modules/validator/es/lib/isSlug.js +6 -0
  344. package/node_modules/validator/es/lib/isStrongPassword.js +90 -0
  345. package/node_modules/validator/es/lib/isSurrogatePair.js +6 -0
  346. package/node_modules/validator/es/lib/isTaxID.js +1407 -0
  347. package/node_modules/validator/es/lib/isTime.js +22 -0
  348. package/node_modules/validator/es/lib/isULID.js +5 -0
  349. package/node_modules/validator/es/lib/isURL.js +241 -0
  350. package/node_modules/validator/es/lib/isUUID.js +23 -0
  351. package/node_modules/validator/es/lib/isUppercase.js +5 -0
  352. package/node_modules/validator/es/lib/isVAT.js +264 -0
  353. package/node_modules/validator/es/lib/isVariableWidth.js +7 -0
  354. package/node_modules/validator/es/lib/isWhitelisted.js +10 -0
  355. package/node_modules/validator/es/lib/ltrim.js +7 -0
  356. package/node_modules/validator/es/lib/matches.js +8 -0
  357. package/node_modules/validator/es/lib/normalizeEmail.js +131 -0
  358. package/node_modules/validator/es/lib/rtrim.js +15 -0
  359. package/node_modules/validator/es/lib/stripLow.js +7 -0
  360. package/node_modules/validator/es/lib/toBoolean.js +8 -0
  361. package/node_modules/validator/es/lib/toDate.js +6 -0
  362. package/node_modules/validator/es/lib/toFloat.js +5 -0
  363. package/node_modules/validator/es/lib/toInt.js +5 -0
  364. package/node_modules/validator/es/lib/trim.js +5 -0
  365. package/node_modules/validator/es/lib/unescape.js +8 -0
  366. package/node_modules/validator/es/lib/util/algorithms.js +79 -0
  367. package/node_modules/validator/es/lib/util/assertString.js +4 -0
  368. package/node_modules/validator/es/lib/util/checkHost.js +12 -0
  369. package/node_modules/validator/es/lib/util/includesArray.js +6 -0
  370. package/node_modules/validator/es/lib/util/includesString.js +4 -0
  371. package/node_modules/validator/es/lib/util/merge.js +14 -0
  372. package/node_modules/validator/es/lib/util/multilineRegex.js +12 -0
  373. package/node_modules/validator/es/lib/util/nullUndefinedCheck.js +3 -0
  374. package/node_modules/validator/es/lib/util/toString.js +13 -0
  375. package/node_modules/validator/es/lib/util/typeOf.js +10 -0
  376. package/node_modules/validator/es/lib/whitelist.js +5 -0
  377. package/node_modules/validator/index.js +229 -0
  378. package/node_modules/validator/lib/alpha.js +157 -0
  379. package/node_modules/validator/lib/blacklist.js +14 -0
  380. package/node_modules/validator/lib/contains.js +24 -0
  381. package/node_modules/validator/lib/equals.js +14 -0
  382. package/node_modules/validator/lib/escape.js +14 -0
  383. package/node_modules/validator/lib/isAbaRouting.js +23 -0
  384. package/node_modules/validator/lib/isAfter.js +19 -0
  385. package/node_modules/validator/lib/isAlpha.js +31 -0
  386. package/node_modules/validator/lib/isAlphanumeric.js +31 -0
  387. package/node_modules/validator/lib/isAscii.js +18 -0
  388. package/node_modules/validator/lib/isBIC.js +24 -0
  389. package/node_modules/validator/lib/isBase32.js +24 -0
  390. package/node_modules/validator/lib/isBase58.js +16 -0
  391. package/node_modules/validator/lib/isBase64.js +32 -0
  392. package/node_modules/validator/lib/isBefore.js +19 -0
  393. package/node_modules/validator/lib/isBoolean.js +24 -0
  394. package/node_modules/validator/lib/isBtcAddress.js +16 -0
  395. package/node_modules/validator/lib/isByteLength.js +27 -0
  396. package/node_modules/validator/lib/isCreditCard.js +52 -0
  397. package/node_modules/validator/lib/isCurrency.js +83 -0
  398. package/node_modules/validator/lib/isDataURI.js +40 -0
  399. package/node_modules/validator/lib/isDate.js +102 -0
  400. package/node_modules/validator/lib/isDecimal.js +31 -0
  401. package/node_modules/validator/lib/isDivisibleBy.js +15 -0
  402. package/node_modules/validator/lib/isEAN.js +78 -0
  403. package/node_modules/validator/lib/isEmail.js +174 -0
  404. package/node_modules/validator/lib/isEmpty.js +19 -0
  405. package/node_modules/validator/lib/isEthereumAddress.js +15 -0
  406. package/node_modules/validator/lib/isFQDN.js +76 -0
  407. package/node_modules/validator/lib/isFloat.js +22 -0
  408. package/node_modules/validator/lib/isFullWidth.js +14 -0
  409. package/node_modules/validator/lib/isHSL.js +22 -0
  410. package/node_modules/validator/lib/isHalfWidth.js +14 -0
  411. package/node_modules/validator/lib/isHash.js +30 -0
  412. package/node_modules/validator/lib/isHexColor.js +22 -0
  413. package/node_modules/validator/lib/isHexadecimal.js +15 -0
  414. package/node_modules/validator/lib/isIBAN.js +178 -0
  415. package/node_modules/validator/lib/isIMEI.js +49 -0
  416. package/node_modules/validator/lib/isIP.js +67 -0
  417. package/node_modules/validator/lib/isIPRange.js +50 -0
  418. package/node_modules/validator/lib/isISBN.js +56 -0
  419. package/node_modules/validator/lib/isISIN.js +64 -0
  420. package/node_modules/validator/lib/isISO15924.js +16 -0
  421. package/node_modules/validator/lib/isISO31661Alpha2.js +28 -0
  422. package/node_modules/validator/lib/isISO31661Alpha3.js +28 -0
  423. package/node_modules/validator/lib/isISO31661Numeric.js +16 -0
  424. package/node_modules/validator/lib/isISO4217.js +16 -0
  425. package/node_modules/validator/lib/isISO6346.js +35 -0
  426. package/node_modules/validator/lib/isISO6391.js +15 -0
  427. package/node_modules/validator/lib/isISO8601.js +50 -0
  428. package/node_modules/validator/lib/isISRC.js +16 -0
  429. package/node_modules/validator/lib/isISSN.js +28 -0
  430. package/node_modules/validator/lib/isIdentityCard.js +416 -0
  431. package/node_modules/validator/lib/isIn.js +32 -0
  432. package/node_modules/validator/lib/isInt.js +28 -0
  433. package/node_modules/validator/lib/isJSON.js +35 -0
  434. package/node_modules/validator/lib/isJWT.js +24 -0
  435. package/node_modules/validator/lib/isLatLong.js +30 -0
  436. package/node_modules/validator/lib/isLength.js +35 -0
  437. package/node_modules/validator/lib/isLicensePlate.js +67 -0
  438. package/node_modules/validator/lib/isLocale.js +115 -0
  439. package/node_modules/validator/lib/isLowercase.js +14 -0
  440. package/node_modules/validator/lib/isLuhnNumber.js +34 -0
  441. package/node_modules/validator/lib/isMACAddress.js +45 -0
  442. package/node_modules/validator/lib/isMD5.js +15 -0
  443. package/node_modules/validator/lib/isMagnetURI.js +18 -0
  444. package/node_modules/validator/lib/isMailtoURI.js +84 -0
  445. package/node_modules/validator/lib/isMimeType.js +48 -0
  446. package/node_modules/validator/lib/isMobilePhone.js +219 -0
  447. package/node_modules/validator/lib/isMongoId.js +15 -0
  448. package/node_modules/validator/lib/isMultibyte.js +18 -0
  449. package/node_modules/validator/lib/isNumeric.js +19 -0
  450. package/node_modules/validator/lib/isOctal.js +15 -0
  451. package/node_modules/validator/lib/isPassportNumber.js +152 -0
  452. package/node_modules/validator/lib/isPort.js +17 -0
  453. package/node_modules/validator/lib/isPostalCode.js +107 -0
  454. package/node_modules/validator/lib/isRFC3339.js +29 -0
  455. package/node_modules/validator/lib/isRgbColor.js +42 -0
  456. package/node_modules/validator/lib/isSemVer.js +22 -0
  457. package/node_modules/validator/lib/isSlug.js +15 -0
  458. package/node_modules/validator/lib/isStrongPassword.js +99 -0
  459. package/node_modules/validator/lib/isSurrogatePair.js +15 -0
  460. package/node_modules/validator/lib/isTaxID.js +1417 -0
  461. package/node_modules/validator/lib/isTime.js +31 -0
  462. package/node_modules/validator/lib/isULID.js +14 -0
  463. package/node_modules/validator/lib/isURL.js +249 -0
  464. package/node_modules/validator/lib/isUUID.js +32 -0
  465. package/node_modules/validator/lib/isUppercase.js +14 -0
  466. package/node_modules/validator/lib/isVAT.js +274 -0
  467. package/node_modules/validator/lib/isVariableWidth.js +16 -0
  468. package/node_modules/validator/lib/isWhitelisted.js +19 -0
  469. package/node_modules/validator/lib/ltrim.js +16 -0
  470. package/node_modules/validator/lib/matches.js +17 -0
  471. package/node_modules/validator/lib/normalizeEmail.js +140 -0
  472. package/node_modules/validator/lib/rtrim.js +24 -0
  473. package/node_modules/validator/lib/stripLow.js +16 -0
  474. package/node_modules/validator/lib/toBoolean.js +17 -0
  475. package/node_modules/validator/lib/toDate.js +15 -0
  476. package/node_modules/validator/lib/toFloat.js +14 -0
  477. package/node_modules/validator/lib/toInt.js +14 -0
  478. package/node_modules/validator/lib/trim.js +14 -0
  479. package/node_modules/validator/lib/unescape.js +17 -0
  480. package/node_modules/validator/lib/util/algorithms.js +88 -0
  481. package/node_modules/validator/lib/util/assertString.js +12 -0
  482. package/node_modules/validator/lib/util/checkHost.js +20 -0
  483. package/node_modules/validator/lib/util/includesArray.js +14 -0
  484. package/node_modules/validator/lib/util/includesString.js +12 -0
  485. package/node_modules/validator/lib/util/merge.js +22 -0
  486. package/node_modules/validator/lib/util/multilineRegex.js +20 -0
  487. package/node_modules/validator/lib/util/nullUndefinedCheck.js +11 -0
  488. package/node_modules/validator/lib/util/toString.js +21 -0
  489. package/node_modules/validator/lib/util/typeOf.js +18 -0
  490. package/node_modules/validator/lib/whitelist.js +14 -0
  491. package/node_modules/validator/package.json +76 -0
  492. package/node_modules/validator/validator.js +5808 -0
  493. package/node_modules/validator/validator.min.js +23 -0
  494. package/package.json +3 -3
@@ -0,0 +1,499 @@
1
+ import { FormatError, FormatXMLElementFn, Formats, FormattedText, FormattedText as FormattedText$1, Formatters as Formatters$1, IntlMessageFormat, MessageContract, MessageFormatArguments, MessageTag, MessageValue, MessageValues, MessageValues as MessageValues$1, MessageValuesOf, MessageValuesOf as MessageValuesOf$1, NoMessageValues, Options, PrimitiveType, TypedMessageValues, UntypedMessageContract } from "intl-messageformat";
2
+ import { MessageFormatElement } from "@formatjs/icu-messageformat-parser";
3
+ //#region packages/intl/typed-message.d.ts
4
+ export type TypedMessageDescriptor<V extends MessageValues$1 = {}> = Readonly<MessageDescriptor> & MessageContract<V>;
5
+ export type UntypedMessageDescriptor = MessageDescriptor & UntypedMessageContract;
6
+ export type TypedMessageArguments<V extends MessageValues$1, T = string, TChunk = T> = MessageFormatArguments<V, T, TChunk, [options?: Options]>;
7
+ export declare function defineMessage<V extends MessageValues$1 = {}, const D extends MessageDescriptor = never>(message: D, options?: {
8
+ typed: true;
9
+ }): Readonly<D> & Omit<TypedMessageDescriptor<NoInfer<V>>, keyof D>;
10
+ export declare function defineMessage<V extends MessageValues$1 = {}>(message: MessageDescriptor & {
11
+ id: NonNullable<MessageDescriptor["id"]>;
12
+ defaultMessage: string;
13
+ }, options?: {
14
+ typed: true;
15
+ }): TypedMessageDescriptor<NoInfer<V>> & Readonly<{
16
+ id: NonNullable<MessageDescriptor["id"]>;
17
+ defaultMessage: string;
18
+ }>;
19
+ export declare function defineMessage<V extends MessageValues$1 = {}>(message: MessageDescriptor & {
20
+ id: NonNullable<MessageDescriptor["id"]>;
21
+ defaultMessage: NonNullable<MessageDescriptor["defaultMessage"]>;
22
+ }, options?: {
23
+ typed: true;
24
+ }): TypedMessageDescriptor<NoInfer<V>> & Readonly<{
25
+ id: NonNullable<MessageDescriptor["id"]>;
26
+ defaultMessage: NonNullable<MessageDescriptor["defaultMessage"]>;
27
+ }>;
28
+ export declare function defineMessage<V extends MessageValues$1 = {}>(message: MessageDescriptor & {
29
+ defaultMessage: string;
30
+ }, options?: {
31
+ typed: true;
32
+ }): TypedMessageDescriptor<NoInfer<V>> & Readonly<{
33
+ defaultMessage: string;
34
+ }>;
35
+ export declare function defineMessage<V extends MessageValues$1 = {}>(message: MessageDescriptor & {
36
+ defaultMessage: NonNullable<MessageDescriptor["defaultMessage"]>;
37
+ }, options?: {
38
+ typed: true;
39
+ }): TypedMessageDescriptor<NoInfer<V>> & Readonly<{
40
+ defaultMessage: NonNullable<MessageDescriptor["defaultMessage"]>;
41
+ }>;
42
+ export declare function defineMessage<V extends MessageValues$1 = {}>(message: MessageDescriptor & {
43
+ id: NonNullable<MessageDescriptor["id"]>;
44
+ }, options?: {
45
+ typed: true;
46
+ }): TypedMessageDescriptor<NoInfer<V>> & Readonly<{
47
+ id: NonNullable<MessageDescriptor["id"]>;
48
+ }>;
49
+ export declare function defineMessage<V extends MessageValues$1 = {}>(message: MessageDescriptor, options?: {
50
+ typed: true;
51
+ }): TypedMessageDescriptor<NoInfer<V>>;
52
+ export declare function defineMessage<T>(message: T): Readonly<T>;
53
+ export declare function defineMessages<V extends Record<string, MessageValues$1> = never, const D extends { [K in keyof NoInfer<V>]: MessageDescriptor; } = never>(messages: [NoInfer<V>] extends [never] ? never : D, options?: {
54
+ typed: true;
55
+ }): { readonly [K in keyof NoInfer<V>]: Readonly<D[K]> & Omit<TypedMessageDescriptor<NoInfer<V[K]>>, keyof D[K]>; };
56
+ export declare function defineMessages<V extends Record<string, MessageValues$1> = never>(messages: [NoInfer<V>] extends [never] ? never : { [K in keyof NoInfer<V>]: MessageDescriptor & {
57
+ id: NonNullable<MessageDescriptor["id"]>;
58
+ defaultMessage: string;
59
+ }; }, options?: {
60
+ typed: true;
61
+ }): { readonly [K in keyof NoInfer<V>]: TypedMessageDescriptor<NoInfer<V[K]>> & Readonly<{
62
+ id: NonNullable<MessageDescriptor["id"]>;
63
+ defaultMessage: string;
64
+ }>; };
65
+ export declare function defineMessages<V extends Record<string, MessageValues$1> = never>(messages: [NoInfer<V>] extends [never] ? never : { [K in keyof NoInfer<V>]: MessageDescriptor & {
66
+ id: NonNullable<MessageDescriptor["id"]>;
67
+ defaultMessage: NonNullable<MessageDescriptor["defaultMessage"]>;
68
+ }; }, options?: {
69
+ typed: true;
70
+ }): { readonly [K in keyof NoInfer<V>]: TypedMessageDescriptor<NoInfer<V[K]>> & Readonly<{
71
+ id: NonNullable<MessageDescriptor["id"]>;
72
+ defaultMessage: NonNullable<MessageDescriptor["defaultMessage"]>;
73
+ }>; };
74
+ export declare function defineMessages<V extends Record<string, MessageValues$1> = never>(messages: [NoInfer<V>] extends [never] ? never : { [K in keyof NoInfer<V>]: MessageDescriptor & {
75
+ defaultMessage: string;
76
+ }; }, options?: {
77
+ typed: true;
78
+ }): { readonly [K in keyof NoInfer<V>]: TypedMessageDescriptor<NoInfer<V[K]>> & Readonly<{
79
+ defaultMessage: string;
80
+ }>; };
81
+ export declare function defineMessages<V extends Record<string, MessageValues$1> = never>(messages: [NoInfer<V>] extends [never] ? never : { [K in keyof NoInfer<V>]: MessageDescriptor & {
82
+ defaultMessage: NonNullable<MessageDescriptor["defaultMessage"]>;
83
+ }; }, options?: {
84
+ typed: true;
85
+ }): { readonly [K in keyof NoInfer<V>]: TypedMessageDescriptor<NoInfer<V[K]>> & Readonly<{
86
+ defaultMessage: NonNullable<MessageDescriptor["defaultMessage"]>;
87
+ }>; };
88
+ export declare function defineMessages<V extends Record<string, MessageValues$1> = never>(messages: [NoInfer<V>] extends [never] ? never : { [K in keyof NoInfer<V>]: MessageDescriptor & {
89
+ id: NonNullable<MessageDescriptor["id"]>;
90
+ }; }, options?: {
91
+ typed: true;
92
+ }): { readonly [K in keyof NoInfer<V>]: TypedMessageDescriptor<NoInfer<V[K]>> & Readonly<{
93
+ id: NonNullable<MessageDescriptor["id"]>;
94
+ }>; };
95
+ export declare function defineMessages<V extends Record<string, MessageValues$1> = never>(messages: [NoInfer<V>] extends [never] ? never : { [K in keyof NoInfer<V>]: MessageDescriptor; }, options?: {
96
+ typed: true;
97
+ }): { readonly [K in keyof NoInfer<V>]: TypedMessageDescriptor<NoInfer<V[K]>>; };
98
+ export declare function defineMessages<const D extends Record<string, MessageDescriptor>>(messages: D, options?: {
99
+ typed: true;
100
+ }): { readonly [K in keyof D]: Readonly<D[K]> & Omit<TypedMessageDescriptor, keyof D[K]>; };
101
+ export declare function defineMessages<K extends keyof any, T = MessageDescriptor, U extends Record<K, T> = Record<K, T>>(messages: U): { readonly [P in keyof U]: Readonly<U[P]>; };
102
+ /** Argument contracts keyed by application message IDs. */
103
+ export type RegisteredMessageId = keyof FormatjsIntl.MessageArguments & string;
104
+ export type RegisteredMessageValues<K extends RegisteredMessageId> = FormatjsIntl.MessageArguments[K] extends MessageValues$1 ? FormatjsIntl.MessageArguments[K] : never;
105
+ /** Keep known IDs out of the permissive overload without rejecting dynamic IDs. */
106
+ export type UnregisteredMessageDescriptor<D extends UntypedMessageDescriptor> = D & (D extends {
107
+ id: infer K;
108
+ } ? Extract<K, RegisteredMessageId> extends never ? unknown : never : unknown);
109
+ /** Derive a registry from typed catalog entries with literal IDs. */
110
+ export type MessageArgumentsFromCatalog<C extends Record<string, TypedMessageDescriptor<MessageValues$1>>> = { readonly [K in keyof C as C[K] extends {
111
+ id: infer I extends string;
112
+ } ? string extends I ? never : I : never]: MessageValuesOf$1<C[K]>; };
113
+ //#endregion
114
+ //#region packages/ecma402-abstract/types/duration.d.ts
115
+ interface DurationInput {
116
+ years?: number;
117
+ months?: number;
118
+ weeks?: number;
119
+ days?: number;
120
+ hours?: number;
121
+ minutes?: number;
122
+ seconds?: number;
123
+ milliseconds?: number;
124
+ microseconds?: number;
125
+ nanoseconds?: number;
126
+ }
127
+ type DurationFormatOptions = Partial<Omit<ResolvedDurationFormatOptions, "locale">> & {
128
+ localeMatcher?: "best fit" | "lookup";
129
+ };
130
+ interface ResolvedDurationFormatOptions {
131
+ locale: string;
132
+ style: "long" | "short" | "narrow" | "digital";
133
+ years: "long" | "short" | "narrow";
134
+ yearsDisplay: "always" | "auto";
135
+ months: "long" | "short" | "narrow";
136
+ monthsDisplay: "always" | "auto";
137
+ weeks: "long" | "short" | "narrow";
138
+ weeksDisplay: "always" | "auto";
139
+ days: "long" | "short" | "narrow";
140
+ daysDisplay: "always" | "auto";
141
+ hours: "long" | "short" | "narrow" | "numeric" | "2-digit";
142
+ hoursDisplay: "always" | "auto";
143
+ minutes: "long" | "short" | "narrow" | "numeric" | "2-digit";
144
+ minutesDisplay: "always" | "auto";
145
+ seconds: "long" | "short" | "narrow" | "numeric" | "2-digit";
146
+ secondsDisplay: "always" | "auto";
147
+ milliseconds: "long" | "short" | "narrow" | "numeric";
148
+ millisecondsDisplay: "always" | "auto";
149
+ microseconds: "long" | "short" | "narrow" | "numeric";
150
+ microsecondsDisplay: "always" | "auto";
151
+ nanoseconds: "long" | "short" | "narrow" | "numeric";
152
+ nanosecondsDisplay: "always" | "auto";
153
+ fractionalDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
154
+ numberingSystem: string;
155
+ }
156
+ interface DurationFormatPart {
157
+ unit?: string;
158
+ type: unknown;
159
+ value: string;
160
+ }
161
+ interface DurationFormat {
162
+ resolvedOptions(): ResolvedDurationFormatOptions;
163
+ formatToParts(duration: DurationInput | string): DurationFormatPart[];
164
+ format(duration: DurationInput | string): string;
165
+ }
166
+ //#endregion
167
+ //#region packages/ecma402-abstract/types/number.d.ts
168
+ type NumberFormatNotation = "standard" | "scientific" | "engineering" | "compact";
169
+ type RoundingPriorityType = "auto" | "morePrecision" | "lessPrecision";
170
+ type RoundingModeType = "ceil" | "floor" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven";
171
+ type UseGroupingType = "min2" | "auto" | "always" | boolean;
172
+ interface NumberFormatDigitOptions {
173
+ minimumIntegerDigits?: number;
174
+ minimumSignificantDigits?: number;
175
+ maximumSignificantDigits?: number;
176
+ minimumFractionDigits?: number;
177
+ maximumFractionDigits?: number;
178
+ roundingPriority?: RoundingPriorityType;
179
+ roundingIncrement?: number;
180
+ roundingMode?: RoundingModeType;
181
+ trailingZeroDisplay?: TrailingZeroDisplay;
182
+ }
183
+ type NumberFormatOptionsLocaleMatcher = "lookup" | "best fit";
184
+ type NumberFormatOptionsStyle = "decimal" | "percent" | "currency" | "unit";
185
+ type NumberFormatOptionsCompactDisplay = "short" | "long";
186
+ type NumberFormatOptionsCurrencyDisplay = "symbol" | "code" | "name" | "narrowSymbol";
187
+ type NumberFormatOptionsCurrencySign = "standard" | "accounting";
188
+ type NumberFormatOptionsNotation = NumberFormatNotation;
189
+ type NumberFormatOptionsSignDisplay = "auto" | "always" | "never" | "exceptZero" | "negative";
190
+ type NumberFormatOptionsUnitDisplay = "long" | "short" | "narrow";
191
+ type TrailingZeroDisplay = "auto" | "stripIfInteger";
192
+ type NumberFormatOptions = Omit<Intl.NumberFormatOptions, "signDisplay" | "useGrouping"> & NumberFormatDigitOptions & {
193
+ localeMatcher?: NumberFormatOptionsLocaleMatcher;
194
+ style?: NumberFormatOptionsStyle;
195
+ compactDisplay?: NumberFormatOptionsCompactDisplay;
196
+ currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
197
+ currencySign?: NumberFormatOptionsCurrencySign;
198
+ notation?: NumberFormatOptionsNotation;
199
+ signDisplay?: NumberFormatOptionsSignDisplay;
200
+ unit?: string;
201
+ unitDisplay?: NumberFormatOptionsUnitDisplay;
202
+ numberingSystem?: string;
203
+ trailingZeroDisplay?: TrailingZeroDisplay;
204
+ roundingPriority?: RoundingPriorityType;
205
+ roundingIncrement?: number;
206
+ roundingMode?: RoundingModeType;
207
+ useGrouping?: UseGroupingType;
208
+ };
209
+ //#endregion
210
+ //#region packages/intl/error.d.ts
211
+ export declare enum IntlErrorCode {
212
+ FORMAT_ERROR = "FORMAT_ERROR",
213
+ UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER",
214
+ INVALID_CONFIG = "INVALID_CONFIG",
215
+ MISSING_DATA = "MISSING_DATA",
216
+ MISSING_TRANSLATION = "MISSING_TRANSLATION"
217
+ }
218
+ export declare class IntlError<T extends IntlErrorCode = IntlErrorCode.FORMAT_ERROR> extends Error {
219
+ readonly code: T;
220
+ constructor(code: T, message: string, exception?: Error | unknown);
221
+ }
222
+ export declare class UnsupportedFormatterError extends IntlError<IntlErrorCode.UNSUPPORTED_FORMATTER> {
223
+ constructor(message: string, exception?: Error | unknown);
224
+ }
225
+ export declare class InvalidConfigError extends IntlError<IntlErrorCode.INVALID_CONFIG> {
226
+ constructor(message: string, exception?: Error | unknown);
227
+ }
228
+ export declare class MissingDataError extends IntlError<IntlErrorCode.MISSING_DATA> {
229
+ constructor(message: string, exception?: Error | unknown);
230
+ }
231
+ export declare class IntlFormatError extends IntlError<IntlErrorCode.FORMAT_ERROR> {
232
+ readonly descriptor?: MessageDescriptor;
233
+ readonly locale: string;
234
+ constructor(message: string, locale: string, exception?: Error | unknown);
235
+ }
236
+ export declare class MessageFormatError extends IntlFormatError {
237
+ readonly descriptor?: MessageDescriptor;
238
+ readonly locale: string;
239
+ constructor(message: string, locale: string, descriptor?: MessageDescriptor, exception?: Error | unknown);
240
+ }
241
+ export declare class MissingTranslationError extends IntlError<IntlErrorCode.MISSING_TRANSLATION> {
242
+ readonly descriptor?: MessageDescriptor;
243
+ constructor(descriptor: MessageDescriptor, locale: string);
244
+ }
245
+ //#endregion
246
+ //#region packages/intl/utils.d.ts
247
+ export declare function filterProps<T extends Record<string, any>, K extends string>(props: T, allowlist: Array<K>, defaults?: Partial<T>): Pick<T, K>;
248
+ export declare const DEFAULT_INTL_CONFIG: Pick<ResolvedIntlConfig<any>, "fallbackOnEmptyString" | "formats" | "messages" | "timeZone" | "defaultLocale" | "defaultFormats" | "onError" | "onWarn">;
249
+ export declare function createIntlCache(): IntlCache;
250
+ /**
251
+ * Create intl formatters and populate cache
252
+ * @param cache explicit cache to prevent leaking memory
253
+ */
254
+ export declare function createFormatters(cache?: IntlCache): Formatters;
255
+ export declare function getNamedFormat<T extends keyof CustomFormats>(formats: CustomFormats, type: T, name: string, onError: OnErrorFn): NumberFormatOptions | Intl.DateTimeFormatOptions | Intl.RelativeTimeFormatOptions | DurationFormatOptions | undefined;
256
+ //#endregion
257
+ //#region packages/intl/types.d.ts
258
+ export interface Part<T = string> {
259
+ type: "element" | "literal";
260
+ value: T;
261
+ }
262
+ declare global {
263
+ namespace FormatjsIntl {
264
+ interface Message {}
265
+ interface MessageFormatting {}
266
+ interface MessageArguments {}
267
+ interface IntlConfig {}
268
+ interface Formats {}
269
+ }
270
+ }
271
+ /** Applications can opt in to branded text across the TypeScript program. */
272
+ export type MessageTextOutput = FormatjsIntl.MessageFormatting extends {
273
+ brandedText: true;
274
+ } ? FormattedText$1 : string;
275
+ type MessageIds = FormatjsIntl.Message extends {
276
+ ids: infer T;
277
+ } ? T extends string ? T : string : string;
278
+ type Locale = FormatjsIntl.IntlConfig extends {
279
+ locale: infer T;
280
+ } ? T extends string ? T : string : string;
281
+ export type OnErrorFn = (err: MissingTranslationError | MessageFormatError | MissingDataError | InvalidConfigError | UnsupportedFormatterError | FormatError) => void;
282
+ export type OnWarnFn = (warning: string) => void;
283
+ /**
284
+ * Config for intl object.
285
+ * Generic type T is the type of potential rich text element. For example:
286
+ * With React, T would be React.ReactNode
287
+ */
288
+ export interface ResolvedIntlConfig<T = string> {
289
+ locale: Locale;
290
+ timeZone?: string;
291
+ fallbackOnEmptyString?: boolean;
292
+ formats: CustomFormats;
293
+ messages: Record<MessageIds, string> | Record<MessageIds, MessageFormatElement[]>;
294
+ defaultLocale: string;
295
+ defaultFormats: CustomFormats;
296
+ defaultRichTextElements?: Record<string, FormatXMLElementFn<T>>;
297
+ onError: OnErrorFn;
298
+ onWarn?: OnWarnFn;
299
+ }
300
+ export interface CustomFormats extends Partial<Formats> {
301
+ duration?: Record<string, DurationFormatOptions>;
302
+ relative?: Record<string, Intl.RelativeTimeFormatOptions>;
303
+ dateTimeRange?: Record<string, Intl.DateTimeFormatOptions>;
304
+ }
305
+ export interface CustomFormatConfig<Source = string> {
306
+ format?: Source extends keyof FormatjsIntl.Formats ? FormatjsIntl.Formats[Source] : string;
307
+ }
308
+ export type FormatDateTimeRangeOptions = Omit<Intl.DateTimeFormatOptions, "localeMatcher"> & CustomFormatConfig<"dateTimeRange">;
309
+ export type FormatDateOptions = Omit<Intl.DateTimeFormatOptions, "localeMatcher"> & CustomFormatConfig<"date">;
310
+ export type FormatTimeOptions = Omit<Intl.DateTimeFormatOptions, "localeMatcher"> & CustomFormatConfig<"time">;
311
+ export type FormatNumberOptions = Omit<NumberFormatOptions, "localeMatcher"> & CustomFormatConfig<"number">;
312
+ export type FormatRelativeTimeOptions = Omit<Intl.RelativeTimeFormatOptions, "localeMatcher"> & CustomFormatConfig<"time">;
313
+ export type FormatPluralOptions = Omit<Intl.PluralRulesOptions, "localeMatcher"> & CustomFormatConfig;
314
+ export type FormatDurationOptions = Omit<DurationFormatOptions, "localeMatcher"> & CustomFormatConfig<"duration">;
315
+ export type FormatListOptions = Omit<Intl.ListFormatOptions, "localeMatcher">;
316
+ export type FormatDisplayNameOptions = Omit<Intl.DisplayNamesOptions, "localeMatcher">;
317
+ /** A string-output formatter shared by core and framework integrations. */
318
+ export interface TextMessageFormatter {
319
+ <V extends MessageValues = never>(this: void, descriptor: [V] extends [never] ? never : UntypedMessageDescriptor, ...args: TypedMessageArguments<NoInfer<V>>): MessageTextOutput;
320
+ <D extends TypedMessageDescriptor<MessageValues>>(this: void, descriptor: D, ...args: TypedMessageArguments<MessageValuesOf<NoInfer<D>>>): MessageTextOutput;
321
+ <const K extends RegisteredMessageId>(this: void, descriptor: UntypedMessageDescriptor & {
322
+ id: K;
323
+ }, ...args: TypedMessageArguments<RegisteredMessageValues<NoInfer<K>>>): MessageTextOutput;
324
+ <V = never, const D extends UntypedMessageDescriptor = UntypedMessageDescriptor>(this: void, descriptor: [V] extends [never] ? D & UnregisteredMessageDescriptor<NoInfer<D>> : never, values?: Record<string, PrimitiveType | FormatXMLElementFn<string, string>>, opts?: Options): MessageTextOutput;
325
+ }
326
+ /**
327
+ * `TBase` is the type constraints of the rich text element in the formatted output.
328
+ * For example, with React, `TBase` should be `React.ReactNode`.
329
+ */
330
+ export interface IntlFormatters<TBase = unknown> {
331
+ formatDateTimeRange(this: void, from: Parameters<Intl.DateTimeFormat["formatRange"]>[0] | string, to: Parameters<Intl.DateTimeFormat["formatRange"]>[1] | string, opts?: FormatDateTimeRangeOptions): string;
332
+ formatDate(this: void, value: Parameters<Intl.DateTimeFormat["format"]>[0] | string, opts?: FormatDateOptions): string;
333
+ formatTime(this: void, value: Parameters<Intl.DateTimeFormat["format"]>[0] | string, opts?: FormatTimeOptions): string;
334
+ formatDateToParts(this: void, value: Parameters<Intl.DateTimeFormat["format"]>[0] | string, opts?: FormatDateOptions): Intl.DateTimeFormatPart[];
335
+ formatTimeToParts(this: void, value: Parameters<Intl.DateTimeFormat["format"]>[0] | string, opts?: FormatDateOptions): Intl.DateTimeFormatPart[];
336
+ formatDuration(this: void, value: DurationInput, opts?: FormatDurationOptions): string;
337
+ formatDurationToParts(this: void, value: DurationInput, opts?: FormatDurationOptions): DurationFormatPart[];
338
+ formatRelativeTime(this: void, value: Parameters<Intl.RelativeTimeFormat["format"]>[0], unit?: Parameters<Intl.RelativeTimeFormat["format"]>[1], opts?: FormatRelativeTimeOptions): string;
339
+ formatNumber(this: void, value: Parameters<Intl.NumberFormat["format"]>[0], opts?: FormatNumberOptions): string;
340
+ formatNumberToParts(this: void, value: Parameters<Intl.NumberFormat["format"]>[0], opts?: FormatNumberOptions): Intl.NumberFormatPart[];
341
+ formatPlural(this: void, value: Parameters<Intl.PluralRules["select"]>[0], opts?: FormatPluralOptions): ReturnType<Intl.PluralRules["select"]>;
342
+ formatMessage<V extends MessageValues = never, T extends TBase = TBase>(this: void, descriptor: [V] extends [never] ? never : UntypedMessageDescriptor, ...args: TypedMessageArguments<NoInfer<V>, string, T>): MessageTextOutput;
343
+ formatMessage<V extends MessageValues = never, T extends TBase = TBase>(this: void, descriptor: [V] extends [never] ? never : UntypedMessageDescriptor, ...args: TypedMessageArguments<NoInfer<V>, T>): string | T | Array<string | T>;
344
+ formatMessage<D extends TypedMessageDescriptor<MessageValues>>(this: void, descriptor: D, ...args: TypedMessageArguments<MessageValuesOf<NoInfer<D>>, string, TBase>): MessageTextOutput;
345
+ formatMessage<D extends TypedMessageDescriptor<MessageValues>>(this: void, descriptor: D, ...args: TypedMessageArguments<MessageValuesOf<NoInfer<D>>, TBase>): string | TBase | Array<string | TBase>;
346
+ formatMessage<const K extends RegisteredMessageId>(this: void, descriptor: UntypedMessageDescriptor & {
347
+ id: K;
348
+ }, ...args: TypedMessageArguments<RegisteredMessageValues<NoInfer<K>>, string, TBase>): MessageTextOutput;
349
+ formatMessage<const K extends RegisteredMessageId>(this: void, descriptor: UntypedMessageDescriptor & {
350
+ id: K;
351
+ }, ...args: TypedMessageArguments<RegisteredMessageValues<NoInfer<K>>, TBase>): string | TBase | Array<string | TBase>;
352
+ formatMessage<V = never, const D extends UntypedMessageDescriptor = UntypedMessageDescriptor>(this: void, descriptor: [V] extends [never] ? D & UnregisteredMessageDescriptor<NoInfer<D>> : never, values?: Record<string, PrimitiveType | FormatXMLElementFn<string, string>>, opts?: Options): MessageTextOutput;
353
+ formatMessage<V = never, const D extends UntypedMessageDescriptor = UntypedMessageDescriptor>(this: void, descriptor: [V] extends [never] ? D & UnregisteredMessageDescriptor<NoInfer<D>> : never, values?: Record<string, PrimitiveType | TBase | FormatXMLElementFn<TBase>>, opts?: Options): string | TBase | Array<string | TBase>;
354
+ $t<V extends MessageValues = never, T extends TBase = TBase>(this: void, descriptor: [V] extends [never] ? never : UntypedMessageDescriptor, ...args: TypedMessageArguments<NoInfer<V>, string, T>): MessageTextOutput;
355
+ $t<V extends MessageValues = never, T extends TBase = TBase>(this: void, descriptor: [V] extends [never] ? never : UntypedMessageDescriptor, ...args: TypedMessageArguments<NoInfer<V>, T>): string | T | Array<string | T>;
356
+ $t<D extends TypedMessageDescriptor<MessageValues>>(this: void, descriptor: D, ...args: TypedMessageArguments<MessageValuesOf<NoInfer<D>>, string, TBase>): MessageTextOutput;
357
+ $t<D extends TypedMessageDescriptor<MessageValues>>(this: void, descriptor: D, ...args: TypedMessageArguments<MessageValuesOf<NoInfer<D>>, TBase>): string | TBase | Array<string | TBase>;
358
+ $t<const K extends RegisteredMessageId>(this: void, descriptor: UntypedMessageDescriptor & {
359
+ id: K;
360
+ }, ...args: TypedMessageArguments<RegisteredMessageValues<NoInfer<K>>, string, TBase>): MessageTextOutput;
361
+ $t<const K extends RegisteredMessageId>(this: void, descriptor: UntypedMessageDescriptor & {
362
+ id: K;
363
+ }, ...args: TypedMessageArguments<RegisteredMessageValues<NoInfer<K>>, TBase>): string | TBase | Array<string | TBase>;
364
+ $t<V = never, const D extends UntypedMessageDescriptor = UntypedMessageDescriptor>(this: void, descriptor: [V] extends [never] ? D & UnregisteredMessageDescriptor<NoInfer<D>> : never, values?: Record<string, PrimitiveType | FormatXMLElementFn<string, string>>, opts?: Options): MessageTextOutput;
365
+ $t<V = never, const D extends UntypedMessageDescriptor = UntypedMessageDescriptor>(this: void, descriptor: [V] extends [never] ? D & UnregisteredMessageDescriptor<NoInfer<D>> : never, values?: Record<string, PrimitiveType | TBase | FormatXMLElementFn<TBase>>, opts?: Options): string | TBase | (TBase | string)[];
366
+ formatList(this: void, values: Iterable<string>, opts?: FormatListOptions): string;
367
+ formatList<T extends TBase>(this: void, values: Iterable<string | T>, opts?: FormatListOptions): T | string | (string | T)[];
368
+ formatListToParts<T extends TBase>(this: void, values: Iterable<string | T>, opts?: FormatListOptions): Part[];
369
+ formatDisplayName(this: void, value: Parameters<Intl.DisplayNames["of"]>[0], opts: FormatDisplayNameOptions): string | undefined;
370
+ }
371
+ export interface Formatters {
372
+ getDateTimeFormat(this: void, ...args: ConstructorParameters<typeof Intl.DateTimeFormat>): Intl.DateTimeFormat;
373
+ getNumberFormat(this: void, locales?: string | string[], opts?: NumberFormatOptions): Intl.NumberFormat;
374
+ getMessageFormat(this: void, ...args: ConstructorParameters<typeof IntlMessageFormat>): IntlMessageFormat;
375
+ getDurationFormat(this: void, locales?: string | string[], opts?: DurationFormatOptions): DurationFormat;
376
+ getRelativeTimeFormat(this: void, ...args: ConstructorParameters<typeof Intl.RelativeTimeFormat>): Intl.RelativeTimeFormat;
377
+ getPluralRules(this: void, ...args: ConstructorParameters<typeof Intl.PluralRules>): Intl.PluralRules;
378
+ getListFormat(this: void, ...args: ConstructorParameters<typeof Intl.ListFormat>): Intl.ListFormat;
379
+ getDisplayNames(this: void, ...args: ConstructorParameters<typeof Intl.DisplayNames>): Intl.DisplayNames;
380
+ }
381
+ export interface IntlShape<T = string> extends ResolvedIntlConfig<T>, IntlFormatters<T> {
382
+ formatters: Formatters;
383
+ }
384
+ export interface IntlCache {
385
+ dateTime: Record<string, Intl.DateTimeFormat>;
386
+ number: Record<string, Intl.NumberFormat>;
387
+ message: Record<string, IntlMessageFormat>;
388
+ duration: Record<string, DurationFormat>;
389
+ relativeTime: Record<string, Intl.RelativeTimeFormat>;
390
+ pluralRules: Record<string, Intl.PluralRules>;
391
+ list: Record<string, Intl.ListFormat>;
392
+ displayNames: Record<string, Intl.DisplayNames>;
393
+ }
394
+ export interface MessageDescriptor {
395
+ id?: MessageIds;
396
+ description?: string | object;
397
+ defaultMessage?: string | MessageFormatElement[];
398
+ }
399
+ export type IntlConfig<T = string> = Omit<ResolvedIntlConfig<T>, keyof typeof DEFAULT_INTL_CONFIG> & Partial<typeof DEFAULT_INTL_CONFIG>;
400
+ //#endregion
401
+ //#region packages/intl/message.d.ts
402
+ type FormatMessageFn<T> = ({ locale, formats, messages, defaultLocale, defaultFormats, fallbackOnEmptyString, onError, timeZone, defaultRichTextElements }: {
403
+ locale: string;
404
+ timeZone?: string;
405
+ formats: CustomFormats;
406
+ messages: Record<string, string> | Record<string, MessageFormatElement[]>;
407
+ defaultLocale: string;
408
+ defaultFormats: CustomFormats;
409
+ defaultRichTextElements?: Record<string, FormatXMLElementFn<T>>;
410
+ fallbackOnEmptyString?: boolean;
411
+ onError: OnErrorFn;
412
+ }, state: Formatters$1 & Pick<Formatters, "getMessageFormat">, messageDescriptor: MessageDescriptor, values?: Record<string, PrimitiveType | T | FormatXMLElementFn<T>>, opts?: Options) => T extends string ? string : Array<T | string> | string | T;
413
+ export declare const formatMessage: FormatMessageFn<any>;
414
+ //#endregion
415
+ //#region packages/intl/dateTime.d.ts
416
+ export declare function formatDate(config: {
417
+ locale: string;
418
+ timeZone?: string;
419
+ formats: CustomFormats;
420
+ onError: OnErrorFn;
421
+ }, getDateTimeFormat: Formatters["getDateTimeFormat"], value: Parameters<IntlFormatters["formatDate"]>[0], options?: Parameters<IntlFormatters["formatDate"]>[1]): string;
422
+ export declare function formatTime(config: {
423
+ locale: string;
424
+ timeZone?: string;
425
+ formats: CustomFormats;
426
+ onError: OnErrorFn;
427
+ }, getDateTimeFormat: Formatters["getDateTimeFormat"], value: Parameters<IntlFormatters["formatTime"]>[0], options?: Parameters<IntlFormatters["formatTime"]>[1]): string;
428
+ export declare function formatDateToParts(config: {
429
+ locale: string;
430
+ timeZone?: string;
431
+ formats: CustomFormats;
432
+ onError: OnErrorFn;
433
+ }, getDateTimeFormat: Formatters["getDateTimeFormat"], value: Parameters<IntlFormatters["formatDate"]>[0], options?: Parameters<IntlFormatters["formatDate"]>[1]): Intl.DateTimeFormatPart[];
434
+ export declare function formatTimeToParts(config: {
435
+ locale: string;
436
+ timeZone?: string;
437
+ formats: CustomFormats;
438
+ onError: OnErrorFn;
439
+ }, getDateTimeFormat: Formatters["getDateTimeFormat"], value: Parameters<IntlFormatters["formatTimeToParts"]>[0], options?: Parameters<IntlFormatters["formatTimeToParts"]>[1]): Intl.DateTimeFormatPart[];
440
+ //#endregion
441
+ //#region packages/intl/duration.d.ts
442
+ type Config = {
443
+ locale: string;
444
+ formats: CustomFormats;
445
+ onError: OnErrorFn;
446
+ };
447
+ export declare function formatDuration(config: Config, getDurationFormat: Formatters["getDurationFormat"], value: Parameters<IntlFormatters["formatDuration"]>[0], options?: FormatDurationOptions): string;
448
+ export declare function formatDurationToParts(config: Config, getDurationFormat: Formatters["getDurationFormat"], value: Parameters<IntlFormatters["formatDuration"]>[0], options?: FormatDurationOptions): ReturnType<IntlFormatters["formatDurationToParts"]>;
449
+ //#endregion
450
+ //#region packages/intl/displayName.d.ts
451
+ export declare function formatDisplayName({ locale, onError }: {
452
+ locale: string;
453
+ onError: OnErrorFn;
454
+ }, getDisplayNames: Formatters["getDisplayNames"], value: Parameters<IntlFormatters["formatDisplayName"]>[0], options: Parameters<IntlFormatters["formatDisplayName"]>[1]): string | undefined;
455
+ //#endregion
456
+ //#region packages/intl/list.d.ts
457
+ export declare function formatList(opts: {
458
+ locale: string;
459
+ onError: OnErrorFn;
460
+ }, getListFormat: Formatters["getListFormat"], values: Iterable<string>, options: Parameters<IntlFormatters["formatList"]>[1]): string;
461
+ //#endregion
462
+ //#region packages/intl/plural.d.ts
463
+ export declare function formatPlural({ locale, onError }: {
464
+ locale: string;
465
+ onError: OnErrorFn;
466
+ }, getPluralRules: Formatters["getPluralRules"], value: Parameters<IntlFormatters["formatPlural"]>[0], options?: Parameters<IntlFormatters["formatPlural"]>[1]): Intl.LDMLPluralRule;
467
+ //#endregion
468
+ //#region packages/intl/relativeTime.d.ts
469
+ export declare function formatRelativeTime(config: {
470
+ locale: string;
471
+ formats: CustomFormats;
472
+ onError: OnErrorFn;
473
+ }, getRelativeTimeFormat: Formatters["getRelativeTimeFormat"], value: Parameters<IntlFormatters["formatRelativeTime"]>[0], unit?: Parameters<IntlFormatters["formatRelativeTime"]>[1], options?: Parameters<IntlFormatters["formatRelativeTime"]>[2]): string;
474
+ //#endregion
475
+ //#region packages/intl/number.d.ts
476
+ export declare function formatNumber(config: {
477
+ locale: string;
478
+ formats: CustomFormats;
479
+ onError: OnErrorFn;
480
+ }, getNumberFormat: Formatters["getNumberFormat"], value: Parameters<IntlFormatters["formatNumber"]>[0], options?: Parameters<IntlFormatters["formatNumber"]>[1]): string;
481
+ export declare function formatNumberToParts(config: {
482
+ locale: string;
483
+ formats: CustomFormats;
484
+ onError: OnErrorFn;
485
+ }, getNumberFormat: Formatters["getNumberFormat"], value: Parameters<IntlFormatters["formatNumber"]>[0], options?: Parameters<IntlFormatters["formatNumber"]>[1]): Intl.NumberFormatPart[];
486
+ //#endregion
487
+ //#region packages/intl/create-intl.d.ts
488
+ interface CreateIntlFn<T = string, C extends IntlConfig<T> = IntlConfig<T>, S extends IntlShape<T> = IntlShape<T>> {
489
+ (config: C, cache?: IntlCache): S;
490
+ }
491
+ /**
492
+ * Create intl object
493
+ * @param config intl config
494
+ * @param cache cache for formatter instances to prevent memory leak
495
+ */
496
+ export declare function createIntl<T = string>(config: IntlConfig<T>, cache?: IntlCache): IntlShape<T>;
497
+ //#endregion
498
+ export type { CreateIntlFn, FormatMessageFn, FormattedText, MessageTag, MessageValue, MessageValues, MessageValuesOf, NoMessageValues, TypedMessageValues };
499
+ //# sourceMappingURL=index.d.ts.map