@ariestools/sdk 7.0.3

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 (409) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +45 -0
  3. package/dist/_pkg/api/neutral/ApiClient.d.ts +10 -0
  4. package/dist/_pkg/api/neutral/ApiConfig.d.ts +9 -0
  5. package/dist/_pkg/api/neutral/ApiEndpoint.d.ts +19 -0
  6. package/dist/_pkg/api/neutral/ApiStage.d.ts +11 -0
  7. package/dist/_pkg/api/neutral/getApiStage.d.ts +8 -0
  8. package/dist/_pkg/api/neutral/index.d.ts +6 -0
  9. package/dist/_pkg/api/neutral/index.mjs +78 -0
  10. package/dist/_pkg/api/neutral/model.d.ts +3 -0
  11. package/dist/_pkg/api/neutral/model.mjs +1 -0
  12. package/dist/_pkg/array/neutral/containsAll.d.ts +8 -0
  13. package/dist/_pkg/array/neutral/distinct.d.ts +6 -0
  14. package/dist/_pkg/array/neutral/filterAs.d.ts +8 -0
  15. package/dist/_pkg/array/neutral/filterAsync.d.ts +9 -0
  16. package/dist/_pkg/array/neutral/findAs.d.ts +15 -0
  17. package/dist/_pkg/array/neutral/flatten.d.ts +8 -0
  18. package/dist/_pkg/array/neutral/index.d.ts +8 -0
  19. package/dist/_pkg/array/neutral/index.mjs +80 -0
  20. package/dist/_pkg/array/neutral/uniq.d.ts +14 -0
  21. package/dist/_pkg/arraybuffer/neutral/equalArrayBuffers.d.ts +8 -0
  22. package/dist/_pkg/arraybuffer/neutral/index.d.ts +5 -0
  23. package/dist/_pkg/arraybuffer/neutral/index.mjs +74 -0
  24. package/dist/_pkg/arraybuffer/neutral/isArrayBuffer.d.ts +7 -0
  25. package/dist/_pkg/arraybuffer/neutral/toArrayBuffer.d.ts +11 -0
  26. package/dist/_pkg/arraybuffer/neutral/toUint8Array.d.ts +11 -0
  27. package/dist/_pkg/assert/neutral/assertDefinedEx.d.ts +41 -0
  28. package/dist/_pkg/assert/neutral/assertEx.d.ts +41 -0
  29. package/dist/_pkg/assert/neutral/index.d.ts +4 -0
  30. package/dist/_pkg/assert/neutral/index.mjs +30 -0
  31. package/dist/_pkg/assert/neutral/model.d.ts +2 -0
  32. package/dist/_pkg/assert/neutral/model.mjs +1 -0
  33. package/dist/_pkg/assert/neutral/types.d.ts +36 -0
  34. package/dist/_pkg/base/neutral/Base.d.ts +53 -0
  35. package/dist/_pkg/base/neutral/UniqueBase.d.ts +10 -0
  36. package/dist/_pkg/base/neutral/globallyUnique.d.ts +21 -0
  37. package/dist/_pkg/base/neutral/index.d.ts +4 -0
  38. package/dist/_pkg/base/neutral/index.mjs +164 -0
  39. package/dist/_pkg/base/neutral/model.d.ts +2 -0
  40. package/dist/_pkg/base/neutral/model.mjs +1 -0
  41. package/dist/_pkg/creatable/neutral/AbstractCreatable.d.ts +123 -0
  42. package/dist/_pkg/creatable/neutral/Creatable.d.ts +49 -0
  43. package/dist/_pkg/creatable/neutral/Factory.d.ts +28 -0
  44. package/dist/_pkg/creatable/neutral/index.d.ts +5 -0
  45. package/dist/_pkg/creatable/neutral/index.mjs +396 -0
  46. package/dist/_pkg/creatable/neutral/lib/getFunctionName.d.ts +7 -0
  47. package/dist/_pkg/creatable/neutral/lib/getRootFunction.d.ts +8 -0
  48. package/dist/_pkg/creatable/neutral/lib/index.d.ts +3 -0
  49. package/dist/_pkg/creatable/neutral/model/CreatableInstance.d.ts +16 -0
  50. package/dist/_pkg/creatable/neutral/model/CreatableParams.d.ts +16 -0
  51. package/dist/_pkg/creatable/neutral/model/CreatableStatusReporter.d.ts +15 -0
  52. package/dist/_pkg/creatable/neutral/model/Labels.d.ts +24 -0
  53. package/dist/_pkg/creatable/neutral/model/index.d.ts +5 -0
  54. package/dist/_pkg/creatable/neutral/model.d.ts +3 -0
  55. package/dist/_pkg/creatable/neutral/model.mjs +1 -0
  56. package/dist/_pkg/decimal-precision/neutral/fromFixedPoint.d.ts +8 -0
  57. package/dist/_pkg/decimal-precision/neutral/index.d.ts +4 -0
  58. package/dist/_pkg/decimal-precision/neutral/index.mjs +39 -0
  59. package/dist/_pkg/decimal-precision/neutral/toDecimalPrecision.d.ts +8 -0
  60. package/dist/_pkg/decimal-precision/neutral/toFixedPoint.d.ts +8 -0
  61. package/dist/_pkg/delay/neutral/delay.d.ts +7 -0
  62. package/dist/_pkg/delay/neutral/index.d.ts +2 -0
  63. package/dist/_pkg/delay/neutral/index.mjs +9 -0
  64. package/dist/_pkg/ellipsize/neutral/index.d.ts +8 -0
  65. package/dist/_pkg/ellipsize/neutral/index.mjs +10 -0
  66. package/dist/_pkg/enum/neutral/Enum.d.ts +88 -0
  67. package/dist/_pkg/enum/neutral/index.d.ts +2 -0
  68. package/dist/_pkg/enum/neutral/index.mjs +8 -0
  69. package/dist/_pkg/enum/neutral/model.d.ts +2 -0
  70. package/dist/_pkg/enum/neutral/model.mjs +1 -0
  71. package/dist/_pkg/error/neutral/assert.d.ts +12 -0
  72. package/dist/_pkg/error/neutral/handleError.d.ts +15 -0
  73. package/dist/_pkg/error/neutral/index.d.ts +3 -0
  74. package/dist/_pkg/error/neutral/index.mjs +32 -0
  75. package/dist/_pkg/error/neutral/model.d.ts +2 -0
  76. package/dist/_pkg/error/neutral/model.mjs +1 -0
  77. package/dist/_pkg/events/neutral/BaseEmitter.d.ts +74 -0
  78. package/dist/_pkg/events/neutral/Events/Events.d.ts +132 -0
  79. package/dist/_pkg/events/neutral/Events/index.d.ts +2 -0
  80. package/dist/_pkg/events/neutral/index.d.ts +4 -0
  81. package/dist/_pkg/events/neutral/index.mjs +415 -0
  82. package/dist/_pkg/events/neutral/model/Event.d.ts +21 -0
  83. package/dist/_pkg/events/neutral/model/EventEmitter.d.ts +25 -0
  84. package/dist/_pkg/events/neutral/model/index.d.ts +3 -0
  85. package/dist/_pkg/events/neutral/model.d.ts +3 -0
  86. package/dist/_pkg/events/neutral/model.mjs +1 -0
  87. package/dist/_pkg/exists/neutral/index.d.ts +10 -0
  88. package/dist/_pkg/exists/neutral/index.mjs +8 -0
  89. package/dist/_pkg/fetch/neutral/FetchClient.d.ts +46 -0
  90. package/dist/_pkg/fetch/neutral/FetchError.d.ts +80 -0
  91. package/dist/_pkg/fetch/neutral/FetchJsonClient.d.ts +19 -0
  92. package/dist/_pkg/fetch/neutral/fetchCompress.d.ts +12 -0
  93. package/dist/_pkg/fetch/neutral/fetchJson.d.ts +7 -0
  94. package/dist/_pkg/fetch/neutral/index.d.ts +11 -0
  95. package/dist/_pkg/fetch/neutral/index.mjs +365 -0
  96. package/dist/_pkg/fetch/neutral/methods.d.ts +12 -0
  97. package/dist/_pkg/fetch/neutral/model.d.ts +5 -0
  98. package/dist/_pkg/fetch/neutral/model.mjs +1 -0
  99. package/dist/_pkg/fetch/neutral/parseJson.d.ts +16 -0
  100. package/dist/_pkg/fetch/neutral/types.d.ts +12 -0
  101. package/dist/_pkg/forget/neutral/ForgetConfig.d.ts +21 -0
  102. package/dist/_pkg/forget/neutral/ForgetNodeConfig.d.ts +13 -0
  103. package/dist/_pkg/forget/neutral/ForgetPromise.d.ts +49 -0
  104. package/dist/_pkg/forget/neutral/ForgetPromiseNode.d.ts +15 -0
  105. package/dist/_pkg/forget/neutral/forget.d.ts +10 -0
  106. package/dist/_pkg/forget/neutral/forgetNode.d.ts +9 -0
  107. package/dist/_pkg/forget/neutral/index.d.ts +2 -0
  108. package/dist/_pkg/forget/neutral/index.mjs +162 -0
  109. package/dist/_pkg/forget/neutral/model.d.ts +3 -0
  110. package/dist/_pkg/forget/neutral/model.mjs +1 -0
  111. package/dist/_pkg/forget/neutral/neutral/index.d.ts +4 -0
  112. package/dist/_pkg/forget/neutral/node/index.d.ts +4 -0
  113. package/dist/_pkg/function-name/neutral/functionName.d.ts +7 -0
  114. package/dist/_pkg/function-name/neutral/index.d.ts +2 -0
  115. package/dist/_pkg/function-name/neutral/index.mjs +27 -0
  116. package/dist/_pkg/hex/neutral/HexRegEx.d.ts +19 -0
  117. package/dist/_pkg/hex/neutral/address/AddressTransformZod.d.ts +10 -0
  118. package/dist/_pkg/hex/neutral/address/AddressValidationZod.d.ts +10 -0
  119. package/dist/_pkg/hex/neutral/address/address.d.ts +18 -0
  120. package/dist/_pkg/hex/neutral/address/as.d.ts +13 -0
  121. package/dist/_pkg/hex/neutral/address/index.d.ts +7 -0
  122. package/dist/_pkg/hex/neutral/address/is.d.ts +12 -0
  123. package/dist/_pkg/hex/neutral/address/to.d.ts +12 -0
  124. package/dist/_pkg/hex/neutral/ethAddress.d.ts +45 -0
  125. package/dist/_pkg/hex/neutral/hash/as.d.ts +11 -0
  126. package/dist/_pkg/hex/neutral/hash/hash.d.ts +28 -0
  127. package/dist/_pkg/hex/neutral/hash/index.d.ts +5 -0
  128. package/dist/_pkg/hex/neutral/hash/is.d.ts +9 -0
  129. package/dist/_pkg/hex/neutral/hash/zod.d.ts +6 -0
  130. package/dist/_pkg/hex/neutral/hex/as.d.ts +11 -0
  131. package/dist/_pkg/hex/neutral/hex/from/from.d.ts +8 -0
  132. package/dist/_pkg/hex/neutral/hex/from/fromArrayBuffer.d.ts +8 -0
  133. package/dist/_pkg/hex/neutral/hex/from/fromBigInt.d.ts +8 -0
  134. package/dist/_pkg/hex/neutral/hex/from/fromHexString.d.ts +9 -0
  135. package/dist/_pkg/hex/neutral/hex/from/fromNumber.d.ts +9 -0
  136. package/dist/_pkg/hex/neutral/hex/from/index.d.ts +6 -0
  137. package/dist/_pkg/hex/neutral/hex/hex.d.ts +17 -0
  138. package/dist/_pkg/hex/neutral/hex/index.d.ts +9 -0
  139. package/dist/_pkg/hex/neutral/hex/is.d.ts +9 -0
  140. package/dist/_pkg/hex/neutral/hex/isHexZero.d.ts +7 -0
  141. package/dist/_pkg/hex/neutral/hex/legacy.d.ts +7 -0
  142. package/dist/_pkg/hex/neutral/hex/nibble.d.ts +13 -0
  143. package/dist/_pkg/hex/neutral/hex/to.d.ts +8 -0
  144. package/dist/_pkg/hex/neutral/hexToBigInt.d.ts +8 -0
  145. package/dist/_pkg/hex/neutral/index.d.ts +8 -0
  146. package/dist/_pkg/hex/neutral/index.mjs +381 -0
  147. package/dist/_pkg/hex/neutral/model.d.ts +3 -0
  148. package/dist/_pkg/hex/neutral/model.mjs +1 -0
  149. package/dist/_pkg/hex/neutral/zod.d.ts +6 -0
  150. package/dist/_pkg/logger/neutral/ConsoleLogger.d.ts +7 -0
  151. package/dist/_pkg/logger/neutral/IdLogger.d.ts +19 -0
  152. package/dist/_pkg/logger/neutral/LevelLogger.d.ts +47 -0
  153. package/dist/_pkg/logger/neutral/NoOpLogFunction.d.ts +3 -0
  154. package/dist/_pkg/logger/neutral/SilentLogger.d.ts +17 -0
  155. package/dist/_pkg/logger/neutral/getFunctionName.d.ts +7 -0
  156. package/dist/_pkg/logger/neutral/index.d.ts +7 -0
  157. package/dist/_pkg/logger/neutral/index.mjs +126 -0
  158. package/dist/_pkg/object/neutral/AsObjectFactory.d.ts +8 -0
  159. package/dist/_pkg/object/neutral/AsTypeFactory.d.ts +11 -0
  160. package/dist/_pkg/object/neutral/EmptyObject.d.ts +2 -0
  161. package/dist/_pkg/object/neutral/IsObjectFactory.d.ts +16 -0
  162. package/dist/_pkg/object/neutral/JsonObject.d.ts +49 -0
  163. package/dist/_pkg/object/neutral/ObjectWrapper.d.ts +9 -0
  164. package/dist/_pkg/object/neutral/OmitStartsWith.d.ts +18 -0
  165. package/dist/_pkg/object/neutral/Optional.d.ts +3 -0
  166. package/dist/_pkg/object/neutral/Override.d.ts +4 -0
  167. package/dist/_pkg/object/neutral/PartialRecord.d.ts +3 -0
  168. package/dist/_pkg/object/neutral/PickStartsWith.d.ts +9 -0
  169. package/dist/_pkg/object/neutral/Simplify.d.ts +5 -0
  170. package/dist/_pkg/object/neutral/StringKeyObject.d.ts +3 -0
  171. package/dist/_pkg/object/neutral/Validator.d.ts +13 -0
  172. package/dist/_pkg/object/neutral/WithAdditional.d.ts +4 -0
  173. package/dist/_pkg/object/neutral/asObject.d.ts +4 -0
  174. package/dist/_pkg/object/neutral/deepMerge.d.ts +49 -0
  175. package/dist/_pkg/object/neutral/index-deprecated.d.ts +2 -0
  176. package/dist/_pkg/object/neutral/index-un-deprecated.d.ts +22 -0
  177. package/dist/_pkg/object/neutral/index-un-deprecated.mjs +320 -0
  178. package/dist/_pkg/object/neutral/index.d.ts +3 -0
  179. package/dist/_pkg/object/neutral/index.mjs +435 -0
  180. package/dist/_pkg/object/neutral/isType.d.ts +4 -0
  181. package/dist/_pkg/object/neutral/model.d.ts +14 -0
  182. package/dist/_pkg/object/neutral/model.mjs +1 -0
  183. package/dist/_pkg/object/neutral/omitBy.d.ts +21 -0
  184. package/dist/_pkg/object/neutral/pickBy.d.ts +21 -0
  185. package/dist/_pkg/object/neutral/removeFields.d.ts +9 -0
  186. package/dist/_pkg/object/neutral/toSafeJson.d.ts +41 -0
  187. package/dist/_pkg/object-model/neutral/AnyObject.d.ts +8 -0
  188. package/dist/_pkg/object-model/neutral/AsTypeFactory.d.ts +12 -0
  189. package/dist/_pkg/object-model/neutral/AsTypeFunction.d.ts +14 -0
  190. package/dist/_pkg/object-model/neutral/Compare.d.ts +3 -0
  191. package/dist/_pkg/object-model/neutral/EmptyObject.d.ts +8 -0
  192. package/dist/_pkg/object-model/neutral/index.d.ts +6 -0
  193. package/dist/_pkg/object-model/neutral/index.mjs +1 -0
  194. package/dist/_pkg/object-model/neutral/model.d.ts +6 -0
  195. package/dist/_pkg/object-model/neutral/model.mjs +1 -0
  196. package/dist/_pkg/object-model/neutral/types.d.ts +25 -0
  197. package/dist/_pkg/platform/browser/browser/index.d.ts +9 -0
  198. package/dist/_pkg/platform/browser/index-browser.d.ts +2 -0
  199. package/dist/_pkg/platform/browser/index-browser.mjs +18 -0
  200. package/dist/_pkg/platform/browser/index-node.d.ts +2 -0
  201. package/dist/_pkg/platform/browser/node/index.d.ts +9 -0
  202. package/dist/_pkg/platform/node/browser/index.d.ts +9 -0
  203. package/dist/_pkg/platform/node/index-browser.d.ts +2 -0
  204. package/dist/_pkg/platform/node/index-node.d.ts +2 -0
  205. package/dist/_pkg/platform/node/index-node.mjs +18 -0
  206. package/dist/_pkg/platform/node/node/index.d.ts +9 -0
  207. package/dist/_pkg/profile/neutral/index.d.ts +2 -0
  208. package/dist/_pkg/profile/neutral/index.mjs +37 -0
  209. package/dist/_pkg/profile/neutral/model.d.ts +2 -0
  210. package/dist/_pkg/profile/neutral/model.mjs +1 -0
  211. package/dist/_pkg/profile/neutral/profiler.d.ts +17 -0
  212. package/dist/_pkg/promise/neutral/PromiseEx.d.ts +24 -0
  213. package/dist/_pkg/promise/neutral/fulfilled.d.ts +7 -0
  214. package/dist/_pkg/promise/neutral/fulfilledValues.d.ts +20 -0
  215. package/dist/_pkg/promise/neutral/index.d.ts +7 -0
  216. package/dist/_pkg/promise/neutral/index.mjs +57 -0
  217. package/dist/_pkg/promise/neutral/model.d.ts +3 -0
  218. package/dist/_pkg/promise/neutral/model.mjs +1 -0
  219. package/dist/_pkg/promise/neutral/rejected.d.ts +7 -0
  220. package/dist/_pkg/promise/neutral/toPromise.d.ts +8 -0
  221. package/dist/_pkg/promise/neutral/types.d.ts +23 -0
  222. package/dist/_pkg/retry/neutral/index.d.ts +2 -0
  223. package/dist/_pkg/retry/neutral/index.mjs +28 -0
  224. package/dist/_pkg/retry/neutral/model.d.ts +2 -0
  225. package/dist/_pkg/retry/neutral/model.mjs +1 -0
  226. package/dist/_pkg/retry/neutral/retry.d.ts +23 -0
  227. package/dist/_pkg/set/neutral/index.d.ts +2 -0
  228. package/dist/_pkg/set/neutral/index.mjs +20 -0
  229. package/dist/_pkg/set/neutral/lib/difference.d.ts +8 -0
  230. package/dist/_pkg/set/neutral/lib/index.d.ts +4 -0
  231. package/dist/_pkg/set/neutral/lib/intersection.d.ts +8 -0
  232. package/dist/_pkg/set/neutral/lib/union.d.ts +8 -0
  233. package/dist/_pkg/static-implements/neutral/index.d.ts +2 -0
  234. package/dist/_pkg/static-implements/neutral/index.mjs +10 -0
  235. package/dist/_pkg/static-implements/neutral/staticImplements.d.ts +7 -0
  236. package/dist/_pkg/storage/neutral/KeyValueStore.d.ts +34 -0
  237. package/dist/_pkg/storage/neutral/index.d.ts +2 -0
  238. package/dist/_pkg/storage/neutral/index.mjs +1 -0
  239. package/dist/_pkg/storage/neutral/model.d.ts +2 -0
  240. package/dist/_pkg/storage/neutral/model.mjs +1 -0
  241. package/dist/_pkg/telemetry/neutral/index.d.ts +3 -0
  242. package/dist/_pkg/telemetry/neutral/index.mjs +152 -0
  243. package/dist/_pkg/telemetry/neutral/model.d.ts +2 -0
  244. package/dist/_pkg/telemetry/neutral/model.mjs +1 -0
  245. package/dist/_pkg/telemetry/neutral/span.d.ts +51 -0
  246. package/dist/_pkg/telemetry/neutral/timeBudget.d.ts +12 -0
  247. package/dist/_pkg/telemetry-exporter/neutral/XyConsoleSpanExporter.d.ts +40 -0
  248. package/dist/_pkg/telemetry-exporter/neutral/index.d.ts +2 -0
  249. package/dist/_pkg/telemetry-exporter/neutral/index.mjs +88 -0
  250. package/dist/_pkg/timer/neutral/index.d.ts +2 -0
  251. package/dist/_pkg/timer/neutral/index.mjs +75 -0
  252. package/dist/_pkg/timer/neutral/setTimeoutEx.d.ts +37 -0
  253. package/dist/_pkg/typeof/neutral/Brand.d.ts +5 -0
  254. package/dist/_pkg/typeof/neutral/IdentityFunction.d.ts +3 -0
  255. package/dist/_pkg/typeof/neutral/ObjectTypeShape.d.ts +5 -0
  256. package/dist/_pkg/typeof/neutral/TypeOfTypes.d.ts +3 -0
  257. package/dist/_pkg/typeof/neutral/Typed.d.ts +41 -0
  258. package/dist/_pkg/typeof/neutral/ifDefined.d.ts +8 -0
  259. package/dist/_pkg/typeof/neutral/ifTypeOf.d.ts +11 -0
  260. package/dist/_pkg/typeof/neutral/index.d.ts +12 -0
  261. package/dist/_pkg/typeof/neutral/index.mjs +255 -0
  262. package/dist/_pkg/typeof/neutral/is.d.ts +116 -0
  263. package/dist/_pkg/typeof/neutral/isType.d.ts +9 -0
  264. package/dist/_pkg/typeof/neutral/model.d.ts +7 -0
  265. package/dist/_pkg/typeof/neutral/model.mjs +1 -0
  266. package/dist/_pkg/typeof/neutral/typeOf.d.ts +8 -0
  267. package/dist/_pkg/typeof/neutral/validateType.d.ts +10 -0
  268. package/dist/_pkg/url/browser/index-browser.d.ts +12 -0
  269. package/dist/_pkg/url/browser/index-browser.mjs +12 -0
  270. package/dist/_pkg/url/browser/index-neutral.d.ts +12 -0
  271. package/dist/_pkg/url/browser/index-node.d.ts +13 -0
  272. package/dist/_pkg/url/browser/lib/index.d.ts +2 -0
  273. package/dist/_pkg/url/browser/lib/isLocalhost.d.ts +7 -0
  274. package/dist/_pkg/url/neutral/index-browser.d.ts +12 -0
  275. package/dist/_pkg/url/neutral/index-neutral.d.ts +12 -0
  276. package/dist/_pkg/url/neutral/index-neutral.mjs +12 -0
  277. package/dist/_pkg/url/neutral/index-node.d.ts +13 -0
  278. package/dist/_pkg/url/neutral/lib/index.d.ts +2 -0
  279. package/dist/_pkg/url/neutral/lib/isLocalhost.d.ts +7 -0
  280. package/dist/_pkg/url/node/index-browser.d.ts +12 -0
  281. package/dist/_pkg/url/node/index-neutral.d.ts +12 -0
  282. package/dist/_pkg/url/node/index-node.d.ts +13 -0
  283. package/dist/_pkg/url/node/index-node.mjs +15 -0
  284. package/dist/_pkg/url/node/lib/index.d.ts +2 -0
  285. package/dist/_pkg/url/node/lib/isLocalhost.d.ts +7 -0
  286. package/dist/_pkg/zod/neutral/Config.d.ts +8 -0
  287. package/dist/_pkg/zod/neutral/index.d.ts +8 -0
  288. package/dist/_pkg/zod/neutral/index.mjs +127 -0
  289. package/dist/_pkg/zod/neutral/model.d.ts +2 -0
  290. package/dist/_pkg/zod/neutral/model.mjs +1 -0
  291. package/dist/_pkg/zod/neutral/zodAllFactory.d.ts +20 -0
  292. package/dist/_pkg/zod/neutral/zodAsAsyncFactory.d.ts +14 -0
  293. package/dist/_pkg/zod/neutral/zodAsFactory.d.ts +14 -0
  294. package/dist/_pkg/zod/neutral/zodIsFactory.d.ts +8 -0
  295. package/dist/_pkg/zod/neutral/zodToAsyncFactory.d.ts +14 -0
  296. package/dist/_pkg/zod/neutral/zodToFactory.d.ts +14 -0
  297. package/dist/browser/index.d.ts +32 -0
  298. package/dist/browser/index.mjs +32 -0
  299. package/dist/browser/platform.d.ts +1 -0
  300. package/dist/browser/platform.mjs +1 -0
  301. package/dist/browser/url.d.ts +1 -0
  302. package/dist/browser/url.mjs +1 -0
  303. package/dist/neutral/api.d.ts +1 -0
  304. package/dist/neutral/api.mjs +1 -0
  305. package/dist/neutral/api.model.d.ts +1 -0
  306. package/dist/neutral/api.model.mjs +1 -0
  307. package/dist/neutral/array.d.ts +1 -0
  308. package/dist/neutral/array.mjs +1 -0
  309. package/dist/neutral/arraybuffer.d.ts +1 -0
  310. package/dist/neutral/arraybuffer.mjs +1 -0
  311. package/dist/neutral/assert.d.ts +1 -0
  312. package/dist/neutral/assert.mjs +1 -0
  313. package/dist/neutral/assert.model.d.ts +1 -0
  314. package/dist/neutral/assert.model.mjs +1 -0
  315. package/dist/neutral/base.d.ts +1 -0
  316. package/dist/neutral/base.mjs +1 -0
  317. package/dist/neutral/base.model.d.ts +1 -0
  318. package/dist/neutral/base.model.mjs +1 -0
  319. package/dist/neutral/creatable.d.ts +1 -0
  320. package/dist/neutral/creatable.mjs +1 -0
  321. package/dist/neutral/creatable.model.d.ts +1 -0
  322. package/dist/neutral/creatable.model.mjs +1 -0
  323. package/dist/neutral/decimal-precision.d.ts +1 -0
  324. package/dist/neutral/decimal-precision.mjs +1 -0
  325. package/dist/neutral/delay.d.ts +1 -0
  326. package/dist/neutral/delay.mjs +1 -0
  327. package/dist/neutral/ellipsize.d.ts +1 -0
  328. package/dist/neutral/ellipsize.mjs +1 -0
  329. package/dist/neutral/enum.d.ts +1 -0
  330. package/dist/neutral/enum.mjs +1 -0
  331. package/dist/neutral/enum.model.d.ts +1 -0
  332. package/dist/neutral/enum.model.mjs +1 -0
  333. package/dist/neutral/error.d.ts +1 -0
  334. package/dist/neutral/error.mjs +1 -0
  335. package/dist/neutral/error.model.d.ts +1 -0
  336. package/dist/neutral/error.model.mjs +1 -0
  337. package/dist/neutral/events.d.ts +1 -0
  338. package/dist/neutral/events.mjs +1 -0
  339. package/dist/neutral/events.model.d.ts +1 -0
  340. package/dist/neutral/events.model.mjs +1 -0
  341. package/dist/neutral/exists.d.ts +1 -0
  342. package/dist/neutral/exists.mjs +1 -0
  343. package/dist/neutral/fetch.d.ts +1 -0
  344. package/dist/neutral/fetch.mjs +1 -0
  345. package/dist/neutral/fetch.model.d.ts +1 -0
  346. package/dist/neutral/fetch.model.mjs +1 -0
  347. package/dist/neutral/forget.d.ts +1 -0
  348. package/dist/neutral/forget.mjs +1 -0
  349. package/dist/neutral/forget.model.d.ts +1 -0
  350. package/dist/neutral/forget.model.mjs +1 -0
  351. package/dist/neutral/function-name.d.ts +1 -0
  352. package/dist/neutral/function-name.mjs +1 -0
  353. package/dist/neutral/hex.d.ts +1 -0
  354. package/dist/neutral/hex.mjs +1 -0
  355. package/dist/neutral/hex.model.d.ts +1 -0
  356. package/dist/neutral/hex.model.mjs +1 -0
  357. package/dist/neutral/logger.d.ts +1 -0
  358. package/dist/neutral/logger.mjs +1 -0
  359. package/dist/neutral/model.d.ts +18 -0
  360. package/dist/neutral/model.mjs +18 -0
  361. package/dist/neutral/object.d.ts +1 -0
  362. package/dist/neutral/object.mjs +1 -0
  363. package/dist/neutral/object.model.d.ts +1 -0
  364. package/dist/neutral/object.model.mjs +1 -0
  365. package/dist/neutral/profile.d.ts +1 -0
  366. package/dist/neutral/profile.mjs +1 -0
  367. package/dist/neutral/profile.model.d.ts +1 -0
  368. package/dist/neutral/profile.model.mjs +1 -0
  369. package/dist/neutral/promise.d.ts +1 -0
  370. package/dist/neutral/promise.mjs +1 -0
  371. package/dist/neutral/promise.model.d.ts +1 -0
  372. package/dist/neutral/promise.model.mjs +1 -0
  373. package/dist/neutral/retry.d.ts +1 -0
  374. package/dist/neutral/retry.mjs +1 -0
  375. package/dist/neutral/retry.model.d.ts +1 -0
  376. package/dist/neutral/retry.model.mjs +1 -0
  377. package/dist/neutral/set.d.ts +1 -0
  378. package/dist/neutral/set.mjs +1 -0
  379. package/dist/neutral/static-implements.d.ts +1 -0
  380. package/dist/neutral/static-implements.mjs +1 -0
  381. package/dist/neutral/storage.d.ts +1 -0
  382. package/dist/neutral/storage.mjs +1 -0
  383. package/dist/neutral/storage.model.d.ts +1 -0
  384. package/dist/neutral/storage.model.mjs +1 -0
  385. package/dist/neutral/telemetry-exporter.d.ts +1 -0
  386. package/dist/neutral/telemetry-exporter.mjs +1 -0
  387. package/dist/neutral/telemetry.d.ts +1 -0
  388. package/dist/neutral/telemetry.mjs +1 -0
  389. package/dist/neutral/telemetry.model.d.ts +1 -0
  390. package/dist/neutral/telemetry.model.mjs +1 -0
  391. package/dist/neutral/timer.d.ts +1 -0
  392. package/dist/neutral/timer.mjs +1 -0
  393. package/dist/neutral/typeof.d.ts +1 -0
  394. package/dist/neutral/typeof.mjs +1 -0
  395. package/dist/neutral/typeof.model.d.ts +1 -0
  396. package/dist/neutral/typeof.model.mjs +1 -0
  397. package/dist/neutral/url.d.ts +1 -0
  398. package/dist/neutral/url.mjs +1 -0
  399. package/dist/neutral/zod.d.ts +1 -0
  400. package/dist/neutral/zod.mjs +1 -0
  401. package/dist/neutral/zod.model.d.ts +1 -0
  402. package/dist/neutral/zod.model.mjs +1 -0
  403. package/dist/node/index.d.ts +32 -0
  404. package/dist/node/index.mjs +32 -0
  405. package/dist/node/platform.d.ts +1 -0
  406. package/dist/node/platform.mjs +1 -0
  407. package/dist/node/url.d.ts +1 -0
  408. package/dist/node/url.mjs +1 -0
  409. package/package.json +339 -0
@@ -0,0 +1,18 @@
1
+ // src/browser/index.ts
2
+ var isBrowser = () => {
3
+ return !isWebworker() && globalThis.constructor?.name === "Window";
4
+ };
5
+ var isWebworker = () => {
6
+ return typeof globalThis === "object" && globalThis.constructor?.name === "DedicatedWorkerGlobalScope";
7
+ };
8
+ var isNode = () => {
9
+ return false;
10
+ };
11
+ var subtle = globalThis.crypto.subtle;
12
+ export {
13
+ isBrowser,
14
+ isNode,
15
+ isWebworker,
16
+ subtle
17
+ };
18
+ //# sourceMappingURL=index-browser.mjs.map
@@ -0,0 +1,2 @@
1
+ export * from './node/index.ts';
2
+ //# sourceMappingURL=index-node.d.ts.map
@@ -0,0 +1,9 @@
1
+ /** The Web Crypto API's SubtleCrypto interface, re-exported from Node.js crypto module. */
2
+ export { subtle } from 'node:crypto';
3
+ /** Returns whether the current environment is a browser. Always returns false in Node.js. */
4
+ export declare const isBrowser: () => boolean;
5
+ /** Returns whether the current environment is a web worker. Always returns false in Node.js. */
6
+ export declare const isWebworker: () => boolean;
7
+ /** Returns whether the current environment is Node.js. Always returns true in this entry point. */
8
+ export declare const isNode: () => boolean;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,9 @@
1
+ /** Returns whether the current environment is a browser window (not a web worker). */
2
+ export declare const isBrowser: () => boolean;
3
+ /** Returns whether the current environment is a dedicated web worker. */
4
+ export declare const isWebworker: () => boolean;
5
+ /** Returns whether the current environment is Node.js. Always returns false in the browser entry point. */
6
+ export declare const isNode: () => boolean;
7
+ /** The Web Crypto API's SubtleCrypto interface, sourced from the browser's globalThis.crypto. */
8
+ export declare const subtle: SubtleCrypto;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './browser/index.ts';
2
+ //# sourceMappingURL=index-browser.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './node/index.ts';
2
+ //# sourceMappingURL=index-node.d.ts.map
@@ -0,0 +1,18 @@
1
+ // src/node/index.ts
2
+ import { subtle } from "node:crypto";
3
+ var isBrowser = () => {
4
+ return false;
5
+ };
6
+ var isWebworker = () => {
7
+ return false;
8
+ };
9
+ var isNode = () => {
10
+ return true;
11
+ };
12
+ export {
13
+ isBrowser,
14
+ isNode,
15
+ isWebworker,
16
+ subtle
17
+ };
18
+ //# sourceMappingURL=index-node.mjs.map
@@ -0,0 +1,9 @@
1
+ /** The Web Crypto API's SubtleCrypto interface, re-exported from Node.js crypto module. */
2
+ export { subtle } from 'node:crypto';
3
+ /** Returns whether the current environment is a browser. Always returns false in Node.js. */
4
+ export declare const isBrowser: () => boolean;
5
+ /** Returns whether the current environment is a web worker. Always returns false in Node.js. */
6
+ export declare const isWebworker: () => boolean;
7
+ /** Returns whether the current environment is Node.js. Always returns true in this entry point. */
8
+ export declare const isNode: () => boolean;
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './profiler.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,37 @@
1
+ // src/profiler.ts
2
+ var createProfiler = () => {
3
+ return {};
4
+ };
5
+ var profile = (profiler, name) => {
6
+ const timeData = profiler[name] ?? [];
7
+ timeData.push(Date.now());
8
+ profiler[name] = timeData;
9
+ };
10
+ var profileReport = (profiler) => {
11
+ let lowest = Date.now();
12
+ let highest = 0;
13
+ const results = Object.entries(profiler).reduce((prev, [name, readings]) => {
14
+ const start = readings.at(0);
15
+ if (start !== void 0) {
16
+ if (start < lowest) {
17
+ lowest = start;
18
+ }
19
+ const end = readings.at(-1) ?? Date.now();
20
+ if (end > highest) {
21
+ highest = end;
22
+ }
23
+ prev[name] = end - start;
24
+ }
25
+ return prev;
26
+ }, {});
27
+ if (highest > 0) {
28
+ results["-all-"] = highest - lowest;
29
+ }
30
+ return results;
31
+ };
32
+ export {
33
+ createProfiler,
34
+ profile,
35
+ profileReport
36
+ };
37
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,2 @@
1
+ export type { Profiler } from './profiler.ts';
2
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=model.mjs.map
@@ -0,0 +1,17 @@
1
+ /** A record of named timing entries, where each key maps to an array of timestamps. */
2
+ export type Profiler = Record<string, number[]>;
3
+ /** Creates a new empty profiler instance. */
4
+ export declare const createProfiler: () => Profiler;
5
+ /**
6
+ * Records a timestamp for the given profile name.
7
+ * @param profiler - The profiler instance to record into.
8
+ * @param name - The name of the timing entry.
9
+ */
10
+ export declare const profile: (profiler: Profiler, name: string) => void;
11
+ /**
12
+ * Generates a report of elapsed times for each profiled entry.
13
+ * @param profiler - The profiler instance to report on.
14
+ * @returns A record mapping each profile name to its elapsed time in milliseconds, plus a '-all-' total.
15
+ */
16
+ export declare const profileReport: (profiler: Profiler) => Record<string, number>;
17
+ //# sourceMappingURL=profiler.d.ts.map
@@ -0,0 +1,24 @@
1
+ /** A resolve/reject callback used within PromiseEx. */
2
+ export type PromiseExSubFunc<T, TResult = T> = (value: T) => TResult;
3
+ /** The executor function passed to the PromiseEx constructor. */
4
+ export type PromiseExFunc<T> = (resolve?: PromiseExSubFunc<T, void>, reject?: PromiseExSubFunc<T, void>) => void;
5
+ /** A callback that inspects the attached value and returns whether to cancel the promise. */
6
+ export type PromiseExValueFunc<V> = (value?: V) => boolean;
7
+ /**
8
+ * An extended Promise that carries an optional attached value and supports cancellation.
9
+ * The value can be inspected via the `then` or `value` methods to conditionally cancel.
10
+ */
11
+ export declare class PromiseEx<T, V = void> extends Promise<T> {
12
+ /** Whether the promise has been cancelled via a value callback. */
13
+ cancelled?: boolean;
14
+ private _value?;
15
+ constructor(func: PromiseExFunc<T>, value?: V);
16
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null, onvalue?: (value?: V) => boolean): Promise<TResult1 | TResult2>;
17
+ /**
18
+ * Inspects the attached value via the callback; if it returns true, marks the promise as cancelled.
19
+ * @param onvalue - A callback that receives the attached value and returns whether to cancel.
20
+ * @returns This instance for chaining.
21
+ */
22
+ value(onvalue?: (value?: V) => boolean): this;
23
+ }
24
+ //# sourceMappingURL=PromiseEx.d.ts.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * For use with Promise.allSettled to filter only successful results
3
+ * @param val
4
+ * @returns
5
+ */
6
+ export declare const fulfilled: <T>(val: PromiseSettledResult<T>) => val is PromiseFulfilledResult<T>;
7
+ //# sourceMappingURL=fulfilled.d.ts.map
@@ -0,0 +1,20 @@
1
+ /**
2
+ * For use with Promise.allSettled to reduce to only successful result values
3
+ * @example <caption>Casting the initialValue provided to reduce</caption>
4
+ * const resolved = Promise.resolve('resolved')
5
+ * const rejected = Promise.reject('rejected')
6
+ * const settled = await Promise.allSettled([resolved, rejected])
7
+ * const results = settled.reduce(fulfilledValues, [] as string[])
8
+ * // results === [ 'resolved' ]
9
+ * @example <caption>Providing type parameter to reduce and initialValue type can be inferred</caption>
10
+ * const resolved = Promise.resolve('resolved')
11
+ * const rejected = Promise.reject('rejected')
12
+ * const settled = await Promise.allSettled([resolved, rejected])
13
+ * const results = settled.reduce<string[]>(fulfilledValues, [])
14
+ * // results === [ 'resolved' ]
15
+ * @param previousValue
16
+ * @param currentValue
17
+ * @returns
18
+ */
19
+ export declare const fulfilledValues: <T>(previousValue: T[], currentValue: PromiseSettledResult<T>) => T[];
20
+ //# sourceMappingURL=fulfilledValues.d.ts.map
@@ -0,0 +1,7 @@
1
+ export { fulfilled } from './fulfilled.ts';
2
+ export { fulfilledValues } from './fulfilledValues.ts';
3
+ export * from './PromiseEx.ts';
4
+ export { rejected } from './rejected.ts';
5
+ export * from './toPromise.ts';
6
+ export * from './types.ts';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,57 @@
1
+ // src/fulfilled.ts
2
+ var fulfilled = (val) => {
3
+ return val.status === "fulfilled";
4
+ };
5
+
6
+ // src/fulfilledValues.ts
7
+ var fulfilledValues = (previousValue, currentValue) => {
8
+ if (currentValue.status === "fulfilled") previousValue.push(currentValue.value);
9
+ return previousValue;
10
+ };
11
+
12
+ // src/PromiseEx.ts
13
+ var PromiseEx = class extends Promise {
14
+ /** Whether the promise has been cancelled via a value callback. */
15
+ cancelled;
16
+ _value;
17
+ constructor(func, value) {
18
+ super(func);
19
+ this._value = value;
20
+ }
21
+ // eslint-disable-next-line unicorn/no-thenable
22
+ then(onfulfilled, onrejected, onvalue) {
23
+ if (onvalue?.(this._value) === true) {
24
+ this.cancelled = true;
25
+ }
26
+ return super.then(onfulfilled, onrejected);
27
+ }
28
+ /**
29
+ * Inspects the attached value via the callback; if it returns true, marks the promise as cancelled.
30
+ * @param onvalue - A callback that receives the attached value and returns whether to cancel.
31
+ * @returns This instance for chaining.
32
+ */
33
+ value(onvalue) {
34
+ if (onvalue?.(this._value) === true) {
35
+ this.cancelled = true;
36
+ }
37
+ return this;
38
+ }
39
+ };
40
+
41
+ // src/rejected.ts
42
+ var rejected = (val) => {
43
+ return val.status === "rejected";
44
+ };
45
+
46
+ // src/toPromise.ts
47
+ function toPromise(value) {
48
+ return value instanceof Promise ? value : Promise.resolve(value);
49
+ }
50
+ export {
51
+ PromiseEx,
52
+ fulfilled,
53
+ fulfilledValues,
54
+ rejected,
55
+ toPromise
56
+ };
57
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,3 @@
1
+ export type { PromiseExFunc, PromiseExSubFunc, PromiseExValueFunc, } from './PromiseEx.ts';
2
+ export type * from './types.ts';
3
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=model.mjs.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * For use with Promise.allSettled to filter only rejected results
3
+ * @param val
4
+ * @returns
5
+ */
6
+ export declare const rejected: <T>(val: PromiseSettledResult<T>) => val is PromiseRejectedResult;
7
+ //# sourceMappingURL=rejected.d.ts.map
@@ -0,0 +1,8 @@
1
+ import type { Promisable } from './types.ts';
2
+ /**
3
+ * Wraps a value in a Promise if it is not already one.
4
+ * @param value - A value that may or may not be a Promise.
5
+ * @returns A Promise resolving to the value.
6
+ */
7
+ export declare function toPromise<T>(value: Promisable<T>): Promise<T>;
8
+ //# sourceMappingURL=toPromise.d.ts.map
@@ -0,0 +1,23 @@
1
+ import type { TypedValue } from '../../typeof/neutral/index.ts';
2
+ import type { PromiseEx } from './PromiseEx.ts';
3
+ /** A value that may be a Promise, PromiseEx, or a plain synchronous value. */
4
+ export type Promisable<T, V = never> = PromiseEx<T, V> | Promise<T> | T;
5
+ /** A Promisable that resolves to an array. */
6
+ export type PromisableArray<T, V = never> = Promisable<T[], V>;
7
+ /** A Promisable that may resolve to undefined. */
8
+ export type OptionalPromisable<T, V = never> = Promisable<T | undefined, V>;
9
+ /** A Promisable array where elements may be undefined. */
10
+ export type OptionalPromisableArray<T, V = never> = PromisableArray<T | undefined, V>;
11
+ /** A Promisable that may resolve to null. */
12
+ export type NullablePromisable<T, V = never> = Promisable<T | null, V>;
13
+ /** A Promisable array where elements may be null. */
14
+ export type NullablePromisableArray<T, V = never> = PromisableArray<T | null, V>;
15
+ /** @description Used to document promises that are being used as Mutexes */
16
+ export type AsyncMutex<T> = Promise<T>;
17
+ /** An interface representing any thenable (promise-like) object. */
18
+ export interface PromiseType {
19
+ then: () => unknown;
20
+ }
21
+ /** Any non-promise typed value, excluding thenables. */
22
+ export type AnyNonPromise = Exclude<TypedValue, PromiseType>;
23
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './retry.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,28 @@
1
+ // src/retry.ts
2
+ import { delay } from "../../delay/neutral/index.mjs";
3
+ var retry = async (func, config) => {
4
+ const {
5
+ complete = (value) => value !== void 0,
6
+ retries = 0,
7
+ interval = 100,
8
+ backoff = 2
9
+ } = config ?? {};
10
+ const result = await func();
11
+ if (complete(result)) {
12
+ return result;
13
+ }
14
+ if (retries <= 0) {
15
+ return void 0;
16
+ }
17
+ await delay(interval);
18
+ return retry(func, {
19
+ backoff,
20
+ complete,
21
+ interval: interval * backoff,
22
+ retries: retries - 1
23
+ });
24
+ };
25
+ export {
26
+ retry
27
+ };
28
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,2 @@
1
+ export type { RetryConfig, RetryConfigWithComplete, } from './retry.ts';
2
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=model.mjs.map
@@ -0,0 +1,23 @@
1
+ import type { Promisable } from '../../promise/neutral/index.ts';
2
+ /** Configuration for retry behavior. */
3
+ export interface RetryConfig {
4
+ /** Multiplier applied to the interval after each retry. Defaults to 2. */
5
+ backoff?: number;
6
+ /** Initial delay in milliseconds between retries. Defaults to 100. */
7
+ interval?: number;
8
+ /** Maximum number of retry attempts. Defaults to 0 (no retries). */
9
+ retries?: number;
10
+ }
11
+ /** Retry configuration extended with a custom completion check. */
12
+ export interface RetryConfigWithComplete<T = unknown> extends RetryConfig {
13
+ /** Determines whether the result is considered complete. Defaults to checking for a defined value. */
14
+ complete?: (result?: T) => boolean;
15
+ }
16
+ /**
17
+ * Retries an async function with exponential backoff until it completes or retries are exhausted.
18
+ * @param func - The function to retry.
19
+ * @param config - Optional retry configuration including backoff, interval, retries, and completion check.
20
+ * @returns The result of the function, or undefined if all retries were exhausted.
21
+ */
22
+ export declare const retry: <T = unknown>(func: () => Promisable<T | undefined>, config?: RetryConfigWithComplete<T>) => Promise<T | undefined>;
23
+ //# sourceMappingURL=retry.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './lib/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,20 @@
1
+ // src/lib/difference.ts
2
+ var difference = (a, b) => {
3
+ return a.difference(b);
4
+ };
5
+
6
+ // src/lib/intersection.ts
7
+ var intersection = (a, b) => {
8
+ return a.intersection(b);
9
+ };
10
+
11
+ // src/lib/union.ts
12
+ var union = (a, b) => {
13
+ return a.union(b);
14
+ };
15
+ export {
16
+ difference,
17
+ intersection,
18
+ union
19
+ };
20
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns a new set containing elements in `a` that are not in `b`.
3
+ * @param a - The source set
4
+ * @param b - The set of elements to exclude
5
+ * @returns A new set representing the difference of `a` and `b`
6
+ */
7
+ export declare const difference: <TKey>(a: Set<TKey>, b: Set<TKey>) => Set<TKey>;
8
+ //# sourceMappingURL=difference.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * from './difference.ts';
2
+ export * from './intersection.ts';
3
+ export * from './union.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns a new set containing only elements present in both `a` and `b`.
3
+ * @param a - The first set
4
+ * @param b - The second set
5
+ * @returns A new set representing the intersection of `a` and `b`
6
+ */
7
+ export declare const intersection: <TKey>(a: Set<TKey>, b: Set<TKey>) => Set<TKey>;
8
+ //# sourceMappingURL=intersection.d.ts.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns a new set containing all elements from both `a` and `b`.
3
+ * @param a - The first set
4
+ * @param b - The second set
5
+ * @returns A new set representing the union of `a` and `b`
6
+ */
7
+ export declare const union: <TKey>(a: Set<TKey>, b: Set<TKey>) => Set<TKey>;
8
+ //# sourceMappingURL=union.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './staticImplements.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ // src/staticImplements.ts
2
+ function staticImplements() {
3
+ return (constructor) => {
4
+ constructor;
5
+ };
6
+ }
7
+ export {
8
+ staticImplements
9
+ };
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Annotation to decorate classes which implement static methods
3
+ * @returns The decorated class requiring it to implement
4
+ * the members of the the type as static properties/methods
5
+ */
6
+ export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
7
+ //# sourceMappingURL=staticImplements.d.ts.map
@@ -0,0 +1,34 @@
1
+ import type { Promisable } from '../../promise/neutral/index.ts';
2
+ /**
3
+ * A readonly storage device.
4
+ */
5
+ export interface ReadonlyKeyValueStore<TValue, TKey = string> {
6
+ /**
7
+ * Returns a promise that resolves to the value for the given key.
8
+ * @param key The key to get the value for.
9
+ */
10
+ get(key: TKey): Promisable<TValue | undefined>;
11
+ /**
12
+ * The keys an array of keys.
13
+ */
14
+ keys?(): Promisable<TKey[]>;
15
+ }
16
+ /**
17
+ * A read/write storage device.
18
+ */
19
+ export interface KeyValueStore<TValue, TKey = string> extends ReadonlyKeyValueStore<TValue, TKey> {
20
+ /** Removes all entries from the store. */
21
+ clear?(): Promisable<void>;
22
+ /**
23
+ * Deletes the entry with the given key.
24
+ * @param key The key of the entry to delete
25
+ */
26
+ delete(key: TKey): Promisable<void>;
27
+ /**
28
+ * Sets a value for the given key, creating or updating the entry.
29
+ * @param key The key to set
30
+ * @param value The value to store
31
+ */
32
+ set(key: TKey, value: TValue): Promisable<void>;
33
+ }
34
+ //# sourceMappingURL=KeyValueStore.d.ts.map
@@ -0,0 +1,2 @@
1
+ export * from './KeyValueStore.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,2 @@
1
+ export type * from './KeyValueStore.ts';
2
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=model.mjs.map
@@ -0,0 +1,3 @@
1
+ export * from './span.ts';
2
+ export * from './timeBudget.ts';
3
+ //# sourceMappingURL=index.d.ts.map