effect 4.0.0-beta.65 → 4.0.0-beta.67

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 (1657) hide show
  1. package/dist/Array.d.ts +113 -67
  2. package/dist/Array.d.ts.map +1 -1
  3. package/dist/Array.js +28 -18
  4. package/dist/Array.js.map +1 -1
  5. package/dist/BigDecimal.d.ts +404 -337
  6. package/dist/BigDecimal.d.ts.map +1 -1
  7. package/dist/BigDecimal.js +190 -146
  8. package/dist/BigDecimal.js.map +1 -1
  9. package/dist/BigInt.d.ts +167 -97
  10. package/dist/BigInt.d.ts.map +1 -1
  11. package/dist/BigInt.js +87 -47
  12. package/dist/BigInt.js.map +1 -1
  13. package/dist/Boolean.d.ts +62 -31
  14. package/dist/Boolean.d.ts.map +1 -1
  15. package/dist/Boolean.js +30 -15
  16. package/dist/Boolean.js.map +1 -1
  17. package/dist/Brand.d.ts +20 -1
  18. package/dist/Brand.d.ts.map +1 -1
  19. package/dist/Brand.js +16 -0
  20. package/dist/Brand.js.map +1 -1
  21. package/dist/Cache.d.ts +236 -132
  22. package/dist/Cache.d.ts.map +1 -1
  23. package/dist/Cache.js +133 -57
  24. package/dist/Cache.js.map +1 -1
  25. package/dist/Cause.d.ts +77 -65
  26. package/dist/Cause.d.ts.map +1 -1
  27. package/dist/Cause.js +43 -36
  28. package/dist/Cause.js.map +1 -1
  29. package/dist/Channel.d.ts +1518 -575
  30. package/dist/Channel.d.ts.map +1 -1
  31. package/dist/Channel.js +661 -287
  32. package/dist/Channel.js.map +1 -1
  33. package/dist/ChannelSchema.d.ts +119 -10
  34. package/dist/ChannelSchema.d.ts.map +1 -1
  35. package/dist/ChannelSchema.js +45 -6
  36. package/dist/ChannelSchema.js.map +1 -1
  37. package/dist/Chunk.d.ts +548 -379
  38. package/dist/Chunk.d.ts.map +1 -1
  39. package/dist/Chunk.js +238 -170
  40. package/dist/Chunk.js.map +1 -1
  41. package/dist/Clock.d.ts +15 -8
  42. package/dist/Clock.d.ts.map +1 -1
  43. package/dist/Clock.js +8 -4
  44. package/dist/Clock.js.map +1 -1
  45. package/dist/Combiner.d.ts +2 -4
  46. package/dist/Combiner.d.ts.map +1 -1
  47. package/dist/Combiner.js +2 -4
  48. package/dist/Combiner.js.map +1 -1
  49. package/dist/Config.d.ts +5 -4
  50. package/dist/Config.d.ts.map +1 -1
  51. package/dist/Config.js +9 -8
  52. package/dist/Config.js.map +1 -1
  53. package/dist/ConfigProvider.d.ts +1 -1
  54. package/dist/ConfigProvider.js +1 -1
  55. package/dist/Console.d.ts +76 -50
  56. package/dist/Console.d.ts.map +1 -1
  57. package/dist/Console.js +69 -46
  58. package/dist/Console.js.map +1 -1
  59. package/dist/Context.d.ts +386 -138
  60. package/dist/Context.d.ts.map +1 -1
  61. package/dist/Context.js +144 -62
  62. package/dist/Context.js.map +1 -1
  63. package/dist/Cron.d.ts +69 -48
  64. package/dist/Cron.d.ts.map +1 -1
  65. package/dist/Cron.js +96 -36
  66. package/dist/Cron.js.map +1 -1
  67. package/dist/Data.d.ts +3 -2
  68. package/dist/Data.d.ts.map +1 -1
  69. package/dist/Data.js.map +1 -1
  70. package/dist/DateTime.d.ts +875 -444
  71. package/dist/DateTime.d.ts.map +1 -1
  72. package/dist/DateTime.js +376 -217
  73. package/dist/DateTime.js.map +1 -1
  74. package/dist/Deferred.d.ts +367 -174
  75. package/dist/Deferred.d.ts.map +1 -1
  76. package/dist/Deferred.js +145 -71
  77. package/dist/Deferred.js.map +1 -1
  78. package/dist/Differ.d.ts +42 -0
  79. package/dist/Differ.d.ts.map +1 -1
  80. package/dist/Differ.js +36 -0
  81. package/dist/Duration.d.ts +329 -185
  82. package/dist/Duration.d.ts.map +1 -1
  83. package/dist/Duration.js +174 -106
  84. package/dist/Duration.js.map +1 -1
  85. package/dist/Effect.d.ts +2445 -2356
  86. package/dist/Effect.d.ts.map +1 -1
  87. package/dist/Effect.js +906 -758
  88. package/dist/Effect.js.map +1 -1
  89. package/dist/Effectable.d.ts +38 -3
  90. package/dist/Effectable.d.ts.map +1 -1
  91. package/dist/Effectable.js +3 -3
  92. package/dist/Effectable.js.map +1 -1
  93. package/dist/Encoding.d.ts +78 -28
  94. package/dist/Encoding.d.ts.map +1 -1
  95. package/dist/Encoding.js +75 -27
  96. package/dist/Encoding.js.map +1 -1
  97. package/dist/Equivalence.d.ts +14 -19
  98. package/dist/Equivalence.d.ts.map +1 -1
  99. package/dist/Equivalence.js +14 -19
  100. package/dist/Equivalence.js.map +1 -1
  101. package/dist/ErrorReporter.d.ts +66 -82
  102. package/dist/ErrorReporter.d.ts.map +1 -1
  103. package/dist/ErrorReporter.js +38 -29
  104. package/dist/ErrorReporter.js.map +1 -1
  105. package/dist/ExecutionPlan.d.ts +96 -12
  106. package/dist/ExecutionPlan.d.ts.map +1 -1
  107. package/dist/ExecutionPlan.js +21 -6
  108. package/dist/ExecutionPlan.js.map +1 -1
  109. package/dist/Exit.d.ts +7 -5
  110. package/dist/Exit.d.ts.map +1 -1
  111. package/dist/Exit.js.map +1 -1
  112. package/dist/Fiber.d.ts +72 -40
  113. package/dist/Fiber.d.ts.map +1 -1
  114. package/dist/Fiber.js +39 -21
  115. package/dist/Fiber.js.map +1 -1
  116. package/dist/FiberHandle.d.ts +119 -58
  117. package/dist/FiberHandle.d.ts.map +1 -1
  118. package/dist/FiberHandle.js +122 -40
  119. package/dist/FiberHandle.js.map +1 -1
  120. package/dist/FiberMap.d.ts +288 -160
  121. package/dist/FiberMap.d.ts.map +1 -1
  122. package/dist/FiberMap.js +176 -74
  123. package/dist/FiberMap.js.map +1 -1
  124. package/dist/FiberSet.d.ts +93 -52
  125. package/dist/FiberSet.d.ts.map +1 -1
  126. package/dist/FiberSet.js +97 -34
  127. package/dist/FiberSet.js.map +1 -1
  128. package/dist/FileSystem.d.ts +104 -73
  129. package/dist/FileSystem.d.ts.map +1 -1
  130. package/dist/FileSystem.js +53 -39
  131. package/dist/FileSystem.js.map +1 -1
  132. package/dist/Filter.d.ts +166 -88
  133. package/dist/Filter.d.ts.map +1 -1
  134. package/dist/Filter.js +68 -42
  135. package/dist/Filter.js.map +1 -1
  136. package/dist/Function.d.ts +154 -86
  137. package/dist/Function.d.ts.map +1 -1
  138. package/dist/Function.js +53 -37
  139. package/dist/Function.js.map +1 -1
  140. package/dist/Graph.d.ts +682 -365
  141. package/dist/Graph.d.ts.map +1 -1
  142. package/dist/Graph.js +308 -157
  143. package/dist/Graph.js.map +1 -1
  144. package/dist/HKT.d.ts +29 -13
  145. package/dist/HKT.d.ts.map +1 -1
  146. package/dist/Hash.d.ts +31 -18
  147. package/dist/Hash.d.ts.map +1 -1
  148. package/dist/Hash.js +25 -15
  149. package/dist/Hash.js.map +1 -1
  150. package/dist/HashMap.d.ts +444 -256
  151. package/dist/HashMap.d.ts.map +1 -1
  152. package/dist/HashMap.js +223 -105
  153. package/dist/HashMap.js.map +1 -1
  154. package/dist/HashRing.d.ts +36 -17
  155. package/dist/HashRing.d.ts.map +1 -1
  156. package/dist/HashRing.js +75 -8
  157. package/dist/HashRing.js.map +1 -1
  158. package/dist/HashSet.d.ts +194 -104
  159. package/dist/HashSet.d.ts.map +1 -1
  160. package/dist/HashSet.js +93 -38
  161. package/dist/HashSet.js.map +1 -1
  162. package/dist/Inspectable.d.ts +20 -9
  163. package/dist/Inspectable.d.ts.map +1 -1
  164. package/dist/Inspectable.js +16 -6
  165. package/dist/Inspectable.js.map +1 -1
  166. package/dist/Iterable.d.ts +309 -149
  167. package/dist/Iterable.d.ts.map +1 -1
  168. package/dist/Iterable.js +129 -65
  169. package/dist/Iterable.js.map +1 -1
  170. package/dist/JsonPatch.d.ts +4 -3
  171. package/dist/JsonPatch.d.ts.map +1 -1
  172. package/dist/JsonPatch.js +4 -3
  173. package/dist/JsonPatch.js.map +1 -1
  174. package/dist/Latch.d.ts +98 -15
  175. package/dist/Latch.d.ts.map +1 -1
  176. package/dist/Latch.js +41 -10
  177. package/dist/Latch.js.map +1 -1
  178. package/dist/Layer.d.ts +412 -309
  179. package/dist/Layer.d.ts.map +1 -1
  180. package/dist/Layer.js +262 -181
  181. package/dist/Layer.js.map +1 -1
  182. package/dist/LayerMap.d.ts +95 -21
  183. package/dist/LayerMap.d.ts.map +1 -1
  184. package/dist/LayerMap.js +58 -14
  185. package/dist/LayerMap.js.map +1 -1
  186. package/dist/LogLevel.d.ts +92 -131
  187. package/dist/LogLevel.d.ts.map +1 -1
  188. package/dist/LogLevel.js +25 -15
  189. package/dist/LogLevel.js.map +1 -1
  190. package/dist/Logger.d.ts +155 -99
  191. package/dist/Logger.d.ts.map +1 -1
  192. package/dist/Logger.js +211 -184
  193. package/dist/Logger.js.map +1 -1
  194. package/dist/ManagedRuntime.d.ts +75 -17
  195. package/dist/ManagedRuntime.d.ts.map +1 -1
  196. package/dist/ManagedRuntime.js +22 -16
  197. package/dist/ManagedRuntime.js.map +1 -1
  198. package/dist/Match.d.ts +133 -157
  199. package/dist/Match.d.ts.map +1 -1
  200. package/dist/Match.js +85 -76
  201. package/dist/Match.js.map +1 -1
  202. package/dist/Metric.d.ts +325 -284
  203. package/dist/Metric.d.ts.map +1 -1
  204. package/dist/Metric.js +217 -212
  205. package/dist/Metric.js.map +1 -1
  206. package/dist/MutableHashMap.d.ts +117 -58
  207. package/dist/MutableHashMap.d.ts.map +1 -1
  208. package/dist/MutableHashMap.js +52 -29
  209. package/dist/MutableHashMap.js.map +1 -1
  210. package/dist/MutableHashSet.d.ts +52 -30
  211. package/dist/MutableHashSet.d.ts.map +1 -1
  212. package/dist/MutableHashSet.js +94 -38
  213. package/dist/MutableHashSet.js.map +1 -1
  214. package/dist/MutableList.d.ts +92 -49
  215. package/dist/MutableList.d.ts.map +1 -1
  216. package/dist/MutableList.js +123 -71
  217. package/dist/MutableList.js.map +1 -1
  218. package/dist/MutableRef.d.ts +99 -62
  219. package/dist/MutableRef.d.ts.map +1 -1
  220. package/dist/MutableRef.js +79 -60
  221. package/dist/MutableRef.js.map +1 -1
  222. package/dist/Newtype.d.ts +3 -0
  223. package/dist/Newtype.d.ts.map +1 -1
  224. package/dist/Newtype.js.map +1 -1
  225. package/dist/NonEmptyIterable.d.ts +36 -39
  226. package/dist/NonEmptyIterable.d.ts.map +1 -1
  227. package/dist/NonEmptyIterable.js +34 -20
  228. package/dist/NonEmptyIterable.js.map +1 -1
  229. package/dist/Number.d.ts +116 -64
  230. package/dist/Number.d.ts.map +1 -1
  231. package/dist/Number.js +54 -30
  232. package/dist/Number.js.map +1 -1
  233. package/dist/Optic.d.ts +1 -2
  234. package/dist/Optic.d.ts.map +1 -1
  235. package/dist/Optic.js +0 -1
  236. package/dist/Optic.js.map +1 -1
  237. package/dist/Option.d.ts +38 -53
  238. package/dist/Option.d.ts.map +1 -1
  239. package/dist/Option.js +87 -11
  240. package/dist/Option.js.map +1 -1
  241. package/dist/Ordering.d.ts +43 -28
  242. package/dist/Ordering.d.ts.map +1 -1
  243. package/dist/Ordering.js +4 -2
  244. package/dist/Ordering.js.map +1 -1
  245. package/dist/PartitionedSemaphore.d.ts +225 -40
  246. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  247. package/dist/PartitionedSemaphore.js +113 -17
  248. package/dist/PartitionedSemaphore.js.map +1 -1
  249. package/dist/Path.d.ts +77 -13
  250. package/dist/Path.d.ts.map +1 -1
  251. package/dist/Path.js +48 -4
  252. package/dist/Path.js.map +1 -1
  253. package/dist/Pipeable.d.ts +71 -15
  254. package/dist/Pipeable.d.ts.map +1 -1
  255. package/dist/Pipeable.js +59 -12
  256. package/dist/Pipeable.js.map +1 -1
  257. package/dist/PlatformError.d.ts +74 -6
  258. package/dist/PlatformError.d.ts.map +1 -1
  259. package/dist/PlatformError.js +68 -5
  260. package/dist/PlatformError.js.map +1 -1
  261. package/dist/Pool.d.ts +66 -31
  262. package/dist/Pool.d.ts.map +1 -1
  263. package/dist/Pool.js +26 -24
  264. package/dist/Pool.js.map +1 -1
  265. package/dist/Predicate.d.ts +16 -21
  266. package/dist/Predicate.d.ts.map +1 -1
  267. package/dist/Predicate.js +9 -14
  268. package/dist/Predicate.js.map +1 -1
  269. package/dist/PrimaryKey.d.ts +9 -2
  270. package/dist/PrimaryKey.d.ts.map +1 -1
  271. package/dist/PrimaryKey.js +7 -1
  272. package/dist/PrimaryKey.js.map +1 -1
  273. package/dist/PubSub.d.ts +364 -262
  274. package/dist/PubSub.d.ts.map +1 -1
  275. package/dist/PubSub.js +245 -174
  276. package/dist/PubSub.js.map +1 -1
  277. package/dist/Pull.d.ts +94 -25
  278. package/dist/Pull.d.ts.map +1 -1
  279. package/dist/Pull.js +61 -13
  280. package/dist/Pull.js.map +1 -1
  281. package/dist/Queue.d.ts +284 -150
  282. package/dist/Queue.d.ts.map +1 -1
  283. package/dist/Queue.js +216 -113
  284. package/dist/Queue.js.map +1 -1
  285. package/dist/Random.d.ts +54 -35
  286. package/dist/Random.d.ts.map +1 -1
  287. package/dist/Random.js +36 -24
  288. package/dist/Random.js.map +1 -1
  289. package/dist/RcMap.d.ts +151 -141
  290. package/dist/RcMap.d.ts.map +1 -1
  291. package/dist/RcMap.js +66 -20
  292. package/dist/RcMap.js.map +1 -1
  293. package/dist/RcRef.d.ts +69 -32
  294. package/dist/RcRef.d.ts.map +1 -1
  295. package/dist/RcRef.js +33 -16
  296. package/dist/RcRef.js.map +1 -1
  297. package/dist/Record.d.ts +273 -129
  298. package/dist/Record.d.ts.map +1 -1
  299. package/dist/Record.js +117 -57
  300. package/dist/Record.js.map +1 -1
  301. package/dist/Redactable.d.ts +3 -3
  302. package/dist/Redactable.js +2 -2
  303. package/dist/Redacted.d.ts +63 -33
  304. package/dist/Redacted.d.ts.map +1 -1
  305. package/dist/Redacted.js +30 -14
  306. package/dist/Redacted.js.map +1 -1
  307. package/dist/Ref.d.ts +81 -52
  308. package/dist/Ref.d.ts.map +1 -1
  309. package/dist/Ref.js +54 -35
  310. package/dist/Ref.js.map +1 -1
  311. package/dist/References.d.ts +73 -31
  312. package/dist/References.d.ts.map +1 -1
  313. package/dist/References.js +66 -30
  314. package/dist/References.js.map +1 -1
  315. package/dist/RegExp.d.ts +11 -5
  316. package/dist/RegExp.d.ts.map +1 -1
  317. package/dist/RegExp.js +11 -5
  318. package/dist/RegExp.js.map +1 -1
  319. package/dist/Request.d.ts +158 -34
  320. package/dist/Request.d.ts.map +1 -1
  321. package/dist/Request.js +67 -12
  322. package/dist/Request.js.map +1 -1
  323. package/dist/RequestResolver.d.ts +261 -116
  324. package/dist/RequestResolver.d.ts.map +1 -1
  325. package/dist/RequestResolver.js +77 -41
  326. package/dist/RequestResolver.js.map +1 -1
  327. package/dist/Resource.d.ts +13 -7
  328. package/dist/Resource.d.ts.map +1 -1
  329. package/dist/Resource.js +44 -6
  330. package/dist/Resource.js.map +1 -1
  331. package/dist/Result.d.ts +26 -16
  332. package/dist/Result.d.ts.map +1 -1
  333. package/dist/Result.js +6 -6
  334. package/dist/Result.js.map +1 -1
  335. package/dist/Runtime.d.ts +43 -18
  336. package/dist/Runtime.d.ts.map +1 -1
  337. package/dist/Runtime.js +35 -16
  338. package/dist/Runtime.js.map +1 -1
  339. package/dist/Schedule.d.ts +545 -576
  340. package/dist/Schedule.d.ts.map +1 -1
  341. package/dist/Schedule.js +261 -247
  342. package/dist/Schedule.js.map +1 -1
  343. package/dist/Scheduler.d.ts +43 -6
  344. package/dist/Scheduler.d.ts.map +1 -1
  345. package/dist/Scheduler.js +33 -4
  346. package/dist/Scheduler.js.map +1 -1
  347. package/dist/Schema.d.ts +815 -294
  348. package/dist/Schema.d.ts.map +1 -1
  349. package/dist/Schema.js +287 -193
  350. package/dist/Schema.js.map +1 -1
  351. package/dist/SchemaAST.d.ts +24 -15
  352. package/dist/SchemaAST.d.ts.map +1 -1
  353. package/dist/SchemaAST.js +13 -9
  354. package/dist/SchemaAST.js.map +1 -1
  355. package/dist/SchemaGetter.d.ts +26 -13
  356. package/dist/SchemaGetter.d.ts.map +1 -1
  357. package/dist/SchemaGetter.js +24 -11
  358. package/dist/SchemaGetter.js.map +1 -1
  359. package/dist/SchemaIssue.d.ts +1 -8
  360. package/dist/SchemaIssue.d.ts.map +1 -1
  361. package/dist/SchemaIssue.js.map +1 -1
  362. package/dist/SchemaParser.d.ts +194 -25
  363. package/dist/SchemaParser.d.ts.map +1 -1
  364. package/dist/SchemaParser.js +220 -26
  365. package/dist/SchemaParser.js.map +1 -1
  366. package/dist/SchemaRepresentation.d.ts +2 -2
  367. package/dist/SchemaTransformation.d.ts +61 -41
  368. package/dist/SchemaTransformation.d.ts.map +1 -1
  369. package/dist/SchemaTransformation.js +56 -33
  370. package/dist/SchemaTransformation.js.map +1 -1
  371. package/dist/SchemaUtils.d.ts +7 -0
  372. package/dist/SchemaUtils.d.ts.map +1 -1
  373. package/dist/SchemaUtils.js +23 -0
  374. package/dist/SchemaUtils.js.map +1 -1
  375. package/dist/Scope.d.ts +102 -43
  376. package/dist/Scope.d.ts.map +1 -1
  377. package/dist/Scope.js +57 -23
  378. package/dist/Scope.js.map +1 -1
  379. package/dist/ScopedCache.d.ts +138 -46
  380. package/dist/ScopedCache.d.ts.map +1 -1
  381. package/dist/ScopedCache.js +80 -19
  382. package/dist/ScopedCache.js.map +1 -1
  383. package/dist/ScopedRef.d.ts +28 -8
  384. package/dist/ScopedRef.d.ts.map +1 -1
  385. package/dist/ScopedRef.js +25 -5
  386. package/dist/ScopedRef.js.map +1 -1
  387. package/dist/Semaphore.d.ts +64 -28
  388. package/dist/Semaphore.d.ts.map +1 -1
  389. package/dist/Semaphore.js +22 -13
  390. package/dist/Semaphore.js.map +1 -1
  391. package/dist/Sink.d.ts +458 -200
  392. package/dist/Sink.d.ts.map +1 -1
  393. package/dist/Sink.js +240 -89
  394. package/dist/Sink.js.map +1 -1
  395. package/dist/Stdio.d.ts +43 -6
  396. package/dist/Stdio.d.ts.map +1 -1
  397. package/dist/Stdio.js +33 -4
  398. package/dist/Stdio.js.map +1 -1
  399. package/dist/Stream.d.ts +1899 -1186
  400. package/dist/Stream.d.ts.map +1 -1
  401. package/dist/Stream.js +868 -525
  402. package/dist/Stream.js.map +1 -1
  403. package/dist/String.d.ts +171 -95
  404. package/dist/String.d.ts.map +1 -1
  405. package/dist/String.js +125 -67
  406. package/dist/String.js.map +1 -1
  407. package/dist/SubscriptionRef.d.ts +308 -203
  408. package/dist/SubscriptionRef.d.ts.map +1 -1
  409. package/dist/SubscriptionRef.js +125 -76
  410. package/dist/SubscriptionRef.js.map +1 -1
  411. package/dist/Symbol.d.ts +13 -5
  412. package/dist/Symbol.d.ts.map +1 -1
  413. package/dist/Symbol.js +13 -5
  414. package/dist/Symbol.js.map +1 -1
  415. package/dist/SynchronizedRef.d.ts +278 -62
  416. package/dist/SynchronizedRef.d.ts.map +1 -1
  417. package/dist/SynchronizedRef.js +116 -23
  418. package/dist/SynchronizedRef.js.map +1 -1
  419. package/dist/Take.d.ts +26 -2
  420. package/dist/Take.d.ts.map +1 -1
  421. package/dist/Take.js +4 -1
  422. package/dist/Take.js.map +1 -1
  423. package/dist/Terminal.d.ts +39 -7
  424. package/dist/Terminal.d.ts.map +1 -1
  425. package/dist/Terminal.js +10 -4
  426. package/dist/Terminal.js.map +1 -1
  427. package/dist/Tracer.d.ts +229 -55
  428. package/dist/Tracer.d.ts.map +1 -1
  429. package/dist/Tracer.js +94 -18
  430. package/dist/Tracer.js.map +1 -1
  431. package/dist/Trie.d.ts +213 -142
  432. package/dist/Trie.d.ts.map +1 -1
  433. package/dist/Trie.js +88 -60
  434. package/dist/Trie.js.map +1 -1
  435. package/dist/TxChunk.d.ts +182 -146
  436. package/dist/TxChunk.d.ts.map +1 -1
  437. package/dist/TxChunk.js +73 -56
  438. package/dist/TxChunk.js.map +1 -1
  439. package/dist/TxDeferred.d.ts +43 -29
  440. package/dist/TxDeferred.d.ts.map +1 -1
  441. package/dist/TxDeferred.js +22 -15
  442. package/dist/TxDeferred.js.map +1 -1
  443. package/dist/TxHashMap.d.ts +362 -222
  444. package/dist/TxHashMap.d.ts.map +1 -1
  445. package/dist/TxHashMap.js +171 -98
  446. package/dist/TxHashMap.js.map +1 -1
  447. package/dist/TxHashSet.d.ts +178 -104
  448. package/dist/TxHashSet.d.ts.map +1 -1
  449. package/dist/TxHashSet.js +84 -43
  450. package/dist/TxHashSet.js.map +1 -1
  451. package/dist/TxPriorityQueue.d.ts +93 -62
  452. package/dist/TxPriorityQueue.d.ts.map +1 -1
  453. package/dist/TxPriorityQueue.js +54 -36
  454. package/dist/TxPriorityQueue.js.map +1 -1
  455. package/dist/TxPubSub.d.ts +77 -49
  456. package/dist/TxPubSub.d.ts.map +1 -1
  457. package/dist/TxPubSub.js +60 -37
  458. package/dist/TxPubSub.js.map +1 -1
  459. package/dist/TxQueue.d.ts +279 -241
  460. package/dist/TxQueue.d.ts.map +1 -1
  461. package/dist/TxQueue.js +147 -101
  462. package/dist/TxQueue.js.map +1 -1
  463. package/dist/TxReentrantLock.d.ts +69 -46
  464. package/dist/TxReentrantLock.d.ts.map +1 -1
  465. package/dist/TxReentrantLock.js +48 -32
  466. package/dist/TxReentrantLock.js.map +1 -1
  467. package/dist/TxRef.d.ts +69 -40
  468. package/dist/TxRef.d.ts.map +1 -1
  469. package/dist/TxRef.js +35 -20
  470. package/dist/TxRef.js.map +1 -1
  471. package/dist/TxSemaphore.d.ts +101 -54
  472. package/dist/TxSemaphore.d.ts.map +1 -1
  473. package/dist/TxSemaphore.js +76 -34
  474. package/dist/TxSemaphore.js.map +1 -1
  475. package/dist/TxSubscriptionRef.d.ts +72 -48
  476. package/dist/TxSubscriptionRef.d.ts.map +1 -1
  477. package/dist/TxSubscriptionRef.js +33 -22
  478. package/dist/TxSubscriptionRef.js.map +1 -1
  479. package/dist/Types.d.ts +34 -34
  480. package/dist/UndefinedOr.d.ts +48 -25
  481. package/dist/UndefinedOr.d.ts.map +1 -1
  482. package/dist/UndefinedOr.js +28 -25
  483. package/dist/UndefinedOr.js.map +1 -1
  484. package/dist/Unify.d.ts +71 -116
  485. package/dist/Unify.d.ts.map +1 -1
  486. package/dist/Unify.js +20 -6
  487. package/dist/Unify.js.map +1 -1
  488. package/dist/Utils.d.ts +4 -0
  489. package/dist/Utils.d.ts.map +1 -1
  490. package/dist/Utils.js +4 -0
  491. package/dist/Utils.js.map +1 -1
  492. package/dist/index.d.ts +81 -32
  493. package/dist/index.d.ts.map +1 -1
  494. package/dist/index.js +81 -32
  495. package/dist/index.js.map +1 -1
  496. package/dist/internal/concurrency.js +2 -2
  497. package/dist/internal/concurrency.js.map +1 -1
  498. package/dist/internal/core.js +8 -20
  499. package/dist/internal/core.js.map +1 -1
  500. package/dist/internal/effect.js +20 -19
  501. package/dist/internal/effect.js.map +1 -1
  502. package/dist/internal/executionPlan.js +2 -2
  503. package/dist/internal/executionPlan.js.map +1 -1
  504. package/dist/internal/option.js +5 -8
  505. package/dist/internal/option.js.map +1 -1
  506. package/dist/internal/result.js +5 -8
  507. package/dist/internal/result.js.map +1 -1
  508. package/dist/internal/schema/schema.js +1 -1
  509. package/dist/internal/schema/schema.js.map +1 -1
  510. package/dist/testing/FastCheck.d.ts +6 -3
  511. package/dist/testing/FastCheck.d.ts.map +1 -1
  512. package/dist/testing/FastCheck.js +6 -3
  513. package/dist/testing/FastCheck.js.map +1 -1
  514. package/dist/testing/TestClock.d.ts +39 -34
  515. package/dist/testing/TestClock.d.ts.map +1 -1
  516. package/dist/testing/TestClock.js +42 -12
  517. package/dist/testing/TestClock.js.map +1 -1
  518. package/dist/testing/TestConsole.d.ts +39 -30
  519. package/dist/testing/TestConsole.d.ts.map +1 -1
  520. package/dist/testing/TestConsole.js +25 -10
  521. package/dist/testing/TestConsole.js.map +1 -1
  522. package/dist/testing/TestSchema.js +7 -7
  523. package/dist/testing/TestSchema.js.map +1 -1
  524. package/dist/unstable/ai/AiError.d.ts +197 -130
  525. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  526. package/dist/unstable/ai/AiError.js +166 -102
  527. package/dist/unstable/ai/AiError.js.map +1 -1
  528. package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +1 -1
  529. package/dist/unstable/ai/AnthropicStructuredOutput.js +2 -2
  530. package/dist/unstable/ai/Chat.d.ts +65 -41
  531. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  532. package/dist/unstable/ai/Chat.js +51 -33
  533. package/dist/unstable/ai/Chat.js.map +1 -1
  534. package/dist/unstable/ai/EmbeddingModel.d.ts +12 -11
  535. package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
  536. package/dist/unstable/ai/EmbeddingModel.js +9 -8
  537. package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
  538. package/dist/unstable/ai/IdGenerator.d.ts +28 -18
  539. package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
  540. package/dist/unstable/ai/IdGenerator.js +18 -11
  541. package/dist/unstable/ai/IdGenerator.js.map +1 -1
  542. package/dist/unstable/ai/LanguageModel.d.ts +36 -30
  543. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  544. package/dist/unstable/ai/LanguageModel.js +21 -15
  545. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  546. package/dist/unstable/ai/McpSchema.d.ts +339 -119
  547. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  548. package/dist/unstable/ai/McpSchema.js +264 -98
  549. package/dist/unstable/ai/McpSchema.js.map +1 -1
  550. package/dist/unstable/ai/McpServer.d.ts +53 -19
  551. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  552. package/dist/unstable/ai/McpServer.js +65 -17
  553. package/dist/unstable/ai/McpServer.js.map +1 -1
  554. package/dist/unstable/ai/Model.d.ts +13 -7
  555. package/dist/unstable/ai/Model.d.ts.map +1 -1
  556. package/dist/unstable/ai/Model.js +11 -9
  557. package/dist/unstable/ai/Model.js.map +1 -1
  558. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +1 -1
  559. package/dist/unstable/ai/OpenAiStructuredOutput.js +2 -2
  560. package/dist/unstable/ai/Prompt.d.ts +194 -168
  561. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  562. package/dist/unstable/ai/Prompt.js +75 -66
  563. package/dist/unstable/ai/Prompt.js.map +1 -1
  564. package/dist/unstable/ai/Response.d.ts +153 -140
  565. package/dist/unstable/ai/Response.d.ts.map +1 -1
  566. package/dist/unstable/ai/Response.js +43 -48
  567. package/dist/unstable/ai/Response.js.map +1 -1
  568. package/dist/unstable/ai/ResponseIdTracker.d.ts +43 -4
  569. package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
  570. package/dist/unstable/ai/ResponseIdTracker.js +27 -2
  571. package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
  572. package/dist/unstable/ai/Telemetry.d.ts +42 -32
  573. package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
  574. package/dist/unstable/ai/Telemetry.js +14 -10
  575. package/dist/unstable/ai/Telemetry.js.map +1 -1
  576. package/dist/unstable/ai/Tokenizer.d.ts +13 -8
  577. package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
  578. package/dist/unstable/ai/Tokenizer.js +10 -6
  579. package/dist/unstable/ai/Tokenizer.js.map +1 -1
  580. package/dist/unstable/ai/Tool.d.ts +153 -84
  581. package/dist/unstable/ai/Tool.d.ts.map +1 -1
  582. package/dist/unstable/ai/Tool.js +97 -44
  583. package/dist/unstable/ai/Tool.js.map +1 -1
  584. package/dist/unstable/ai/Toolkit.d.ts +33 -42
  585. package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
  586. package/dist/unstable/ai/Toolkit.js +35 -36
  587. package/dist/unstable/ai/Toolkit.js.map +1 -1
  588. package/dist/unstable/ai/index.d.ts +42 -24
  589. package/dist/unstable/ai/index.d.ts.map +1 -1
  590. package/dist/unstable/ai/index.js +42 -24
  591. package/dist/unstable/ai/index.js.map +1 -1
  592. package/dist/unstable/cli/Argument.d.ts +226 -134
  593. package/dist/unstable/cli/Argument.d.ts.map +1 -1
  594. package/dist/unstable/cli/Argument.js +101 -65
  595. package/dist/unstable/cli/Argument.js.map +1 -1
  596. package/dist/unstable/cli/CliError.d.ts +72 -26
  597. package/dist/unstable/cli/CliError.d.ts.map +1 -1
  598. package/dist/unstable/cli/CliError.js +86 -23
  599. package/dist/unstable/cli/CliError.js.map +1 -1
  600. package/dist/unstable/cli/CliOutput.d.ts +43 -13
  601. package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
  602. package/dist/unstable/cli/CliOutput.js +30 -6
  603. package/dist/unstable/cli/CliOutput.js.map +1 -1
  604. package/dist/unstable/cli/Command.d.ts +218 -117
  605. package/dist/unstable/cli/Command.d.ts.map +1 -1
  606. package/dist/unstable/cli/Command.js +45 -31
  607. package/dist/unstable/cli/Command.js.map +1 -1
  608. package/dist/unstable/cli/Completions.d.ts +7 -7
  609. package/dist/unstable/cli/Completions.js +1 -1
  610. package/dist/unstable/cli/Flag.d.ts +235 -142
  611. package/dist/unstable/cli/Flag.d.ts.map +1 -1
  612. package/dist/unstable/cli/Flag.js +111 -71
  613. package/dist/unstable/cli/Flag.js.map +1 -1
  614. package/dist/unstable/cli/GlobalFlag.d.ts +42 -14
  615. package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
  616. package/dist/unstable/cli/GlobalFlag.js +30 -7
  617. package/dist/unstable/cli/GlobalFlag.js.map +1 -1
  618. package/dist/unstable/cli/HelpDoc.d.ts +35 -10
  619. package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
  620. package/dist/unstable/cli/HelpDoc.js +21 -0
  621. package/dist/unstable/cli/Param.d.ts +79 -31
  622. package/dist/unstable/cli/Param.d.ts.map +1 -1
  623. package/dist/unstable/cli/Param.js +161 -99
  624. package/dist/unstable/cli/Param.js.map +1 -1
  625. package/dist/unstable/cli/Primitive.d.ts +79 -42
  626. package/dist/unstable/cli/Primitive.d.ts.map +1 -1
  627. package/dist/unstable/cli/Primitive.js +66 -35
  628. package/dist/unstable/cli/Primitive.js.map +1 -1
  629. package/dist/unstable/cli/Prompt.d.ts +178 -47
  630. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  631. package/dist/unstable/cli/Prompt.js +111 -31
  632. package/dist/unstable/cli/Prompt.js.map +1 -1
  633. package/dist/unstable/cli/internal/ansi.d.ts.map +1 -1
  634. package/dist/unstable/cli/internal/ansi.js +13 -0
  635. package/dist/unstable/cli/internal/ansi.js.map +1 -1
  636. package/dist/unstable/cli/internal/command.d.ts +7 -7
  637. package/dist/unstable/cli/internal/command.d.ts.map +1 -1
  638. package/dist/unstable/cli/internal/command.js +12 -10
  639. package/dist/unstable/cli/internal/command.js.map +1 -1
  640. package/dist/unstable/cli/internal/config.d.ts +3 -0
  641. package/dist/unstable/cli/internal/config.d.ts.map +1 -1
  642. package/dist/unstable/cli/internal/config.js.map +1 -1
  643. package/dist/unstable/cli/internal/lexer.js.map +1 -1
  644. package/dist/unstable/cluster/ClusterCron.d.ts +35 -1
  645. package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
  646. package/dist/unstable/cluster/ClusterCron.js +35 -1
  647. package/dist/unstable/cluster/ClusterCron.js.map +1 -1
  648. package/dist/unstable/cluster/ClusterError.d.ts +56 -7
  649. package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
  650. package/dist/unstable/cluster/ClusterError.js +56 -7
  651. package/dist/unstable/cluster/ClusterError.js.map +1 -1
  652. package/dist/unstable/cluster/ClusterMetrics.d.ts +39 -5
  653. package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
  654. package/dist/unstable/cluster/ClusterMetrics.js +39 -5
  655. package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
  656. package/dist/unstable/cluster/ClusterSchema.d.ts +61 -8
  657. package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
  658. package/dist/unstable/cluster/ClusterSchema.js +61 -8
  659. package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
  660. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +14 -2
  661. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  662. package/dist/unstable/cluster/ClusterWorkflowEngine.js +36 -3
  663. package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
  664. package/dist/unstable/cluster/DeliverAt.d.ts +39 -4
  665. package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
  666. package/dist/unstable/cluster/DeliverAt.js +11 -3
  667. package/dist/unstable/cluster/DeliverAt.js.map +1 -1
  668. package/dist/unstable/cluster/Entity.d.ts +75 -16
  669. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  670. package/dist/unstable/cluster/Entity.js +78 -13
  671. package/dist/unstable/cluster/Entity.js.map +1 -1
  672. package/dist/unstable/cluster/EntityAddress.d.ts +30 -2
  673. package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
  674. package/dist/unstable/cluster/EntityAddress.js +30 -2
  675. package/dist/unstable/cluster/EntityAddress.js.map +1 -1
  676. package/dist/unstable/cluster/EntityId.d.ts +18 -3
  677. package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
  678. package/dist/unstable/cluster/EntityId.js +15 -2
  679. package/dist/unstable/cluster/EntityId.js.map +1 -1
  680. package/dist/unstable/cluster/EntityProxy.d.ts +34 -2
  681. package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
  682. package/dist/unstable/cluster/EntityProxy.js +24 -2
  683. package/dist/unstable/cluster/EntityProxy.js.map +1 -1
  684. package/dist/unstable/cluster/EntityProxyServer.d.ts +17 -2
  685. package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
  686. package/dist/unstable/cluster/EntityProxyServer.js +40 -8
  687. package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
  688. package/dist/unstable/cluster/EntityResource.d.ts +43 -6
  689. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  690. package/dist/unstable/cluster/EntityResource.js +11 -4
  691. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  692. package/dist/unstable/cluster/EntityType.d.ts +27 -3
  693. package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
  694. package/dist/unstable/cluster/EntityType.js +24 -2
  695. package/dist/unstable/cluster/EntityType.js.map +1 -1
  696. package/dist/unstable/cluster/Envelope.d.ts +105 -23
  697. package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
  698. package/dist/unstable/cluster/Envelope.js +88 -14
  699. package/dist/unstable/cluster/Envelope.js.map +1 -1
  700. package/dist/unstable/cluster/HttpRunner.d.ts +88 -13
  701. package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
  702. package/dist/unstable/cluster/HttpRunner.js +88 -13
  703. package/dist/unstable/cluster/HttpRunner.js.map +1 -1
  704. package/dist/unstable/cluster/K8sHttpClient.d.ts +49 -6
  705. package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
  706. package/dist/unstable/cluster/K8sHttpClient.js +31 -6
  707. package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
  708. package/dist/unstable/cluster/MachineId.d.ts +24 -3
  709. package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
  710. package/dist/unstable/cluster/MachineId.js +21 -2
  711. package/dist/unstable/cluster/MachineId.js.map +1 -1
  712. package/dist/unstable/cluster/Message.d.ts +102 -13
  713. package/dist/unstable/cluster/Message.d.ts.map +1 -1
  714. package/dist/unstable/cluster/Message.js +86 -10
  715. package/dist/unstable/cluster/Message.js.map +1 -1
  716. package/dist/unstable/cluster/MessageStorage.d.ts +127 -21
  717. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  718. package/dist/unstable/cluster/MessageStorage.js +71 -11
  719. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  720. package/dist/unstable/cluster/Reply.d.ts +101 -12
  721. package/dist/unstable/cluster/Reply.d.ts.map +1 -1
  722. package/dist/unstable/cluster/Reply.js +64 -8
  723. package/dist/unstable/cluster/Reply.js.map +1 -1
  724. package/dist/unstable/cluster/Runner.d.ts +47 -17
  725. package/dist/unstable/cluster/Runner.d.ts.map +1 -1
  726. package/dist/unstable/cluster/Runner.js +47 -17
  727. package/dist/unstable/cluster/Runner.js.map +1 -1
  728. package/dist/unstable/cluster/RunnerAddress.d.ts +34 -2
  729. package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
  730. package/dist/unstable/cluster/RunnerAddress.js +34 -2
  731. package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
  732. package/dist/unstable/cluster/RunnerHealth.d.ts +40 -12
  733. package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
  734. package/dist/unstable/cluster/RunnerHealth.js +40 -12
  735. package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
  736. package/dist/unstable/cluster/RunnerServer.d.ts +7 -4
  737. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  738. package/dist/unstable/cluster/RunnerServer.js +31 -4
  739. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  740. package/dist/unstable/cluster/RunnerStorage.d.ts +42 -5
  741. package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
  742. package/dist/unstable/cluster/RunnerStorage.js +38 -4
  743. package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
  744. package/dist/unstable/cluster/Runners.d.ts +73 -10
  745. package/dist/unstable/cluster/Runners.d.ts.map +1 -1
  746. package/dist/unstable/cluster/Runners.js +70 -9
  747. package/dist/unstable/cluster/Runners.js.map +1 -1
  748. package/dist/unstable/cluster/ShardId.d.ts +51 -5
  749. package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
  750. package/dist/unstable/cluster/ShardId.js +47 -4
  751. package/dist/unstable/cluster/ShardId.js.map +1 -1
  752. package/dist/unstable/cluster/Sharding.d.ts +10 -2
  753. package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
  754. package/dist/unstable/cluster/Sharding.js +35 -4
  755. package/dist/unstable/cluster/Sharding.js.map +1 -1
  756. package/dist/unstable/cluster/ShardingConfig.d.ts +65 -9
  757. package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
  758. package/dist/unstable/cluster/ShardingConfig.js +67 -10
  759. package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
  760. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +27 -6
  761. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
  762. package/dist/unstable/cluster/ShardingRegistrationEvent.js +28 -4
  763. package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
  764. package/dist/unstable/cluster/SingleRunner.d.ts +23 -1
  765. package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
  766. package/dist/unstable/cluster/SingleRunner.js +23 -1
  767. package/dist/unstable/cluster/SingleRunner.js.map +1 -1
  768. package/dist/unstable/cluster/Singleton.d.ts +15 -1
  769. package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
  770. package/dist/unstable/cluster/Singleton.js +15 -1
  771. package/dist/unstable/cluster/Singleton.js.map +1 -1
  772. package/dist/unstable/cluster/SingletonAddress.d.ts +21 -1
  773. package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
  774. package/dist/unstable/cluster/SingletonAddress.js +21 -1
  775. package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
  776. package/dist/unstable/cluster/Snowflake.d.ts +89 -19
  777. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  778. package/dist/unstable/cluster/Snowflake.js +48 -13
  779. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  780. package/dist/unstable/cluster/SocketRunner.d.ts +8 -2
  781. package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
  782. package/dist/unstable/cluster/SocketRunner.js +29 -2
  783. package/dist/unstable/cluster/SocketRunner.js.map +1 -1
  784. package/dist/unstable/cluster/SqlMessageStorage.d.ts +11 -3
  785. package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
  786. package/dist/unstable/cluster/SqlMessageStorage.js +27 -3
  787. package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
  788. package/dist/unstable/cluster/SqlRunnerStorage.d.ts +11 -3
  789. package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
  790. package/dist/unstable/cluster/SqlRunnerStorage.js +46 -7
  791. package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
  792. package/dist/unstable/cluster/TestRunner.d.ts +18 -1
  793. package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
  794. package/dist/unstable/cluster/TestRunner.js +18 -1
  795. package/dist/unstable/cluster/TestRunner.js.map +1 -1
  796. package/dist/unstable/cluster/internal/hash.js +12 -0
  797. package/dist/unstable/cluster/internal/hash.js.map +1 -1
  798. package/dist/unstable/devtools/DevTools.d.ts +26 -3
  799. package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
  800. package/dist/unstable/devtools/DevTools.js +26 -3
  801. package/dist/unstable/devtools/DevTools.js.map +1 -1
  802. package/dist/unstable/devtools/DevToolsClient.d.ts +20 -5
  803. package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
  804. package/dist/unstable/devtools/DevToolsClient.js +32 -5
  805. package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
  806. package/dist/unstable/devtools/DevToolsSchema.d.ts +184 -44
  807. package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
  808. package/dist/unstable/devtools/DevToolsSchema.js +102 -20
  809. package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
  810. package/dist/unstable/devtools/DevToolsServer.d.ts +27 -2
  811. package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
  812. package/dist/unstable/devtools/DevToolsServer.js +21 -1
  813. package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
  814. package/dist/unstable/encoding/Msgpack.d.ts +81 -12
  815. package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
  816. package/dist/unstable/encoding/Msgpack.js +75 -9
  817. package/dist/unstable/encoding/Msgpack.js.map +1 -1
  818. package/dist/unstable/encoding/Ndjson.d.ts +149 -21
  819. package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
  820. package/dist/unstable/encoding/Ndjson.js +97 -13
  821. package/dist/unstable/encoding/Ndjson.js.map +1 -1
  822. package/dist/unstable/encoding/Sse.d.ts +109 -18
  823. package/dist/unstable/encoding/Sse.d.ts.map +1 -1
  824. package/dist/unstable/encoding/Sse.js +69 -13
  825. package/dist/unstable/encoding/Sse.js.map +1 -1
  826. package/dist/unstable/eventlog/Event.d.ts +115 -30
  827. package/dist/unstable/eventlog/Event.d.ts.map +1 -1
  828. package/dist/unstable/eventlog/Event.js +22 -2
  829. package/dist/unstable/eventlog/Event.js.map +1 -1
  830. package/dist/unstable/eventlog/EventGroup.d.ts +50 -17
  831. package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
  832. package/dist/unstable/eventlog/EventGroup.js +24 -6
  833. package/dist/unstable/eventlog/EventGroup.js.map +1 -1
  834. package/dist/unstable/eventlog/EventJournal.d.ts +104 -20
  835. package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
  836. package/dist/unstable/eventlog/EventJournal.js +108 -16
  837. package/dist/unstable/eventlog/EventJournal.js.map +1 -1
  838. package/dist/unstable/eventlog/EventLog.d.ts +151 -31
  839. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  840. package/dist/unstable/eventlog/EventLog.js +111 -20
  841. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  842. package/dist/unstable/eventlog/EventLogEncryption.d.ts +42 -6
  843. package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
  844. package/dist/unstable/eventlog/EventLogEncryption.js +38 -5
  845. package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
  846. package/dist/unstable/eventlog/EventLogMessage.d.ts +96 -22
  847. package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
  848. package/dist/unstable/eventlog/EventLogMessage.js +72 -16
  849. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  850. package/dist/unstable/eventlog/EventLogRemote.d.ts +35 -8
  851. package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
  852. package/dist/unstable/eventlog/EventLogRemote.js +54 -8
  853. package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
  854. package/dist/unstable/eventlog/EventLogServer.d.ts +17 -3
  855. package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
  856. package/dist/unstable/eventlog/EventLogServer.js +17 -3
  857. package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
  858. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +32 -6
  859. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
  860. package/dist/unstable/eventlog/EventLogServerEncrypted.js +52 -6
  861. package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
  862. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +74 -16
  863. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
  864. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +90 -16
  865. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  866. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +59 -15
  867. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
  868. package/dist/unstable/eventlog/EventLogSessionAuth.js +73 -14
  869. package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
  870. package/dist/unstable/eventlog/SqlEventJournal.d.ts +10 -2
  871. package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
  872. package/dist/unstable/eventlog/SqlEventJournal.js +28 -2
  873. package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
  874. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +32 -3
  875. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
  876. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +32 -3
  877. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
  878. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +10 -2
  879. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  880. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +28 -2
  881. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  882. package/dist/unstable/http/Cookies.d.ts +156 -77
  883. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  884. package/dist/unstable/http/Cookies.js +93 -39
  885. package/dist/unstable/http/Cookies.js.map +1 -1
  886. package/dist/unstable/http/Etag.d.ts +40 -7
  887. package/dist/unstable/http/Etag.d.ts.map +1 -1
  888. package/dist/unstable/http/Etag.js +27 -4
  889. package/dist/unstable/http/Etag.js.map +1 -1
  890. package/dist/unstable/http/FetchHttpClient.d.ts +29 -3
  891. package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
  892. package/dist/unstable/http/FetchHttpClient.js +33 -4
  893. package/dist/unstable/http/FetchHttpClient.js.map +1 -1
  894. package/dist/unstable/http/FindMyWay.d.ts +1 -1
  895. package/dist/unstable/http/FindMyWay.js +1 -1
  896. package/dist/unstable/http/Headers.d.ts +182 -36
  897. package/dist/unstable/http/Headers.d.ts.map +1 -1
  898. package/dist/unstable/http/Headers.js +86 -16
  899. package/dist/unstable/http/Headers.js.map +1 -1
  900. package/dist/unstable/http/HttpBody.d.ts +114 -26
  901. package/dist/unstable/http/HttpBody.d.ts.map +1 -1
  902. package/dist/unstable/http/HttpBody.js +100 -22
  903. package/dist/unstable/http/HttpBody.js.map +1 -1
  904. package/dist/unstable/http/HttpClient.d.ts +205 -96
  905. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  906. package/dist/unstable/http/HttpClient.js +85 -39
  907. package/dist/unstable/http/HttpClient.js.map +1 -1
  908. package/dist/unstable/http/HttpClientError.d.ts +68 -12
  909. package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
  910. package/dist/unstable/http/HttpClientError.js +71 -9
  911. package/dist/unstable/http/HttpClientError.js.map +1 -1
  912. package/dist/unstable/http/HttpClientRequest.d.ts +318 -100
  913. package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
  914. package/dist/unstable/http/HttpClientRequest.js +153 -47
  915. package/dist/unstable/http/HttpClientRequest.js.map +1 -1
  916. package/dist/unstable/http/HttpClientResponse.d.ts +59 -16
  917. package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
  918. package/dist/unstable/http/HttpClientResponse.js +44 -11
  919. package/dist/unstable/http/HttpClientResponse.js.map +1 -1
  920. package/dist/unstable/http/HttpEffect.d.ts +42 -16
  921. package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
  922. package/dist/unstable/http/HttpEffect.js +33 -13
  923. package/dist/unstable/http/HttpEffect.js.map +1 -1
  924. package/dist/unstable/http/HttpIncomingMessage.d.ts +47 -7
  925. package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
  926. package/dist/unstable/http/HttpIncomingMessage.js +44 -6
  927. package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
  928. package/dist/unstable/http/HttpMethod.d.ts +35 -5
  929. package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
  930. package/dist/unstable/http/HttpMethod.js +23 -1
  931. package/dist/unstable/http/HttpMethod.js.map +1 -1
  932. package/dist/unstable/http/HttpMiddleware.d.ts +37 -11
  933. package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
  934. package/dist/unstable/http/HttpMiddleware.js +70 -31
  935. package/dist/unstable/http/HttpMiddleware.js.map +1 -1
  936. package/dist/unstable/http/HttpPlatform.d.ts +34 -3
  937. package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
  938. package/dist/unstable/http/HttpPlatform.js +35 -4
  939. package/dist/unstable/http/HttpPlatform.js.map +1 -1
  940. package/dist/unstable/http/HttpRouter.d.ts +194 -45
  941. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  942. package/dist/unstable/http/HttpRouter.js +122 -28
  943. package/dist/unstable/http/HttpRouter.js.map +1 -1
  944. package/dist/unstable/http/HttpServer.d.ts +151 -22
  945. package/dist/unstable/http/HttpServer.d.ts.map +1 -1
  946. package/dist/unstable/http/HttpServer.js +77 -12
  947. package/dist/unstable/http/HttpServer.js.map +1 -1
  948. package/dist/unstable/http/HttpServerError.d.ts +90 -10
  949. package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
  950. package/dist/unstable/http/HttpServerError.js +82 -8
  951. package/dist/unstable/http/HttpServerError.js.map +1 -1
  952. package/dist/unstable/http/HttpServerRequest.d.ts +125 -21
  953. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  954. package/dist/unstable/http/HttpServerRequest.js +112 -31
  955. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  956. package/dist/unstable/http/HttpServerRespondable.d.ts +32 -6
  957. package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
  958. package/dist/unstable/http/HttpServerRespondable.js +43 -5
  959. package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
  960. package/dist/unstable/http/HttpServerResponse.d.ts +390 -67
  961. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  962. package/dist/unstable/http/HttpServerResponse.js +209 -38
  963. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  964. package/dist/unstable/http/HttpStaticServer.d.ts +22 -4
  965. package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
  966. package/dist/unstable/http/HttpStaticServer.js +22 -4
  967. package/dist/unstable/http/HttpStaticServer.js.map +1 -1
  968. package/dist/unstable/http/HttpTraceContext.d.ts +53 -6
  969. package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
  970. package/dist/unstable/http/HttpTraceContext.js +47 -5
  971. package/dist/unstable/http/HttpTraceContext.js.map +1 -1
  972. package/dist/unstable/http/Multipart.d.ts +178 -28
  973. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  974. package/dist/unstable/http/Multipart.js +130 -20
  975. package/dist/unstable/http/Multipart.js.map +1 -1
  976. package/dist/unstable/http/Multipasta/HeadersParser.d.ts +1 -1
  977. package/dist/unstable/http/Multipasta/HeadersParser.js +1 -1
  978. package/dist/unstable/http/Multipasta/Node.d.ts +1 -1
  979. package/dist/unstable/http/Multipasta/Node.js +1 -1
  980. package/dist/unstable/http/Multipasta/Search.d.ts +1 -1
  981. package/dist/unstable/http/Multipasta/Search.js +1 -1
  982. package/dist/unstable/http/Multipasta/Web.d.ts +1 -1
  983. package/dist/unstable/http/Multipasta/Web.js +1 -1
  984. package/dist/unstable/http/Multipasta.d.ts +1 -1
  985. package/dist/unstable/http/Multipasta.js +1 -1
  986. package/dist/unstable/http/Template.d.ts +53 -0
  987. package/dist/unstable/http/Template.d.ts.map +1 -1
  988. package/dist/unstable/http/Template.js +26 -0
  989. package/dist/unstable/http/Template.js.map +1 -1
  990. package/dist/unstable/http/Url.d.ts +56 -42
  991. package/dist/unstable/http/Url.d.ts.map +1 -1
  992. package/dist/unstable/http/Url.js +29 -15
  993. package/dist/unstable/http/Url.js.map +1 -1
  994. package/dist/unstable/http/UrlParams.d.ts +233 -49
  995. package/dist/unstable/http/UrlParams.d.ts.map +1 -1
  996. package/dist/unstable/http/UrlParams.js +116 -23
  997. package/dist/unstable/http/UrlParams.js.map +1 -1
  998. package/dist/unstable/httpapi/HttpApi.d.ts +49 -14
  999. package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
  1000. package/dist/unstable/httpapi/HttpApi.js +14 -8
  1001. package/dist/unstable/httpapi/HttpApi.js.map +1 -1
  1002. package/dist/unstable/httpapi/HttpApiBuilder.d.ts +55 -16
  1003. package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
  1004. package/dist/unstable/httpapi/HttpApiBuilder.js +47 -9
  1005. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  1006. package/dist/unstable/httpapi/HttpApiClient.d.ts +58 -15
  1007. package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
  1008. package/dist/unstable/httpapi/HttpApiClient.js +43 -7
  1009. package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
  1010. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +214 -59
  1011. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
  1012. package/dist/unstable/httpapi/HttpApiEndpoint.js +53 -9
  1013. package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
  1014. package/dist/unstable/httpapi/HttpApiError.d.ts +81 -1
  1015. package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
  1016. package/dist/unstable/httpapi/HttpApiError.js +98 -1
  1017. package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
  1018. package/dist/unstable/httpapi/HttpApiGroup.d.ts +87 -20
  1019. package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
  1020. package/dist/unstable/httpapi/HttpApiGroup.js +5 -2
  1021. package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
  1022. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +113 -22
  1023. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
  1024. package/dist/unstable/httpapi/HttpApiMiddleware.js +49 -6
  1025. package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
  1026. package/dist/unstable/httpapi/HttpApiScalar.d.ts +19 -4
  1027. package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
  1028. package/dist/unstable/httpapi/HttpApiScalar.js +32 -2
  1029. package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
  1030. package/dist/unstable/httpapi/HttpApiSchema.d.ts +67 -30
  1031. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  1032. package/dist/unstable/httpapi/HttpApiSchema.js +48 -27
  1033. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  1034. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +74 -17
  1035. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  1036. package/dist/unstable/httpapi/HttpApiSecurity.js +38 -5
  1037. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  1038. package/dist/unstable/httpapi/HttpApiSwagger.d.ts +5 -2
  1039. package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
  1040. package/dist/unstable/httpapi/HttpApiSwagger.js +24 -2
  1041. package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
  1042. package/dist/unstable/httpapi/HttpApiTest.d.ts +9 -2
  1043. package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
  1044. package/dist/unstable/httpapi/HttpApiTest.js +28 -3
  1045. package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
  1046. package/dist/unstable/httpapi/OpenApi.d.ts +86 -15
  1047. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  1048. package/dist/unstable/httpapi/OpenApi.js +73 -15
  1049. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  1050. package/dist/unstable/observability/Otlp.d.ts +33 -3
  1051. package/dist/unstable/observability/Otlp.d.ts.map +1 -1
  1052. package/dist/unstable/observability/Otlp.js +14 -3
  1053. package/dist/unstable/observability/Otlp.js.map +1 -1
  1054. package/dist/unstable/observability/OtlpExporter.d.ts +8 -1
  1055. package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
  1056. package/dist/unstable/observability/OtlpExporter.js +32 -1
  1057. package/dist/unstable/observability/OtlpExporter.js.map +1 -1
  1058. package/dist/unstable/observability/OtlpLogger.d.ts +14 -2
  1059. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  1060. package/dist/unstable/observability/OtlpLogger.js +29 -2
  1061. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  1062. package/dist/unstable/observability/OtlpMetrics.d.ts +15 -4
  1063. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  1064. package/dist/unstable/observability/OtlpMetrics.js +32 -2
  1065. package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
  1066. package/dist/unstable/observability/OtlpResource.d.ts +49 -12
  1067. package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
  1068. package/dist/unstable/observability/OtlpResource.js +47 -5
  1069. package/dist/unstable/observability/OtlpResource.js.map +1 -1
  1070. package/dist/unstable/observability/OtlpSerialization.d.ts +28 -3
  1071. package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
  1072. package/dist/unstable/observability/OtlpSerialization.js +28 -3
  1073. package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
  1074. package/dist/unstable/observability/OtlpTracer.d.ts +16 -2
  1075. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  1076. package/dist/unstable/observability/OtlpTracer.js +32 -2
  1077. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  1078. package/dist/unstable/observability/PrometheusMetrics.d.ts +32 -12
  1079. package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
  1080. package/dist/unstable/observability/PrometheusMetrics.js +7 -5
  1081. package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
  1082. package/dist/unstable/observability/index.d.ts +2 -1
  1083. package/dist/unstable/observability/index.d.ts.map +1 -1
  1084. package/dist/unstable/observability/index.js +2 -1
  1085. package/dist/unstable/observability/index.js.map +1 -1
  1086. package/dist/unstable/persistence/KeyValueStore.d.ts +93 -18
  1087. package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
  1088. package/dist/unstable/persistence/KeyValueStore.js +81 -21
  1089. package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
  1090. package/dist/unstable/persistence/Persistable.d.ts +76 -15
  1091. package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
  1092. package/dist/unstable/persistence/Persistable.js +22 -5
  1093. package/dist/unstable/persistence/Persistable.js.map +1 -1
  1094. package/dist/unstable/persistence/PersistedCache.d.ts +27 -2
  1095. package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
  1096. package/dist/unstable/persistence/PersistedCache.js +24 -1
  1097. package/dist/unstable/persistence/PersistedCache.js.map +1 -1
  1098. package/dist/unstable/persistence/PersistedQueue.d.ts +73 -16
  1099. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  1100. package/dist/unstable/persistence/PersistedQueue.js +60 -13
  1101. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  1102. package/dist/unstable/persistence/Persistence.d.ts +97 -16
  1103. package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
  1104. package/dist/unstable/persistence/Persistence.js +90 -14
  1105. package/dist/unstable/persistence/Persistence.js.map +1 -1
  1106. package/dist/unstable/persistence/RateLimiter.d.ts +97 -21
  1107. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  1108. package/dist/unstable/persistence/RateLimiter.js +82 -17
  1109. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  1110. package/dist/unstable/persistence/Redis.d.ts +26 -5
  1111. package/dist/unstable/persistence/Redis.d.ts.map +1 -1
  1112. package/dist/unstable/persistence/Redis.js +36 -4
  1113. package/dist/unstable/persistence/Redis.js.map +1 -1
  1114. package/dist/unstable/process/ChildProcess.d.ts +89 -109
  1115. package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
  1116. package/dist/unstable/process/ChildProcess.js +74 -23
  1117. package/dist/unstable/process/ChildProcess.js.map +1 -1
  1118. package/dist/unstable/process/ChildProcessSpawner.d.ts +22 -11
  1119. package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
  1120. package/dist/unstable/process/ChildProcessSpawner.js +11 -6
  1121. package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
  1122. package/dist/unstable/process/index.d.ts +2 -1
  1123. package/dist/unstable/process/index.d.ts.map +1 -1
  1124. package/dist/unstable/process/index.js +2 -1
  1125. package/dist/unstable/process/index.js.map +1 -1
  1126. package/dist/unstable/reactivity/AsyncResult.d.ts +196 -59
  1127. package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
  1128. package/dist/unstable/reactivity/AsyncResult.js +121 -36
  1129. package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
  1130. package/dist/unstable/reactivity/Atom.d.ts +539 -130
  1131. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  1132. package/dist/unstable/reactivity/Atom.js +256 -62
  1133. package/dist/unstable/reactivity/Atom.js.map +1 -1
  1134. package/dist/unstable/reactivity/AtomHttpApi.d.ts +41 -2
  1135. package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
  1136. package/dist/unstable/reactivity/AtomHttpApi.js +35 -1
  1137. package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
  1138. package/dist/unstable/reactivity/AtomRef.d.ts +51 -7
  1139. package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
  1140. package/dist/unstable/reactivity/AtomRef.js +29 -3
  1141. package/dist/unstable/reactivity/AtomRef.js.map +1 -1
  1142. package/dist/unstable/reactivity/AtomRegistry.d.ts +135 -21
  1143. package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
  1144. package/dist/unstable/reactivity/AtomRegistry.js +69 -10
  1145. package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
  1146. package/dist/unstable/reactivity/AtomRpc.d.ts +36 -2
  1147. package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
  1148. package/dist/unstable/reactivity/AtomRpc.js +29 -1
  1149. package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
  1150. package/dist/unstable/reactivity/Hydration.d.ts +28 -5
  1151. package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
  1152. package/dist/unstable/reactivity/Hydration.js +35 -3
  1153. package/dist/unstable/reactivity/Hydration.js.map +1 -1
  1154. package/dist/unstable/reactivity/Reactivity.d.ts +95 -13
  1155. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  1156. package/dist/unstable/reactivity/Reactivity.js +61 -7
  1157. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  1158. package/dist/unstable/rpc/Rpc.d.ts +255 -56
  1159. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  1160. package/dist/unstable/rpc/Rpc.js +44 -11
  1161. package/dist/unstable/rpc/Rpc.js.map +1 -1
  1162. package/dist/unstable/rpc/RpcClient.d.ts +81 -19
  1163. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  1164. package/dist/unstable/rpc/RpcClient.js +53 -13
  1165. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  1166. package/dist/unstable/rpc/RpcClientError.d.ts +26 -2
  1167. package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
  1168. package/dist/unstable/rpc/RpcClientError.js +26 -2
  1169. package/dist/unstable/rpc/RpcClientError.js.map +1 -1
  1170. package/dist/unstable/rpc/RpcGroup.d.ts +51 -8
  1171. package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
  1172. package/dist/unstable/rpc/RpcGroup.js +3 -1
  1173. package/dist/unstable/rpc/RpcGroup.js.map +1 -1
  1174. package/dist/unstable/rpc/RpcMessage.d.ts +128 -32
  1175. package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
  1176. package/dist/unstable/rpc/RpcMessage.js +23 -7
  1177. package/dist/unstable/rpc/RpcMessage.js.map +1 -1
  1178. package/dist/unstable/rpc/RpcMiddleware.d.ts +100 -20
  1179. package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
  1180. package/dist/unstable/rpc/RpcMiddleware.js +39 -3
  1181. package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
  1182. package/dist/unstable/rpc/RpcSchema.d.ts +38 -4
  1183. package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
  1184. package/dist/unstable/rpc/RpcSchema.js +34 -3
  1185. package/dist/unstable/rpc/RpcSchema.js.map +1 -1
  1186. package/dist/unstable/rpc/RpcSerialization.d.ts +60 -13
  1187. package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
  1188. package/dist/unstable/rpc/RpcSerialization.js +56 -12
  1189. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  1190. package/dist/unstable/rpc/RpcServer.d.ts +73 -23
  1191. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  1192. package/dist/unstable/rpc/RpcServer.js +70 -23
  1193. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  1194. package/dist/unstable/rpc/RpcTest.d.ts +20 -1
  1195. package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
  1196. package/dist/unstable/rpc/RpcTest.js +20 -1
  1197. package/dist/unstable/rpc/RpcTest.js.map +1 -1
  1198. package/dist/unstable/rpc/RpcWorker.d.ts +40 -6
  1199. package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
  1200. package/dist/unstable/rpc/RpcWorker.js +17 -5
  1201. package/dist/unstable/rpc/RpcWorker.js.map +1 -1
  1202. package/dist/unstable/rpc/Utils.d.ts +8 -0
  1203. package/dist/unstable/rpc/Utils.d.ts.map +1 -1
  1204. package/dist/unstable/rpc/Utils.js +8 -0
  1205. package/dist/unstable/rpc/Utils.js.map +1 -1
  1206. package/dist/unstable/schema/Model.d.ts +130 -52
  1207. package/dist/unstable/schema/Model.d.ts.map +1 -1
  1208. package/dist/unstable/schema/Model.js +79 -34
  1209. package/dist/unstable/schema/Model.js.map +1 -1
  1210. package/dist/unstable/schema/VariantSchema.d.ts +104 -24
  1211. package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
  1212. package/dist/unstable/schema/VariantSchema.js +22 -6
  1213. package/dist/unstable/schema/VariantSchema.js.map +1 -1
  1214. package/dist/unstable/socket/Socket.d.ts +167 -34
  1215. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  1216. package/dist/unstable/socket/Socket.js +124 -29
  1217. package/dist/unstable/socket/Socket.js.map +1 -1
  1218. package/dist/unstable/socket/SocketServer.d.ts +58 -10
  1219. package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
  1220. package/dist/unstable/socket/SocketServer.js +43 -5
  1221. package/dist/unstable/socket/SocketServer.js.map +1 -1
  1222. package/dist/unstable/sql/Migrator.d.ts +35 -4
  1223. package/dist/unstable/sql/Migrator.d.ts.map +1 -1
  1224. package/dist/unstable/sql/Migrator.js +45 -5
  1225. package/dist/unstable/sql/Migrator.js.map +1 -1
  1226. package/dist/unstable/sql/SqlClient.d.ts +34 -2
  1227. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  1228. package/dist/unstable/sql/SqlClient.js +38 -1
  1229. package/dist/unstable/sql/SqlClient.js.map +1 -1
  1230. package/dist/unstable/sql/SqlConnection.d.ts +31 -0
  1231. package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
  1232. package/dist/unstable/sql/SqlConnection.js +22 -0
  1233. package/dist/unstable/sql/SqlConnection.js.map +1 -1
  1234. package/dist/unstable/sql/SqlError.d.ts +99 -0
  1235. package/dist/unstable/sql/SqlError.d.ts.map +1 -1
  1236. package/dist/unstable/sql/SqlError.js +114 -0
  1237. package/dist/unstable/sql/SqlError.js.map +1 -1
  1238. package/dist/unstable/sql/SqlModel.d.ts +26 -5
  1239. package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
  1240. package/dist/unstable/sql/SqlModel.js +8 -4
  1241. package/dist/unstable/sql/SqlModel.js.map +1 -1
  1242. package/dist/unstable/sql/SqlResolver.d.ts +56 -13
  1243. package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
  1244. package/dist/unstable/sql/SqlResolver.js +44 -10
  1245. package/dist/unstable/sql/SqlResolver.js.map +1 -1
  1246. package/dist/unstable/sql/SqlSchema.d.ts +29 -8
  1247. package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
  1248. package/dist/unstable/sql/SqlSchema.js +29 -8
  1249. package/dist/unstable/sql/SqlSchema.js.map +1 -1
  1250. package/dist/unstable/sql/SqlStream.d.ts +3 -0
  1251. package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
  1252. package/dist/unstable/sql/SqlStream.js +23 -0
  1253. package/dist/unstable/sql/SqlStream.js.map +1 -1
  1254. package/dist/unstable/sql/Statement.d.ts +124 -0
  1255. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  1256. package/dist/unstable/sql/Statement.js +82 -0
  1257. package/dist/unstable/sql/Statement.js.map +1 -1
  1258. package/dist/unstable/sql/index.d.ts +1 -1
  1259. package/dist/unstable/sql/index.js +1 -1
  1260. package/dist/unstable/workers/Transferable.d.ts +65 -13
  1261. package/dist/unstable/workers/Transferable.d.ts.map +1 -1
  1262. package/dist/unstable/workers/Transferable.js +53 -10
  1263. package/dist/unstable/workers/Transferable.js.map +1 -1
  1264. package/dist/unstable/workers/Worker.d.ts +60 -8
  1265. package/dist/unstable/workers/Worker.d.ts.map +1 -1
  1266. package/dist/unstable/workers/Worker.js +43 -4
  1267. package/dist/unstable/workers/Worker.js.map +1 -1
  1268. package/dist/unstable/workers/WorkerError.d.ts +31 -9
  1269. package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
  1270. package/dist/unstable/workers/WorkerError.js +44 -7
  1271. package/dist/unstable/workers/WorkerError.js.map +1 -1
  1272. package/dist/unstable/workers/WorkerRunner.d.ts +32 -3
  1273. package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
  1274. package/dist/unstable/workers/WorkerRunner.js +24 -1
  1275. package/dist/unstable/workers/WorkerRunner.js.map +1 -1
  1276. package/dist/unstable/workers/index.d.ts +1 -1
  1277. package/dist/unstable/workers/index.js +1 -1
  1278. package/dist/unstable/workflow/Activity.d.ts +61 -10
  1279. package/dist/unstable/workflow/Activity.d.ts.map +1 -1
  1280. package/dist/unstable/workflow/Activity.js +21 -6
  1281. package/dist/unstable/workflow/Activity.js.map +1 -1
  1282. package/dist/unstable/workflow/DurableClock.d.ts +12 -3
  1283. package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
  1284. package/dist/unstable/workflow/DurableClock.js +22 -2
  1285. package/dist/unstable/workflow/DurableClock.js.map +1 -1
  1286. package/dist/unstable/workflow/DurableDeferred.d.ts +126 -31
  1287. package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
  1288. package/dist/unstable/workflow/DurableDeferred.js +76 -13
  1289. package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
  1290. package/dist/unstable/workflow/DurableQueue.d.ts +145 -0
  1291. package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -0
  1292. package/dist/unstable/workflow/DurableQueue.js +200 -0
  1293. package/dist/unstable/workflow/DurableQueue.js.map +1 -0
  1294. package/dist/unstable/workflow/Workflow.d.ts +100 -31
  1295. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  1296. package/dist/unstable/workflow/Workflow.js +76 -20
  1297. package/dist/unstable/workflow/Workflow.js.map +1 -1
  1298. package/dist/unstable/workflow/WorkflowEngine.d.ts +40 -5
  1299. package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
  1300. package/dist/unstable/workflow/WorkflowEngine.js +16 -4
  1301. package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
  1302. package/dist/unstable/workflow/WorkflowProxy.d.ts +32 -2
  1303. package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
  1304. package/dist/unstable/workflow/WorkflowProxy.js +2 -2
  1305. package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
  1306. package/dist/unstable/workflow/WorkflowProxyServer.d.ts +36 -2
  1307. package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
  1308. package/dist/unstable/workflow/WorkflowProxyServer.js +12 -6
  1309. package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
  1310. package/dist/unstable/workflow/index.d.ts +4 -0
  1311. package/dist/unstable/workflow/index.d.ts.map +1 -1
  1312. package/dist/unstable/workflow/index.js +4 -0
  1313. package/dist/unstable/workflow/index.js.map +1 -1
  1314. package/package.json +11 -11
  1315. package/src/Array.ts +113 -67
  1316. package/src/BigDecimal.ts +404 -337
  1317. package/src/BigInt.ts +167 -97
  1318. package/src/Boolean.ts +62 -31
  1319. package/src/Brand.ts +20 -1
  1320. package/src/Cache.ts +331 -164
  1321. package/src/Cause.ts +77 -65
  1322. package/src/Channel.ts +1585 -607
  1323. package/src/ChannelSchema.ts +137 -12
  1324. package/src/Chunk.ts +549 -380
  1325. package/src/Clock.ts +15 -8
  1326. package/src/Combiner.ts +2 -4
  1327. package/src/Config.ts +12 -10
  1328. package/src/ConfigProvider.ts +1 -1
  1329. package/src/Console.ts +88 -58
  1330. package/src/Context.ts +397 -149
  1331. package/src/Cron.ts +111 -48
  1332. package/src/Data.ts +3 -2
  1333. package/src/DateTime.ts +876 -445
  1334. package/src/Deferred.ts +367 -174
  1335. package/src/Differ.ts +42 -0
  1336. package/src/Duration.ts +329 -185
  1337. package/src/Effect.ts +2474 -2395
  1338. package/src/Effectable.ts +39 -4
  1339. package/src/Encoding.ts +78 -28
  1340. package/src/Equivalence.ts +14 -19
  1341. package/src/ErrorReporter.ts +66 -82
  1342. package/src/ExecutionPlan.ts +97 -13
  1343. package/src/Exit.ts +7 -5
  1344. package/src/Fiber.ts +72 -40
  1345. package/src/FiberHandle.ts +158 -58
  1346. package/src/FiberMap.ts +329 -164
  1347. package/src/FiberSet.ts +130 -52
  1348. package/src/FileSystem.ts +106 -74
  1349. package/src/Filter.ts +166 -88
  1350. package/src/Function.ts +154 -86
  1351. package/src/Graph.ts +682 -365
  1352. package/src/HKT.ts +29 -13
  1353. package/src/Hash.ts +31 -18
  1354. package/src/HashMap.ts +444 -256
  1355. package/src/HashRing.ts +94 -17
  1356. package/src/HashSet.ts +194 -104
  1357. package/src/Inspectable.ts +22 -10
  1358. package/src/Iterable.ts +309 -149
  1359. package/src/JsonPatch.ts +4 -3
  1360. package/src/Latch.ts +98 -15
  1361. package/src/Layer.ts +488 -345
  1362. package/src/LayerMap.ts +98 -25
  1363. package/src/LogLevel.ts +92 -131
  1364. package/src/Logger.ts +357 -288
  1365. package/src/ManagedRuntime.ts +75 -17
  1366. package/src/Match.ts +133 -157
  1367. package/src/Metric.ts +355 -304
  1368. package/src/MutableHashMap.ts +161 -84
  1369. package/src/MutableHashSet.ts +122 -52
  1370. package/src/MutableList.ts +141 -81
  1371. package/src/MutableRef.ts +130 -90
  1372. package/src/Newtype.ts +3 -0
  1373. package/src/NonEmptyIterable.ts +36 -39
  1374. package/src/Number.ts +116 -64
  1375. package/src/Optic.ts +1 -2
  1376. package/src/Option.ts +41 -53
  1377. package/src/Ordering.ts +43 -28
  1378. package/src/PartitionedSemaphore.ts +225 -40
  1379. package/src/Path.ts +77 -13
  1380. package/src/Pipeable.ts +76 -21
  1381. package/src/PlatformError.ts +74 -6
  1382. package/src/Pool.ts +94 -31
  1383. package/src/Predicate.ts +16 -21
  1384. package/src/PrimaryKey.ts +9 -2
  1385. package/src/PubSub.ts +364 -262
  1386. package/src/Pull.ts +94 -25
  1387. package/src/Queue.ts +284 -150
  1388. package/src/Random.ts +54 -35
  1389. package/src/RcMap.ts +151 -141
  1390. package/src/RcRef.ts +69 -32
  1391. package/src/Record.ts +273 -129
  1392. package/src/Redactable.ts +3 -3
  1393. package/src/Redacted.ts +63 -33
  1394. package/src/Ref.ts +161 -104
  1395. package/src/References.ts +73 -31
  1396. package/src/RegExp.ts +11 -5
  1397. package/src/Request.ts +158 -34
  1398. package/src/RequestResolver.ts +277 -119
  1399. package/src/Resource.ts +45 -7
  1400. package/src/Result.ts +31 -18
  1401. package/src/Runtime.ts +45 -19
  1402. package/src/Schedule.ts +575 -600
  1403. package/src/Scheduler.ts +43 -6
  1404. package/src/Schema.ts +845 -319
  1405. package/src/SchemaAST.ts +25 -16
  1406. package/src/SchemaGetter.ts +32 -17
  1407. package/src/SchemaIssue.ts +1 -8
  1408. package/src/SchemaParser.ts +262 -38
  1409. package/src/SchemaTransformation.ts +61 -41
  1410. package/src/SchemaUtils.ts +23 -0
  1411. package/src/Scope.ts +102 -43
  1412. package/src/ScopedCache.ts +192 -56
  1413. package/src/ScopedRef.ts +28 -8
  1414. package/src/Semaphore.ts +64 -28
  1415. package/src/Sink.ts +458 -200
  1416. package/src/Stdio.ts +43 -6
  1417. package/src/Stream.ts +2043 -1256
  1418. package/src/String.ts +171 -95
  1419. package/src/SubscriptionRef.ts +308 -203
  1420. package/src/Symbol.ts +13 -5
  1421. package/src/SynchronizedRef.ts +278 -62
  1422. package/src/Take.ts +26 -2
  1423. package/src/Terminal.ts +40 -7
  1424. package/src/Tracer.ts +229 -55
  1425. package/src/Trie.ts +213 -142
  1426. package/src/TxChunk.ts +182 -146
  1427. package/src/TxDeferred.ts +43 -29
  1428. package/src/TxHashMap.ts +370 -230
  1429. package/src/TxHashSet.ts +250 -152
  1430. package/src/TxPriorityQueue.ts +96 -64
  1431. package/src/TxPubSub.ts +77 -49
  1432. package/src/TxQueue.ts +279 -241
  1433. package/src/TxReentrantLock.ts +70 -47
  1434. package/src/TxRef.ts +70 -41
  1435. package/src/TxSemaphore.ts +101 -54
  1436. package/src/TxSubscriptionRef.ts +72 -48
  1437. package/src/Types.ts +34 -34
  1438. package/src/UndefinedOr.ts +48 -25
  1439. package/src/Unify.ts +71 -116
  1440. package/src/Utils.ts +4 -0
  1441. package/src/index.ts +81 -32
  1442. package/src/internal/concurrency.ts +2 -2
  1443. package/src/internal/core.ts +12 -23
  1444. package/src/internal/effect.ts +25 -29
  1445. package/src/internal/executionPlan.ts +2 -2
  1446. package/src/internal/option.ts +5 -8
  1447. package/src/internal/result.ts +5 -8
  1448. package/src/internal/schema/schema.ts +1 -1
  1449. package/src/testing/FastCheck.ts +6 -3
  1450. package/src/testing/TestClock.ts +63 -34
  1451. package/src/testing/TestConsole.ts +49 -30
  1452. package/src/testing/TestSchema.ts +8 -8
  1453. package/src/unstable/ai/AiError.ts +187 -120
  1454. package/src/unstable/ai/AnthropicStructuredOutput.ts +2 -2
  1455. package/src/unstable/ai/Chat.ts +69 -43
  1456. package/src/unstable/ai/EmbeddingModel.ts +12 -11
  1457. package/src/unstable/ai/IdGenerator.ts +28 -18
  1458. package/src/unstable/ai/LanguageModel.ts +47 -46
  1459. package/src/unstable/ai/McpSchema.ts +339 -119
  1460. package/src/unstable/ai/McpServer.ts +78 -21
  1461. package/src/unstable/ai/Model.ts +23 -18
  1462. package/src/unstable/ai/OpenAiStructuredOutput.ts +2 -2
  1463. package/src/unstable/ai/Prompt.ts +210 -184
  1464. package/src/unstable/ai/Response.ts +159 -147
  1465. package/src/unstable/ai/ResponseIdTracker.ts +43 -4
  1466. package/src/unstable/ai/Telemetry.ts +42 -32
  1467. package/src/unstable/ai/Tokenizer.ts +13 -8
  1468. package/src/unstable/ai/Tool.ts +154 -85
  1469. package/src/unstable/ai/Toolkit.ts +81 -84
  1470. package/src/unstable/ai/index.ts +42 -24
  1471. package/src/unstable/cli/Argument.ts +226 -134
  1472. package/src/unstable/cli/CliError.ts +96 -26
  1473. package/src/unstable/cli/CliOutput.ts +43 -13
  1474. package/src/unstable/cli/Command.ts +225 -125
  1475. package/src/unstable/cli/Completions.ts +7 -7
  1476. package/src/unstable/cli/Flag.ts +235 -142
  1477. package/src/unstable/cli/GlobalFlag.ts +42 -14
  1478. package/src/unstable/cli/HelpDoc.ts +35 -10
  1479. package/src/unstable/cli/Param.ts +328 -190
  1480. package/src/unstable/cli/Primitive.ts +79 -42
  1481. package/src/unstable/cli/Prompt.ts +210 -58
  1482. package/src/unstable/cli/internal/ansi.ts +13 -0
  1483. package/src/unstable/cli/internal/command.ts +17 -15
  1484. package/src/unstable/cli/internal/config.ts +3 -0
  1485. package/src/unstable/cli/internal/lexer.ts +11 -0
  1486. package/src/unstable/cluster/ClusterCron.ts +35 -1
  1487. package/src/unstable/cluster/ClusterError.ts +56 -7
  1488. package/src/unstable/cluster/ClusterMetrics.ts +39 -5
  1489. package/src/unstable/cluster/ClusterSchema.ts +61 -8
  1490. package/src/unstable/cluster/ClusterWorkflowEngine.ts +36 -3
  1491. package/src/unstable/cluster/DeliverAt.ts +39 -4
  1492. package/src/unstable/cluster/Entity.ts +110 -19
  1493. package/src/unstable/cluster/EntityAddress.ts +30 -2
  1494. package/src/unstable/cluster/EntityId.ts +18 -3
  1495. package/src/unstable/cluster/EntityProxy.ts +34 -2
  1496. package/src/unstable/cluster/EntityProxyServer.ts +44 -8
  1497. package/src/unstable/cluster/EntityResource.ts +43 -6
  1498. package/src/unstable/cluster/EntityType.ts +27 -3
  1499. package/src/unstable/cluster/Envelope.ts +128 -23
  1500. package/src/unstable/cluster/HttpRunner.ts +88 -13
  1501. package/src/unstable/cluster/K8sHttpClient.ts +49 -6
  1502. package/src/unstable/cluster/MachineId.ts +24 -3
  1503. package/src/unstable/cluster/Message.ts +102 -13
  1504. package/src/unstable/cluster/MessageStorage.ts +128 -22
  1505. package/src/unstable/cluster/Reply.ts +101 -12
  1506. package/src/unstable/cluster/Runner.ts +47 -17
  1507. package/src/unstable/cluster/RunnerAddress.ts +34 -2
  1508. package/src/unstable/cluster/RunnerHealth.ts +40 -12
  1509. package/src/unstable/cluster/RunnerServer.ts +31 -4
  1510. package/src/unstable/cluster/RunnerStorage.ts +42 -5
  1511. package/src/unstable/cluster/Runners.ts +73 -10
  1512. package/src/unstable/cluster/ShardId.ts +51 -5
  1513. package/src/unstable/cluster/Sharding.ts +35 -4
  1514. package/src/unstable/cluster/ShardingConfig.ts +76 -11
  1515. package/src/unstable/cluster/ShardingRegistrationEvent.ts +31 -7
  1516. package/src/unstable/cluster/SingleRunner.ts +23 -1
  1517. package/src/unstable/cluster/Singleton.ts +15 -1
  1518. package/src/unstable/cluster/SingletonAddress.ts +21 -1
  1519. package/src/unstable/cluster/Snowflake.ts +89 -19
  1520. package/src/unstable/cluster/SocketRunner.ts +29 -2
  1521. package/src/unstable/cluster/SqlMessageStorage.ts +27 -3
  1522. package/src/unstable/cluster/SqlRunnerStorage.ts +46 -7
  1523. package/src/unstable/cluster/TestRunner.ts +18 -1
  1524. package/src/unstable/cluster/internal/hash.ts +12 -0
  1525. package/src/unstable/devtools/DevTools.ts +26 -3
  1526. package/src/unstable/devtools/DevToolsClient.ts +32 -5
  1527. package/src/unstable/devtools/DevToolsSchema.ts +201 -44
  1528. package/src/unstable/devtools/DevToolsServer.ts +27 -2
  1529. package/src/unstable/encoding/Msgpack.ts +97 -12
  1530. package/src/unstable/encoding/Ndjson.ts +149 -21
  1531. package/src/unstable/encoding/Sse.ts +109 -18
  1532. package/src/unstable/eventlog/Event.ts +131 -30
  1533. package/src/unstable/eventlog/EventGroup.ts +50 -17
  1534. package/src/unstable/eventlog/EventJournal.ts +120 -20
  1535. package/src/unstable/eventlog/EventLog.ts +151 -31
  1536. package/src/unstable/eventlog/EventLogEncryption.ts +42 -6
  1537. package/src/unstable/eventlog/EventLogMessage.ts +92 -18
  1538. package/src/unstable/eventlog/EventLogRemote.ts +54 -8
  1539. package/src/unstable/eventlog/EventLogServer.ts +33 -3
  1540. package/src/unstable/eventlog/EventLogServerEncrypted.ts +52 -6
  1541. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +90 -16
  1542. package/src/unstable/eventlog/EventLogSessionAuth.ts +77 -15
  1543. package/src/unstable/eventlog/SqlEventJournal.ts +28 -2
  1544. package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +32 -3
  1545. package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +28 -2
  1546. package/src/unstable/http/Cookies.ts +156 -77
  1547. package/src/unstable/http/Etag.ts +40 -7
  1548. package/src/unstable/http/FetchHttpClient.ts +33 -4
  1549. package/src/unstable/http/FindMyWay.ts +1 -1
  1550. package/src/unstable/http/Headers.ts +252 -50
  1551. package/src/unstable/http/HttpBody.ts +130 -28
  1552. package/src/unstable/http/HttpClient.ts +206 -97
  1553. package/src/unstable/http/HttpClientError.ts +80 -12
  1554. package/src/unstable/http/HttpClientRequest.ts +320 -102
  1555. package/src/unstable/http/HttpClientResponse.ts +59 -16
  1556. package/src/unstable/http/HttpEffect.ts +66 -18
  1557. package/src/unstable/http/HttpIncomingMessage.ts +47 -7
  1558. package/src/unstable/http/HttpMethod.ts +35 -5
  1559. package/src/unstable/http/HttpMiddleware.ts +63 -16
  1560. package/src/unstable/http/HttpPlatform.ts +35 -4
  1561. package/src/unstable/http/HttpRouter.ts +221 -57
  1562. package/src/unstable/http/HttpServer.ts +152 -23
  1563. package/src/unstable/http/HttpServerError.ts +90 -10
  1564. package/src/unstable/http/HttpServerRequest.ts +136 -32
  1565. package/src/unstable/http/HttpServerRespondable.ts +49 -6
  1566. package/src/unstable/http/HttpServerResponse.ts +395 -72
  1567. package/src/unstable/http/HttpStaticServer.ts +22 -4
  1568. package/src/unstable/http/HttpTraceContext.ts +53 -6
  1569. package/src/unstable/http/Multipart.ts +179 -29
  1570. package/src/unstable/http/Multipasta/HeadersParser.ts +1 -1
  1571. package/src/unstable/http/Multipasta/Node.ts +1 -1
  1572. package/src/unstable/http/Multipasta/Search.ts +1 -1
  1573. package/src/unstable/http/Multipasta/Web.ts +1 -1
  1574. package/src/unstable/http/Multipasta.ts +1 -1
  1575. package/src/unstable/http/Template.ts +53 -0
  1576. package/src/unstable/http/Url.ts +56 -42
  1577. package/src/unstable/http/UrlParams.ts +233 -49
  1578. package/src/unstable/httpapi/HttpApi.ts +49 -14
  1579. package/src/unstable/httpapi/HttpApiBuilder.ts +86 -20
  1580. package/src/unstable/httpapi/HttpApiClient.ts +80 -16
  1581. package/src/unstable/httpapi/HttpApiEndpoint.ts +238 -59
  1582. package/src/unstable/httpapi/HttpApiError.ts +100 -1
  1583. package/src/unstable/httpapi/HttpApiGroup.ts +87 -20
  1584. package/src/unstable/httpapi/HttpApiMiddleware.ts +113 -23
  1585. package/src/unstable/httpapi/HttpApiScalar.ts +38 -4
  1586. package/src/unstable/httpapi/HttpApiSchema.ts +67 -30
  1587. package/src/unstable/httpapi/HttpApiSecurity.ts +74 -17
  1588. package/src/unstable/httpapi/HttpApiSwagger.ts +24 -2
  1589. package/src/unstable/httpapi/HttpApiTest.ts +31 -3
  1590. package/src/unstable/httpapi/OpenApi.ts +115 -15
  1591. package/src/unstable/observability/Otlp.ts +33 -3
  1592. package/src/unstable/observability/OtlpExporter.ts +32 -1
  1593. package/src/unstable/observability/OtlpLogger.ts +31 -2
  1594. package/src/unstable/observability/OtlpMetrics.ts +37 -4
  1595. package/src/unstable/observability/OtlpResource.ts +68 -12
  1596. package/src/unstable/observability/OtlpSerialization.ts +28 -3
  1597. package/src/unstable/observability/OtlpTracer.ts +38 -2
  1598. package/src/unstable/observability/PrometheusMetrics.ts +32 -12
  1599. package/src/unstable/observability/index.ts +2 -1
  1600. package/src/unstable/persistence/KeyValueStore.ts +108 -28
  1601. package/src/unstable/persistence/Persistable.ts +76 -15
  1602. package/src/unstable/persistence/PersistedCache.ts +27 -2
  1603. package/src/unstable/persistence/PersistedQueue.ts +98 -16
  1604. package/src/unstable/persistence/Persistence.ts +97 -16
  1605. package/src/unstable/persistence/RateLimiter.ts +98 -22
  1606. package/src/unstable/persistence/Redis.ts +42 -5
  1607. package/src/unstable/process/ChildProcess.ts +100 -79
  1608. package/src/unstable/process/ChildProcessSpawner.ts +22 -11
  1609. package/src/unstable/process/index.ts +2 -1
  1610. package/src/unstable/reactivity/AsyncResult.ts +202 -61
  1611. package/src/unstable/reactivity/Atom.ts +597 -143
  1612. package/src/unstable/reactivity/AtomHttpApi.ts +41 -2
  1613. package/src/unstable/reactivity/AtomRef.ts +51 -7
  1614. package/src/unstable/reactivity/AtomRegistry.ts +141 -22
  1615. package/src/unstable/reactivity/AtomRpc.ts +36 -2
  1616. package/src/unstable/reactivity/Hydration.ts +45 -5
  1617. package/src/unstable/reactivity/Reactivity.ts +95 -13
  1618. package/src/unstable/rpc/Rpc.ts +255 -56
  1619. package/src/unstable/rpc/RpcClient.ts +108 -20
  1620. package/src/unstable/rpc/RpcClientError.ts +26 -2
  1621. package/src/unstable/rpc/RpcGroup.ts +51 -8
  1622. package/src/unstable/rpc/RpcMessage.ts +128 -32
  1623. package/src/unstable/rpc/RpcMiddleware.ts +100 -20
  1624. package/src/unstable/rpc/RpcSchema.ts +38 -4
  1625. package/src/unstable/rpc/RpcSerialization.ts +60 -13
  1626. package/src/unstable/rpc/RpcServer.ts +108 -25
  1627. package/src/unstable/rpc/RpcTest.ts +20 -1
  1628. package/src/unstable/rpc/RpcWorker.ts +42 -8
  1629. package/src/unstable/rpc/Utils.ts +31 -0
  1630. package/src/unstable/schema/Model.ts +148 -52
  1631. package/src/unstable/schema/VariantSchema.ts +104 -24
  1632. package/src/unstable/socket/Socket.ts +168 -35
  1633. package/src/unstable/socket/SocketServer.ts +58 -10
  1634. package/src/unstable/sql/Migrator.ts +57 -5
  1635. package/src/unstable/sql/SqlClient.ts +55 -2
  1636. package/src/unstable/sql/SqlConnection.ts +31 -0
  1637. package/src/unstable/sql/SqlError.ts +117 -0
  1638. package/src/unstable/sql/SqlModel.ts +26 -5
  1639. package/src/unstable/sql/SqlResolver.ts +56 -13
  1640. package/src/unstable/sql/SqlSchema.ts +29 -8
  1641. package/src/unstable/sql/SqlStream.ts +23 -0
  1642. package/src/unstable/sql/Statement.ts +141 -0
  1643. package/src/unstable/sql/index.ts +1 -1
  1644. package/src/unstable/workers/Transferable.ts +65 -13
  1645. package/src/unstable/workers/Worker.ts +60 -8
  1646. package/src/unstable/workers/WorkerError.ts +50 -9
  1647. package/src/unstable/workers/WorkerRunner.ts +32 -3
  1648. package/src/unstable/workers/index.ts +1 -1
  1649. package/src/unstable/workflow/Activity.ts +62 -11
  1650. package/src/unstable/workflow/DurableClock.ts +26 -3
  1651. package/src/unstable/workflow/DurableDeferred.ts +146 -31
  1652. package/src/unstable/workflow/DurableQueue.ts +366 -0
  1653. package/src/unstable/workflow/Workflow.ts +122 -32
  1654. package/src/unstable/workflow/WorkflowEngine.ts +40 -5
  1655. package/src/unstable/workflow/WorkflowProxy.ts +32 -2
  1656. package/src/unstable/workflow/WorkflowProxyServer.ts +40 -6
  1657. package/src/unstable/workflow/index.ts +5 -0
package/dist/HashMap.d.ts CHANGED
@@ -1,4 +1,77 @@
1
1
  /**
2
+ * The `HashMap` module provides an immutable key-value data structure with
3
+ * efficient lookup, insertion, removal, and transformation operations. A
4
+ * `HashMap<Key, Value>` stores entries by hashing keys and resolving matches
5
+ * with Effect's structural equality semantics.
6
+ *
7
+ * **Mental model**
8
+ *
9
+ * - A `HashMap<Key, Value>` is an immutable collection of key-value pairs
10
+ * - Operations such as {@link set}, {@link remove}, and {@link modifyAt} return
11
+ * new maps; existing maps are not mutated
12
+ * - Keys are compared using the `Equal` protocol and are grouped by hashes from
13
+ * the `Hash` protocol
14
+ * - Plain JavaScript primitives work as keys, and custom objects can define
15
+ * `Equal` / `Hash` behavior for structural lookup
16
+ * - Lookups with {@link get} return an `Option`, making missing keys explicit
17
+ * - Iteration order is based on the map's internal hash structure and should
18
+ * not be treated as insertion order
19
+ *
20
+ * **Common tasks**
21
+ *
22
+ * - Create maps: {@link empty}, {@link make}, {@link fromIterable}
23
+ * - Read values: {@link get}, {@link getUnsafe}, {@link has}, {@link hasBy}
24
+ * - Add or update entries: {@link set}, {@link modify}, {@link modifyAt}, {@link setMany}
25
+ * - Remove entries: {@link remove}, {@link removeMany}
26
+ * - Combine maps: {@link union}
27
+ * - Iterate or convert: {@link keys}, {@link values}, {@link entries}, {@link toValues}, {@link toEntries}
28
+ * - Transform values: {@link map}, {@link flatMap}, {@link filter}, {@link filterMap}, {@link compact}
29
+ * - Fold and search: {@link reduce}, {@link findFirst}, {@link some}, {@link every}
30
+ * - Batch updates efficiently: {@link mutate}, {@link beginMutation}, {@link endMutation}
31
+ *
32
+ * **Gotchas**
33
+ *
34
+ * - {@link getUnsafe} throws when the key is absent; prefer {@link get} unless
35
+ * absence is impossible by construction
36
+ * - Mutating a key object after insertion can make future lookups fail if its
37
+ * equality or hash changes
38
+ * - Hash collisions are handled by equality checks, so matching hashes alone do
39
+ * not make two keys equal
40
+ * - Use {@link getHash} and {@link hasHash} only when you already have the
41
+ * correct hash for the same key
42
+ * - Convert entries to an array and sort them when deterministic presentation is
43
+ * required
44
+ *
45
+ * **Quickstart**
46
+ *
47
+ * **Example** (Working with immutable maps)
48
+ *
49
+ * ```ts
50
+ * import { HashMap, Option } from "effect"
51
+ *
52
+ * const scores = HashMap.make(["alice", 10], ["bob", 15])
53
+ *
54
+ * const updated = scores.pipe(
55
+ * HashMap.set("carol", 20),
56
+ * HashMap.modify("alice", (score) => score + 1)
57
+ * )
58
+ *
59
+ * console.log(HashMap.get(updated, "alice"))
60
+ * // Output: Option.some(11)
61
+ *
62
+ * console.log(HashMap.get(scores, "carol"))
63
+ * // Output: Option.none()
64
+ *
65
+ * console.log(Option.getOrElse(HashMap.get(updated, "dave"), () => 0))
66
+ * // Output: 0
67
+ * ```
68
+ *
69
+ * **See also**
70
+ *
71
+ * - {@link HashSet} for immutable sets backed by hash semantics
72
+ * - {@link Equal} for structural equality
73
+ * - {@link Hash} for hash implementations used by hashed collections
74
+ *
2
75
  * @since 2.0.0
3
76
  */
4
77
  import type { Equal } from "./Equal.ts";
@@ -13,7 +86,8 @@ declare const TypeId = "~effect/collections/HashMap";
13
86
  * insertion, and deletion operations. It uses a Hash Array Mapped Trie (HAMT) internally
14
87
  * for structural sharing and optimal performance.
15
88
  *
16
- * @example
89
+ * **Example** (Using basic HashMap operations)
90
+ *
17
91
  * ```ts
18
92
  * import * as HashMap from "effect/HashMap"
19
93
  *
@@ -32,8 +106,8 @@ declare const TypeId = "~effect/collections/HashMap";
32
106
  * console.log(HashMap.size(updated)) // 4
33
107
  * ```
34
108
  *
35
- * @since 2.0.0
36
109
  * @category models
110
+ * @since 2.0.0
37
111
  */
38
112
  export interface HashMap<out Key, out Value> extends Iterable<[Key, Value]>, Equal, Pipeable, Inspectable {
39
113
  readonly [TypeId]: typeof TypeId;
@@ -42,7 +116,8 @@ export interface HashMap<out Key, out Value> extends Iterable<[Key, Value]>, Equ
42
116
  * The HashMap namespace contains type-level utilities and helper types
43
117
  * for working with HashMap instances.
44
118
  *
45
- * @example
119
+ * **Example** (Extracting HashMap types)
120
+ *
46
121
  * ```ts
47
122
  * import * as HashMap from "effect/HashMap"
48
123
  *
@@ -69,8 +144,8 @@ export interface HashMap<out Key, out Value> extends Iterable<[Key, Value]>, Equ
69
144
  * const updatedInventory = updateInventory("tablet", newProduct)
70
145
  * ```
71
146
  *
72
- * @since 2.0.0
73
147
  * @category models
148
+ * @since 2.0.0
74
149
  */
75
150
  export declare namespace HashMap {
76
151
  /**
@@ -78,7 +153,8 @@ export declare namespace HashMap {
78
153
  * Takes an Option representing the current value and returns an Option
79
154
  * representing the new value.
80
155
  *
81
- * @example
156
+ * **Example** (Updating values from Options)
157
+ *
82
158
  * ```ts
83
159
  * import * as HashMap from "effect/HashMap"
84
160
  * import * as Option from "effect/Option"
@@ -93,14 +169,15 @@ export declare namespace HashMap {
93
169
  * console.log(HashMap.get(updated, "a")) // Option.some(2)
94
170
  * ```
95
171
  *
96
- * @since 2.0.0
97
172
  * @category models
173
+ * @since 2.0.0
98
174
  */
99
175
  type UpdateFn<V> = (option: Option<V>) => Option<V>;
100
176
  /**
101
177
  * This type-level utility extracts the key type `K` from a `HashMap<K, V>` type.
102
178
  *
103
- * @example
179
+ * **Example** (Extracting key types)
180
+ *
104
181
  * ```ts
105
182
  * import * as HashMap from "effect/HashMap"
106
183
  *
@@ -117,14 +194,15 @@ export declare namespace HashMap {
117
194
  * const getUserById = (id: UserKey) => HashMap.get(userMap, id)
118
195
  * console.log(getUserById("alice")) // Option.some({ name: "Alice", age: 30 })
119
196
  * ```
120
- * @since 2.0.0
121
197
  * @category type-level
198
+ * @since 2.0.0
122
199
  */
123
200
  type Key<T extends HashMap<any, any>> = [T] extends [HashMap<infer _K, infer _V>] ? _K : never;
124
201
  /**
125
202
  * This type-level utility extracts the value type `V` from a `HashMap<K, V>` type.
126
203
  *
127
- * @example
204
+ * **Example** (Extracting value types)
205
+ *
128
206
  * ```ts
129
207
  * import * as HashMap from "effect/HashMap"
130
208
  *
@@ -145,14 +223,15 @@ export declare namespace HashMap {
145
223
  * const alice = HashMap.get(userMap, "alice")
146
224
  * // alice has type Option<User> thanks to type extraction
147
225
  * ```
148
- * @since 2.0.0
149
226
  * @category type-level
227
+ * @since 2.0.0
150
228
  */
151
229
  type Value<T extends HashMap<any, any>> = [T] extends [HashMap<infer _K, infer _V>] ? _V : never;
152
230
  /**
153
231
  * This type-level utility extracts the entry type `[K, V]` from a `HashMap<K, V>` type.
154
232
  *
155
- * @example
233
+ * **Example** (Extracting entry types)
234
+ *
156
235
  * ```ts
157
236
  * import * as HashMap from "effect/HashMap"
158
237
  *
@@ -170,19 +249,20 @@ export declare namespace HashMap {
170
249
  * return `${productId}: $${product.price} (${product.category})`
171
250
  * }
172
251
  *
173
- * // Convert to entries and process
174
- * const descriptions = HashMap.toEntries(catalog).map(processEntry)
175
- * console.log(descriptions) // ["laptop: $999 (electronics)", "book: $29 (education)"]
252
+ * // Convert to entries, process, and sort for deterministic output
253
+ * const descriptions = HashMap.toEntries(catalog).map(processEntry).sort()
254
+ * console.log(descriptions) // ["book: $29 (education)", "laptop: $999 (electronics)"]
176
255
  * ```
177
- * @since 3.9.0
178
256
  * @category type-level
257
+ * @since 3.9.0
179
258
  */
180
259
  type Entry<T extends HashMap<any, any>> = [Key<T>, Value<T>];
181
260
  }
182
261
  /**
183
262
  * Checks if a value is a HashMap.
184
263
  *
185
- * @example
264
+ * **Example** (Checking HashMap values)
265
+ *
186
266
  * ```ts
187
267
  * import * as HashMap from "effect/HashMap"
188
268
  *
@@ -194,14 +274,15 @@ export declare namespace HashMap {
194
274
  * console.log(HashMap.isHashMap(null)) // false
195
275
  * ```
196
276
  *
197
- * @since 2.0.0
198
277
  * @category refinements
278
+ * @since 2.0.0
199
279
  */
200
280
  export declare const isHashMap: {
201
281
  /**
202
282
  * Checks if a value is a HashMap.
203
283
  *
204
- * @example
284
+ * **Example** (Checking HashMap values)
285
+ *
205
286
  * ```ts
206
287
  * import * as HashMap from "effect/HashMap"
207
288
  *
@@ -213,14 +294,15 @@ export declare const isHashMap: {
213
294
  * console.log(HashMap.isHashMap(null)) // false
214
295
  * ```
215
296
  *
216
- * @since 2.0.0
217
297
  * @category refinements
298
+ * @since 2.0.0
218
299
  */
219
300
  <K, V>(u: Iterable<readonly [K, V]>): u is HashMap<K, V>;
220
301
  /**
221
302
  * Checks if a value is a HashMap.
222
303
  *
223
- * @example
304
+ * **Example** (Checking HashMap values)
305
+ *
224
306
  * ```ts
225
307
  * import * as HashMap from "effect/HashMap"
226
308
  *
@@ -232,15 +314,16 @@ export declare const isHashMap: {
232
314
  * console.log(HashMap.isHashMap(null)) // false
233
315
  * ```
234
316
  *
235
- * @since 2.0.0
236
317
  * @category refinements
318
+ * @since 2.0.0
237
319
  */
238
320
  (u: unknown): u is HashMap<unknown, unknown>;
239
321
  };
240
322
  /**
241
323
  * Creates a new empty `HashMap`.
242
324
  *
243
- * @example
325
+ * **Example** (Creating an empty HashMap)
326
+ *
244
327
  * ```ts
245
328
  * import * as HashMap from "effect/HashMap"
246
329
  *
@@ -249,14 +332,15 @@ export declare const isHashMap: {
249
332
  * console.log(HashMap.size(map)) // 0
250
333
  * ```
251
334
  *
252
- * @since 2.0.0
253
335
  * @category constructors
336
+ * @since 2.0.0
254
337
  */
255
338
  export declare const empty: <K = never, V = never>() => HashMap<K, V>;
256
339
  /**
257
340
  * Constructs a new `HashMap` from an array of key/value pairs.
258
341
  *
259
- * @example
342
+ * **Example** (Creating a HashMap from entries)
343
+ *
260
344
  * ```ts
261
345
  * import * as HashMap from "effect/HashMap"
262
346
  *
@@ -265,14 +349,15 @@ export declare const empty: <K = never, V = never>() => HashMap<K, V>;
265
349
  * console.log(HashMap.get(map, "b")) // Option.some(2)
266
350
  * ```
267
351
  *
268
- * @since 2.0.0
269
352
  * @category constructors
353
+ * @since 2.0.0
270
354
  */
271
355
  export declare const make: <Entries extends ReadonlyArray<readonly [any, any]>>(...entries: Entries) => HashMap<Entries[number] extends readonly [infer K, any] ? K : never, Entries[number] extends readonly [any, infer V] ? V : never>;
272
356
  /**
273
357
  * Creates a new `HashMap` from an iterable collection of key/value pairs.
274
358
  *
275
- * @example
359
+ * **Example** (Creating a HashMap from an iterable)
360
+ *
276
361
  * ```ts
277
362
  * import * as HashMap from "effect/HashMap"
278
363
  *
@@ -282,14 +367,15 @@ export declare const make: <Entries extends ReadonlyArray<readonly [any, any]>>(
282
367
  * console.log(HashMap.get(map, "a")) // Option.some(1)
283
368
  * ```
284
369
  *
285
- * @since 2.0.0
286
370
  * @category constructors
371
+ * @since 2.0.0
287
372
  */
288
373
  export declare const fromIterable: <K, V>(entries: Iterable<readonly [K, V]>) => HashMap<K, V>;
289
374
  /**
290
- * Checks if the `HashMap` contains any entries.
375
+ * Checks whether the `HashMap` contains no entries.
376
+ *
377
+ * **Example** (Checking for empty HashMaps)
291
378
  *
292
- * @example
293
379
  * ```ts
294
380
  * import * as HashMap from "effect/HashMap"
295
381
  *
@@ -300,15 +386,16 @@ export declare const fromIterable: <K, V>(entries: Iterable<readonly [K, V]>) =>
300
386
  * console.log(HashMap.isEmpty(nonEmptyMap)) // false
301
387
  * ```
302
388
  *
303
- * @since 2.0.0
304
389
  * @category elements
390
+ * @since 2.0.0
305
391
  */
306
392
  export declare const isEmpty: <K, V>(self: HashMap<K, V>) => boolean;
307
393
  /**
308
394
  * Safely lookup the value for the specified key in the `HashMap` using the
309
395
  * internal hashing function.
310
396
  *
311
- * @example
397
+ * **Example** (Looking up values)
398
+ *
312
399
  * ```ts
313
400
  * import * as HashMap from "effect/HashMap"
314
401
  *
@@ -322,15 +409,16 @@ export declare const isEmpty: <K, V>(self: HashMap<K, V>) => boolean;
322
409
  * console.log(value) // Option.some(2)
323
410
  * ```
324
411
  *
325
- * @since 2.0.0
326
412
  * @category elements
413
+ * @since 2.0.0
327
414
  */
328
415
  export declare const get: {
329
416
  /**
330
417
  * Safely lookup the value for the specified key in the `HashMap` using the
331
418
  * internal hashing function.
332
419
  *
333
- * @example
420
+ * **Example** (Looking up values)
421
+ *
334
422
  * ```ts
335
423
  * import * as HashMap from "effect/HashMap"
336
424
  *
@@ -344,15 +432,16 @@ export declare const get: {
344
432
  * console.log(value) // Option.some(2)
345
433
  * ```
346
434
  *
347
- * @since 2.0.0
348
435
  * @category elements
436
+ * @since 2.0.0
349
437
  */
350
438
  <K1 extends K, K>(key: K1): <V>(self: HashMap<K, V>) => Option<V>;
351
439
  /**
352
440
  * Safely lookup the value for the specified key in the `HashMap` using the
353
441
  * internal hashing function.
354
442
  *
355
- * @example
443
+ * **Example** (Looking up values)
444
+ *
356
445
  * ```ts
357
446
  * import * as HashMap from "effect/HashMap"
358
447
  *
@@ -366,15 +455,16 @@ export declare const get: {
366
455
  * console.log(value) // Option.some(2)
367
456
  * ```
368
457
  *
369
- * @since 2.0.0
370
458
  * @category elements
459
+ * @since 2.0.0
371
460
  */
372
461
  <K1 extends K, K, V>(self: HashMap<K, V>, key: K1): Option<V>;
373
462
  };
374
463
  /**
375
464
  * Lookup the value for the specified key in the `HashMap` using a custom hash.
376
465
  *
377
- * @example
466
+ * **Example** (Looking up values with a hash)
467
+ *
378
468
  * ```ts
379
469
  * import { Hash } from "effect"
380
470
  * import * as HashMap from "effect/HashMap"
@@ -398,14 +488,15 @@ export declare const get: {
398
488
  * console.log(notFound) // Option.none()
399
489
  * ```
400
490
  *
401
- * @since 2.0.0
402
491
  * @category elements
492
+ * @since 2.0.0
403
493
  */
404
494
  export declare const getHash: {
405
495
  /**
406
496
  * Lookup the value for the specified key in the `HashMap` using a custom hash.
407
497
  *
408
- * @example
498
+ * **Example** (Looking up values with a hash)
499
+ *
409
500
  * ```ts
410
501
  * import { Hash } from "effect"
411
502
  * import * as HashMap from "effect/HashMap"
@@ -429,14 +520,15 @@ export declare const getHash: {
429
520
  * console.log(notFound) // Option.none()
430
521
  * ```
431
522
  *
432
- * @since 2.0.0
433
523
  * @category elements
524
+ * @since 2.0.0
434
525
  */
435
526
  <K1 extends K, K>(key: K1, hash: number): <V>(self: HashMap<K, V>) => Option<V>;
436
527
  /**
437
528
  * Lookup the value for the specified key in the `HashMap` using a custom hash.
438
529
  *
439
- * @example
530
+ * **Example** (Looking up values with a hash)
531
+ *
440
532
  * ```ts
441
533
  * import { Hash } from "effect"
442
534
  * import * as HashMap from "effect/HashMap"
@@ -460,8 +552,8 @@ export declare const getHash: {
460
552
  * console.log(notFound) // Option.none()
461
553
  * ```
462
554
  *
463
- * @since 2.0.0
464
555
  * @category elements
556
+ * @since 2.0.0
465
557
  */
466
558
  <K1 extends K, K, V>(self: HashMap<K, V>, key: K1, hash: number): Option<V>;
467
559
  };
@@ -472,7 +564,8 @@ export declare const getHash: {
472
564
  * ⚠️ **Warning**: This function throws an error if the key is not found.
473
565
  * Use `HashMap.get` for safe access that returns `Option`.
474
566
  *
475
- * @example
567
+ * **Example** (Unsafely looking up values)
568
+ *
476
569
  * ```ts
477
570
  * import * as HashMap from "effect/HashMap"
478
571
  * import * as Option from "effect/Option"
@@ -497,8 +590,8 @@ export declare const getHash: {
497
590
  * // Error: "HashMap.getUnsafe: key not found"
498
591
  * ```
499
592
  *
500
- * @since 2.0.0
501
593
  * @category unsafe
594
+ * @since 2.0.0
502
595
  */
503
596
  export declare const getUnsafe: {
504
597
  /**
@@ -508,7 +601,8 @@ export declare const getUnsafe: {
508
601
  * ⚠️ **Warning**: This function throws an error if the key is not found.
509
602
  * Use `HashMap.get` for safe access that returns `Option`.
510
603
  *
511
- * @example
604
+ * **Example** (Unsafely looking up values)
605
+ *
512
606
  * ```ts
513
607
  * import * as HashMap from "effect/HashMap"
514
608
  * import * as Option from "effect/Option"
@@ -533,8 +627,8 @@ export declare const getUnsafe: {
533
627
  * // Error: "HashMap.getUnsafe: key not found"
534
628
  * ```
535
629
  *
536
- * @since 2.0.0
537
630
  * @category unsafe
631
+ * @since 2.0.0
538
632
  */
539
633
  <K1 extends K, K>(key: K1): <V>(self: HashMap<K, V>) => V;
540
634
  /**
@@ -544,7 +638,8 @@ export declare const getUnsafe: {
544
638
  * ⚠️ **Warning**: This function throws an error if the key is not found.
545
639
  * Use `HashMap.get` for safe access that returns `Option`.
546
640
  *
547
- * @example
641
+ * **Example** (Unsafely looking up values)
642
+ *
548
643
  * ```ts
549
644
  * import * as HashMap from "effect/HashMap"
550
645
  * import * as Option from "effect/Option"
@@ -569,15 +664,16 @@ export declare const getUnsafe: {
569
664
  * // Error: "HashMap.getUnsafe: key not found"
570
665
  * ```
571
666
  *
572
- * @since 2.0.0
573
667
  * @category unsafe
668
+ * @since 2.0.0
574
669
  */
575
670
  <K1 extends K, K, V>(self: HashMap<K, V>, key: K1): V;
576
671
  };
577
672
  /**
578
673
  * Checks if the specified key has an entry in the `HashMap`.
579
674
  *
580
- * @example
675
+ * **Example** (Checking for keys)
676
+ *
581
677
  * ```ts
582
678
  * import * as HashMap from "effect/HashMap"
583
679
  *
@@ -591,14 +687,15 @@ export declare const getUnsafe: {
591
687
  * console.log(hasB) // true
592
688
  * ```
593
689
  *
594
- * @since 2.0.0
595
690
  * @category elements
691
+ * @since 2.0.0
596
692
  */
597
693
  export declare const has: {
598
694
  /**
599
695
  * Checks if the specified key has an entry in the `HashMap`.
600
696
  *
601
- * @example
697
+ * **Example** (Checking for keys)
698
+ *
602
699
  * ```ts
603
700
  * import * as HashMap from "effect/HashMap"
604
701
  *
@@ -612,14 +709,15 @@ export declare const has: {
612
709
  * console.log(hasB) // true
613
710
  * ```
614
711
  *
615
- * @since 2.0.0
616
712
  * @category elements
713
+ * @since 2.0.0
617
714
  */
618
715
  <K1 extends K, K>(key: K1): <K, V>(self: HashMap<K, V>) => boolean;
619
716
  /**
620
717
  * Checks if the specified key has an entry in the `HashMap`.
621
718
  *
622
- * @example
719
+ * **Example** (Checking for keys)
720
+ *
623
721
  * ```ts
624
722
  * import * as HashMap from "effect/HashMap"
625
723
  *
@@ -633,8 +731,8 @@ export declare const has: {
633
731
  * console.log(hasB) // true
634
732
  * ```
635
733
  *
636
- * @since 2.0.0
637
734
  * @category elements
735
+ * @since 2.0.0
638
736
  */
639
737
  <K1 extends K, K, V>(self: HashMap<K, V>, key: K1): boolean;
640
738
  };
@@ -642,7 +740,8 @@ export declare const has: {
642
740
  * Checks if the specified key has an entry in the `HashMap` using a custom
643
741
  * hash.
644
742
  *
645
- * @example
743
+ * **Example** (Checking keys with a hash)
744
+ *
646
745
  * ```ts
647
746
  * import { Hash } from "effect"
648
747
  * import * as HashMap from "effect/HashMap"
@@ -657,20 +756,24 @@ export declare const has: {
657
756
  * const exactHash = Hash.string("Admin")
658
757
  * console.log(HashMap.hasHash(userMap, "Admin", exactHash)) // true
659
758
  *
660
- * // Check case-insensitive by using custom hash
661
- * const caseInsensitiveHash = Hash.string("admin".toLowerCase())
662
- * console.log(HashMap.hasHash(userMap, "admin", caseInsensitiveHash)) // false (different hash)
759
+ * // A matching hash does not override key equality
760
+ * console.log(HashMap.hasHash(userMap, "admin", exactHash)) // false
761
+ *
762
+ * // A different hash also cannot find the existing key
763
+ * const lowercaseHash = Hash.string("admin")
764
+ * console.log(HashMap.hasHash(userMap, "Admin", lowercaseHash)) // false
663
765
  * ```
664
766
  *
665
- * @since 2.0.0
666
767
  * @category elements
768
+ * @since 2.0.0
667
769
  */
668
770
  export declare const hasHash: {
669
771
  /**
670
772
  * Checks if the specified key has an entry in the `HashMap` using a custom
671
773
  * hash.
672
774
  *
673
- * @example
775
+ * **Example** (Checking keys with a hash)
776
+ *
674
777
  * ```ts
675
778
  * import { Hash } from "effect"
676
779
  * import * as HashMap from "effect/HashMap"
@@ -685,20 +788,24 @@ export declare const hasHash: {
685
788
  * const exactHash = Hash.string("Admin")
686
789
  * console.log(HashMap.hasHash(userMap, "Admin", exactHash)) // true
687
790
  *
688
- * // Check case-insensitive by using custom hash
689
- * const caseInsensitiveHash = Hash.string("admin".toLowerCase())
690
- * console.log(HashMap.hasHash(userMap, "admin", caseInsensitiveHash)) // false (different hash)
791
+ * // A matching hash does not override key equality
792
+ * console.log(HashMap.hasHash(userMap, "admin", exactHash)) // false
793
+ *
794
+ * // A different hash also cannot find the existing key
795
+ * const lowercaseHash = Hash.string("admin")
796
+ * console.log(HashMap.hasHash(userMap, "Admin", lowercaseHash)) // false
691
797
  * ```
692
798
  *
693
- * @since 2.0.0
694
799
  * @category elements
800
+ * @since 2.0.0
695
801
  */
696
802
  <K1 extends K, K>(key: K1, hash: number): <V>(self: HashMap<K, V>) => boolean;
697
803
  /**
698
804
  * Checks if the specified key has an entry in the `HashMap` using a custom
699
805
  * hash.
700
806
  *
701
- * @example
807
+ * **Example** (Checking keys with a hash)
808
+ *
702
809
  * ```ts
703
810
  * import { Hash } from "effect"
704
811
  * import * as HashMap from "effect/HashMap"
@@ -713,20 +820,24 @@ export declare const hasHash: {
713
820
  * const exactHash = Hash.string("Admin")
714
821
  * console.log(HashMap.hasHash(userMap, "Admin", exactHash)) // true
715
822
  *
716
- * // Check case-insensitive by using custom hash
717
- * const caseInsensitiveHash = Hash.string("admin".toLowerCase())
718
- * console.log(HashMap.hasHash(userMap, "admin", caseInsensitiveHash)) // false (different hash)
823
+ * // A matching hash does not override key equality
824
+ * console.log(HashMap.hasHash(userMap, "admin", exactHash)) // false
825
+ *
826
+ * // A different hash also cannot find the existing key
827
+ * const lowercaseHash = Hash.string("admin")
828
+ * console.log(HashMap.hasHash(userMap, "Admin", lowercaseHash)) // false
719
829
  * ```
720
830
  *
721
- * @since 2.0.0
722
831
  * @category elements
832
+ * @since 2.0.0
723
833
  */
724
834
  <K1 extends K, K, V>(self: HashMap<K, V>, key: K1, hash: number): boolean;
725
835
  };
726
836
  /**
727
837
  * Checks if an element matching the given predicate exists in the given `HashMap`.
728
838
  *
729
- * @example
839
+ * **Example** (Checking entries by predicate)
840
+ *
730
841
  * ```ts
731
842
  * import * as HashMap from "effect/HashMap"
732
843
  *
@@ -735,14 +846,15 @@ export declare const hasHash: {
735
846
  * HashMap.hasBy(hm, (value) => value === "b") // -> false
736
847
  * ```
737
848
  *
738
- * @since 3.16.0
739
849
  * @category elements
850
+ * @since 3.16.0
740
851
  */
741
852
  export declare const hasBy: {
742
853
  /**
743
854
  * Checks if an element matching the given predicate exists in the given `HashMap`.
744
855
  *
745
- * @example
856
+ * **Example** (Checking entries by predicate)
857
+ *
746
858
  * ```ts
747
859
  * import * as HashMap from "effect/HashMap"
748
860
  *
@@ -751,14 +863,15 @@ export declare const hasBy: {
751
863
  * HashMap.hasBy(hm, (value) => value === "b") // -> false
752
864
  * ```
753
865
  *
754
- * @since 3.16.0
755
866
  * @category elements
867
+ * @since 3.16.0
756
868
  */
757
869
  <K, V>(predicate: (value: NoInfer<V>, key: NoInfer<K>) => boolean): (self: HashMap<K, V>) => boolean;
758
870
  /**
759
871
  * Checks if an element matching the given predicate exists in the given `HashMap`.
760
872
  *
761
- * @example
873
+ * **Example** (Checking entries by predicate)
874
+ *
762
875
  * ```ts
763
876
  * import * as HashMap from "effect/HashMap"
764
877
  *
@@ -767,8 +880,8 @@ export declare const hasBy: {
767
880
  * HashMap.hasBy(hm, (value) => value === "b") // -> false
768
881
  * ```
769
882
  *
770
- * @since 3.16.0
771
883
  * @category elements
884
+ * @since 3.16.0
772
885
  */
773
886
  <K, V>(self: HashMap<K, V>, predicate: (value: NoInfer<V>, key: NoInfer<K>) => boolean): boolean;
774
887
  };
@@ -776,7 +889,8 @@ export declare const hasBy: {
776
889
  * Sets the specified key to the specified value using the internal hashing
777
890
  * function.
778
891
  *
779
- * @example
892
+ * **Example** (Setting a value)
893
+ *
780
894
  * ```ts
781
895
  * import * as HashMap from "effect/HashMap"
782
896
  *
@@ -790,15 +904,16 @@ export declare const hasBy: {
790
904
  * console.log(HashMap.size(map1)) // 1
791
905
  * ```
792
906
  *
793
- * @since 2.0.0
794
907
  * @category transformations
908
+ * @since 2.0.0
795
909
  */
796
910
  export declare const set: {
797
911
  /**
798
912
  * Sets the specified key to the specified value using the internal hashing
799
913
  * function.
800
914
  *
801
- * @example
915
+ * **Example** (Setting a value)
916
+ *
802
917
  * ```ts
803
918
  * import * as HashMap from "effect/HashMap"
804
919
  *
@@ -812,15 +927,16 @@ export declare const set: {
812
927
  * console.log(HashMap.size(map1)) // 1
813
928
  * ```
814
929
  *
815
- * @since 2.0.0
816
930
  * @category transformations
931
+ * @since 2.0.0
817
932
  */
818
933
  <K, V>(key: K, value: V): (self: HashMap<K, V>) => HashMap<K, V>;
819
934
  /**
820
935
  * Sets the specified key to the specified value using the internal hashing
821
936
  * function.
822
937
  *
823
- * @example
938
+ * **Example** (Setting a value)
939
+ *
824
940
  * ```ts
825
941
  * import * as HashMap from "effect/HashMap"
826
942
  *
@@ -834,15 +950,16 @@ export declare const set: {
834
950
  * console.log(HashMap.size(map1)) // 1
835
951
  * ```
836
952
  *
837
- * @since 2.0.0
838
953
  * @category transformations
954
+ * @since 2.0.0
839
955
  */
840
956
  <K, V>(self: HashMap<K, V>, key: K, value: V): HashMap<K, V>;
841
957
  };
842
958
  /**
843
959
  * Returns an `IterableIterator` of the keys within the `HashMap`.
844
960
  *
845
- * @example
961
+ * **Example** (Iterating keys)
962
+ *
846
963
  * ```ts
847
964
  * import * as HashMap from "effect/HashMap"
848
965
  *
@@ -851,14 +968,15 @@ export declare const set: {
851
968
  * console.log(keys.sort()) // ["a", "b", "c"]
852
969
  * ```
853
970
  *
854
- * @since 2.0.0
855
971
  * @category getters
972
+ * @since 2.0.0
856
973
  */
857
974
  export declare const keys: <K, V>(self: HashMap<K, V>) => IterableIterator<K>;
858
975
  /**
859
976
  * Returns an `IterableIterator` of the values within the `HashMap`.
860
977
  *
861
- * @example
978
+ * **Example** (Iterating values)
979
+ *
862
980
  * ```ts
863
981
  * import * as HashMap from "effect/HashMap"
864
982
  *
@@ -867,14 +985,15 @@ export declare const keys: <K, V>(self: HashMap<K, V>) => IterableIterator<K>;
867
985
  * console.log(values.sort()) // [1, 2, 3]
868
986
  * ```
869
987
  *
870
- * @since 2.0.0
871
988
  * @category getters
989
+ * @since 2.0.0
872
990
  */
873
991
  export declare const values: <K, V>(self: HashMap<K, V>) => IterableIterator<V>;
874
992
  /**
875
993
  * Returns an `Array` of the values within the `HashMap`.
876
994
  *
877
- * @example
995
+ * **Example** (Converting values to an array)
996
+ *
878
997
  * ```ts
879
998
  * import * as HashMap from "effect/HashMap"
880
999
  *
@@ -897,14 +1016,15 @@ export declare const values: <K, V>(self: HashMap<K, V>) => IterableIterator<V>;
897
1016
  * console.log(engineers.length) // 2
898
1017
  * ```
899
1018
  *
900
- * @since 3.13.0
901
1019
  * @category getters
1020
+ * @since 3.13.0
902
1021
  */
903
1022
  export declare const toValues: <K, V>(self: HashMap<K, V>) => Array<V>;
904
1023
  /**
905
1024
  * Returns an `IterableIterator` of the entries within the `HashMap`.
906
1025
  *
907
- * @example
1026
+ * **Example** (Iterating entries)
1027
+ *
908
1028
  * ```ts
909
1029
  * import * as HashMap from "effect/HashMap"
910
1030
  *
@@ -915,30 +1035,28 @@ export declare const toValues: <K, V>(self: HashMap<K, V>) => Array<V>;
915
1035
  * ["cache.enabled", "true"]
916
1036
  * )
917
1037
  *
918
- * // Get entries iterator for processing
919
- * const entries = HashMap.entries(config)
1038
+ * // Sort the derived array for deterministic output
1039
+ * const settings = Array.from(HashMap.entries(config))
1040
+ * .sort(([left], [right]) => left.localeCompare(right))
1041
+ * .map(([key, value]) => `Setting ${key} = ${value}`)
920
1042
  *
921
- * // Process each configuration entry
922
- * for (const [key, value] of entries) {
923
- * console.log(`Setting ${key} = ${value}`)
924
- * }
925
- * // Setting database.host = localhost
926
- * // Setting database.port = 5432
927
- * // Setting cache.enabled = true
1043
+ * console.log(settings)
1044
+ * // ["Setting cache.enabled = true", "Setting database.host = localhost", "Setting database.port = 5432"]
928
1045
  *
929
1046
  * // Convert to array when you need all entries at once
930
1047
  * const allEntries = Array.from(HashMap.entries(config))
931
1048
  * console.log(allEntries.length) // 3
932
1049
  * ```
933
1050
  *
934
- * @since 2.0.0
935
1051
  * @category getters
1052
+ * @since 2.0.0
936
1053
  */
937
1054
  export declare const entries: <K, V>(self: HashMap<K, V>) => IterableIterator<[K, V]>;
938
1055
  /**
939
1056
  * Returns an `Array<[K, V]>` of the entries within the `HashMap`.
940
1057
  *
941
- * @example
1058
+ * **Example** (Converting entries to an array)
1059
+ *
942
1060
  * ```ts
943
1061
  * import * as HashMap from "effect/HashMap"
944
1062
  *
@@ -963,14 +1081,15 @@ export declare const entries: <K, V>(self: HashMap<K, V>) => IterableIterator<[K
963
1081
  * const sortedMap = HashMap.fromIterable(scoreEntries)
964
1082
  * ```
965
1083
  *
966
- * @since 2.0.0
967
1084
  * @category getters
1085
+ * @since 2.0.0
968
1086
  */
969
1087
  export declare const toEntries: <K, V>(self: HashMap<K, V>) => Array<[K, V]>;
970
1088
  /**
971
1089
  * Returns the number of entries within the `HashMap`.
972
1090
  *
973
- * @example
1091
+ * **Example** (Getting the size)
1092
+ *
974
1093
  * ```ts
975
1094
  * import * as HashMap from "effect/HashMap"
976
1095
  *
@@ -981,14 +1100,18 @@ export declare const toEntries: <K, V>(self: HashMap<K, V>) => Array<[K, V]>;
981
1100
  * console.log(HashMap.size(map)) // 3
982
1101
  * ```
983
1102
  *
984
- * @since 2.0.0
985
1103
  * @category getters
1104
+ * @since 2.0.0
986
1105
  */
987
1106
  export declare const size: <K, V>(self: HashMap<K, V>) => number;
988
1107
  /**
989
- * Marks the `HashMap` as mutable for performance optimization during batch operations.
1108
+ * Creates a transient mutable `HashMap` for efficient batched updates.
1109
+ *
1110
+ * Apply updates to the returned map, then call `endMutation` to finish the
1111
+ * mutation window and use the result as an immutable `HashMap`.
1112
+ *
1113
+ * **Example** (Beginning batch mutation)
990
1114
  *
991
- * @example
992
1115
  * ```ts
993
1116
  * import * as HashMap from "effect/HashMap"
994
1117
  *
@@ -1007,14 +1130,15 @@ export declare const size: <K, V>(self: HashMap<K, V>) => number;
1007
1130
  * console.log(HashMap.size(result)) // 2
1008
1131
  * ```
1009
1132
  *
1010
- * @since 2.0.0
1011
1133
  * @category mutations
1134
+ * @since 2.0.0
1012
1135
  */
1013
1136
  export declare const beginMutation: <K, V>(self: HashMap<K, V>) => HashMap<K, V>;
1014
1137
  /**
1015
1138
  * Marks the `HashMap` as immutable, completing the mutation cycle.
1016
1139
  *
1017
- * @example
1140
+ * **Example** (Ending batch mutation)
1141
+ *
1018
1142
  * ```ts
1019
1143
  * import * as HashMap from "effect/HashMap"
1020
1144
  *
@@ -1037,14 +1161,19 @@ export declare const beginMutation: <K, V>(self: HashMap<K, V>) => HashMap<K, V>
1037
1161
  * console.log(HashMap.get(final, "z")) // Option.some(30)
1038
1162
  * ```
1039
1163
  *
1040
- * @since 2.0.0
1041
1164
  * @category mutations
1165
+ * @since 2.0.0
1042
1166
  */
1043
1167
  export declare const endMutation: <K, V>(self: HashMap<K, V>) => HashMap<K, V>;
1044
1168
  /**
1045
- * Mutates the `HashMap` within the context of the provided function.
1169
+ * Runs a batch of updates against a transient mutable copy of the `HashMap`
1170
+ * and returns the finalized immutable result.
1171
+ *
1172
+ * The callback may call mutation-oriented helpers such as `set` and `remove`
1173
+ * on the transient map.
1174
+ *
1175
+ * **Example** (Applying batched mutations)
1046
1176
  *
1047
- * @example
1048
1177
  * ```ts
1049
1178
  * import * as HashMap from "effect/HashMap"
1050
1179
  *
@@ -1056,14 +1185,19 @@ export declare const endMutation: <K, V>(self: HashMap<K, V>) => HashMap<K, V>;
1056
1185
  * // Returns a new HashMap with mutations applied
1057
1186
  * ```
1058
1187
  *
1059
- * @since 2.0.0
1060
1188
  * @category mutations
1189
+ * @since 2.0.0
1061
1190
  */
1062
1191
  export declare const mutate: {
1063
1192
  /**
1064
- * Mutates the `HashMap` within the context of the provided function.
1193
+ * Runs a batch of updates against a transient mutable copy of the `HashMap`
1194
+ * and returns the finalized immutable result.
1195
+ *
1196
+ * The callback may call mutation-oriented helpers such as `set` and `remove`
1197
+ * on the transient map.
1198
+ *
1199
+ * **Example** (Applying batched mutations)
1065
1200
  *
1066
- * @example
1067
1201
  * ```ts
1068
1202
  * import * as HashMap from "effect/HashMap"
1069
1203
  *
@@ -1075,14 +1209,19 @@ export declare const mutate: {
1075
1209
  * // Returns a new HashMap with mutations applied
1076
1210
  * ```
1077
1211
  *
1078
- * @since 2.0.0
1079
1212
  * @category mutations
1213
+ * @since 2.0.0
1080
1214
  */
1081
1215
  <K, V>(f: (self: HashMap<K, V>) => void): (self: HashMap<K, V>) => HashMap<K, V>;
1082
1216
  /**
1083
- * Mutates the `HashMap` within the context of the provided function.
1217
+ * Runs a batch of updates against a transient mutable copy of the `HashMap`
1218
+ * and returns the finalized immutable result.
1219
+ *
1220
+ * The callback may call mutation-oriented helpers such as `set` and `remove`
1221
+ * on the transient map.
1222
+ *
1223
+ * **Example** (Applying batched mutations)
1084
1224
  *
1085
- * @example
1086
1225
  * ```ts
1087
1226
  * import * as HashMap from "effect/HashMap"
1088
1227
  *
@@ -1094,20 +1233,20 @@ export declare const mutate: {
1094
1233
  * // Returns a new HashMap with mutations applied
1095
1234
  * ```
1096
1235
  *
1097
- * @since 2.0.0
1098
1236
  * @category mutations
1237
+ * @since 2.0.0
1099
1238
  */
1100
1239
  <K, V>(self: HashMap<K, V>, f: (self: HashMap<K, V>) => void): HashMap<K, V>;
1101
1240
  };
1102
1241
  /**
1103
- * Set or remove the specified key in the `HashMap` using the specified
1104
- * update function. The value of the specified key will be computed using the
1105
- * provided hash.
1242
+ * Sets or removes the specified key using an update function.
1106
1243
  *
1107
- * The update function will be invoked with the current value of the key if it
1108
- * exists, or `None` if no such value exists.
1244
+ * The update function receives `Some(value)` when the key exists or `None`
1245
+ * when it does not. Returning `Some(newValue)` stores the value, and returning
1246
+ * `None` removes the key or leaves it absent.
1247
+ *
1248
+ * **Example** (Updating values with Options)
1109
1249
  *
1110
- * @example
1111
1250
  * ```ts
1112
1251
  * import * as HashMap from "effect/HashMap"
1113
1252
  * import * as Option from "effect/Option"
@@ -1122,19 +1261,19 @@ export declare const mutate: {
1122
1261
  * console.log(HashMap.get(updated, "a")) // Option.some(2)
1123
1262
  * ```
1124
1263
  *
1125
- * @since 2.0.0
1126
1264
  * @category transformations
1265
+ * @since 2.0.0
1127
1266
  */
1128
1267
  export declare const modifyAt: {
1129
1268
  /**
1130
- * Set or remove the specified key in the `HashMap` using the specified
1131
- * update function. The value of the specified key will be computed using the
1132
- * provided hash.
1269
+ * Sets or removes the specified key using an update function.
1133
1270
  *
1134
- * The update function will be invoked with the current value of the key if it
1135
- * exists, or `None` if no such value exists.
1271
+ * The update function receives `Some(value)` when the key exists or `None`
1272
+ * when it does not. Returning `Some(newValue)` stores the value, and returning
1273
+ * `None` removes the key or leaves it absent.
1274
+ *
1275
+ * **Example** (Updating values with Options)
1136
1276
  *
1137
- * @example
1138
1277
  * ```ts
1139
1278
  * import * as HashMap from "effect/HashMap"
1140
1279
  * import * as Option from "effect/Option"
@@ -1149,19 +1288,19 @@ export declare const modifyAt: {
1149
1288
  * console.log(HashMap.get(updated, "a")) // Option.some(2)
1150
1289
  * ```
1151
1290
  *
1152
- * @since 2.0.0
1153
1291
  * @category transformations
1292
+ * @since 2.0.0
1154
1293
  */
1155
1294
  <K, V>(key: K, f: HashMap.UpdateFn<V>): (self: HashMap<K, V>) => HashMap<K, V>;
1156
1295
  /**
1157
- * Set or remove the specified key in the `HashMap` using the specified
1158
- * update function. The value of the specified key will be computed using the
1159
- * provided hash.
1296
+ * Sets or removes the specified key using an update function.
1297
+ *
1298
+ * The update function receives `Some(value)` when the key exists or `None`
1299
+ * when it does not. Returning `Some(newValue)` stores the value, and returning
1300
+ * `None` removes the key or leaves it absent.
1160
1301
  *
1161
- * The update function will be invoked with the current value of the key if it
1162
- * exists, or `None` if no such value exists.
1302
+ * **Example** (Updating values with Options)
1163
1303
  *
1164
- * @example
1165
1304
  * ```ts
1166
1305
  * import * as HashMap from "effect/HashMap"
1167
1306
  * import * as Option from "effect/Option"
@@ -1176,22 +1315,21 @@ export declare const modifyAt: {
1176
1315
  * console.log(HashMap.get(updated, "a")) // Option.some(2)
1177
1316
  * ```
1178
1317
  *
1179
- * @since 2.0.0
1180
1318
  * @category transformations
1319
+ * @since 2.0.0
1181
1320
  */
1182
1321
  <K, V>(self: HashMap<K, V>, key: K, f: HashMap.UpdateFn<V>): HashMap<K, V>;
1183
1322
  };
1184
1323
  /**
1185
- * Alter the value of the specified key in the `HashMap` using the specified
1186
- * update function. The value of the specified key will be computed using the
1187
- * provided hash.
1324
+ * Sets or removes the specified key using a precomputed hash and an update
1325
+ * function.
1188
1326
  *
1189
- * The update function will be invoked with the current value of the key if it
1190
- * exists, or `None` if no such value exists.
1327
+ * The update function receives `Some(value)` when the key exists or `None`
1328
+ * when it does not. Returning `Some(newValue)` stores the value, and returning
1329
+ * `None` removes the key or leaves it absent.
1191
1330
  *
1192
- * This function will always either update or insert a value into the `HashMap`.
1331
+ * **Example** (Updating values with a hash)
1193
1332
  *
1194
- * @example
1195
1333
  * ```ts
1196
1334
  * import { Hash } from "effect"
1197
1335
  * import * as HashMap from "effect/HashMap"
@@ -1229,21 +1367,20 @@ export declare const modifyAt: {
1229
1367
  * console.log(HashMap.get(withClicks, "clicks")) // Option.some(1)
1230
1368
  * ```
1231
1369
  *
1232
- * @since 2.0.0
1233
1370
  * @category transformations
1371
+ * @since 2.0.0
1234
1372
  */
1235
1373
  export declare const modifyHash: {
1236
1374
  /**
1237
- * Alter the value of the specified key in the `HashMap` using the specified
1238
- * update function. The value of the specified key will be computed using the
1239
- * provided hash.
1375
+ * Sets or removes the specified key using a precomputed hash and an update
1376
+ * function.
1240
1377
  *
1241
- * The update function will be invoked with the current value of the key if it
1242
- * exists, or `None` if no such value exists.
1378
+ * The update function receives `Some(value)` when the key exists or `None`
1379
+ * when it does not. Returning `Some(newValue)` stores the value, and returning
1380
+ * `None` removes the key or leaves it absent.
1243
1381
  *
1244
- * This function will always either update or insert a value into the `HashMap`.
1382
+ * **Example** (Updating values with a hash)
1245
1383
  *
1246
- * @example
1247
1384
  * ```ts
1248
1385
  * import { Hash } from "effect"
1249
1386
  * import * as HashMap from "effect/HashMap"
@@ -1281,21 +1418,20 @@ export declare const modifyHash: {
1281
1418
  * console.log(HashMap.get(withClicks, "clicks")) // Option.some(1)
1282
1419
  * ```
1283
1420
  *
1284
- * @since 2.0.0
1285
1421
  * @category transformations
1422
+ * @since 2.0.0
1286
1423
  */
1287
1424
  <K, V>(key: K, hash: number, f: HashMap.UpdateFn<V>): (self: HashMap<K, V>) => HashMap<K, V>;
1288
1425
  /**
1289
- * Alter the value of the specified key in the `HashMap` using the specified
1290
- * update function. The value of the specified key will be computed using the
1291
- * provided hash.
1426
+ * Sets or removes the specified key using a precomputed hash and an update
1427
+ * function.
1292
1428
  *
1293
- * The update function will be invoked with the current value of the key if it
1294
- * exists, or `None` if no such value exists.
1429
+ * The update function receives `Some(value)` when the key exists or `None`
1430
+ * when it does not. Returning `Some(newValue)` stores the value, and returning
1431
+ * `None` removes the key or leaves it absent.
1295
1432
  *
1296
- * This function will always either update or insert a value into the `HashMap`.
1433
+ * **Example** (Updating values with a hash)
1297
1434
  *
1298
- * @example
1299
1435
  * ```ts
1300
1436
  * import { Hash } from "effect"
1301
1437
  * import * as HashMap from "effect/HashMap"
@@ -1333,15 +1469,16 @@ export declare const modifyHash: {
1333
1469
  * console.log(HashMap.get(withClicks, "clicks")) // Option.some(1)
1334
1470
  * ```
1335
1471
  *
1336
- * @since 2.0.0
1337
1472
  * @category transformations
1473
+ * @since 2.0.0
1338
1474
  */
1339
1475
  <K, V>(self: HashMap<K, V>, key: K, hash: number, f: HashMap.UpdateFn<V>): HashMap<K, V>;
1340
1476
  };
1341
1477
  /**
1342
1478
  * Updates the value of the specified key within the `HashMap` if it exists.
1343
1479
  *
1344
- * @example
1480
+ * **Example** (Modifying existing values)
1481
+ *
1345
1482
  * ```ts
1346
1483
  * import * as HashMap from "effect/HashMap"
1347
1484
  *
@@ -1352,14 +1489,15 @@ export declare const modifyHash: {
1352
1489
  * console.log(HashMap.get(map2, "b")) // Option.some(2)
1353
1490
  * ```
1354
1491
  *
1355
- * @since 2.0.0
1356
1492
  * @category transformations
1493
+ * @since 2.0.0
1357
1494
  */
1358
1495
  export declare const modify: {
1359
1496
  /**
1360
1497
  * Updates the value of the specified key within the `HashMap` if it exists.
1361
1498
  *
1362
- * @example
1499
+ * **Example** (Modifying existing values)
1500
+ *
1363
1501
  * ```ts
1364
1502
  * import * as HashMap from "effect/HashMap"
1365
1503
  *
@@ -1370,14 +1508,15 @@ export declare const modify: {
1370
1508
  * console.log(HashMap.get(map2, "b")) // Option.some(2)
1371
1509
  * ```
1372
1510
  *
1373
- * @since 2.0.0
1374
1511
  * @category transformations
1512
+ * @since 2.0.0
1375
1513
  */
1376
1514
  <K, V>(key: K, f: (v: V) => V): (self: HashMap<K, V>) => HashMap<K, V>;
1377
1515
  /**
1378
1516
  * Updates the value of the specified key within the `HashMap` if it exists.
1379
1517
  *
1380
- * @example
1518
+ * **Example** (Modifying existing values)
1519
+ *
1381
1520
  * ```ts
1382
1521
  * import * as HashMap from "effect/HashMap"
1383
1522
  *
@@ -1388,15 +1527,19 @@ export declare const modify: {
1388
1527
  * console.log(HashMap.get(map2, "b")) // Option.some(2)
1389
1528
  * ```
1390
1529
  *
1391
- * @since 2.0.0
1392
1530
  * @category transformations
1531
+ * @since 2.0.0
1393
1532
  */
1394
1533
  <K, V>(self: HashMap<K, V>, key: K, f: (v: V) => V): HashMap<K, V>;
1395
1534
  };
1396
1535
  /**
1397
- * Performs a union of this `HashMap` and that `HashMap`.
1536
+ * Combines two `HashMap`s into one.
1537
+ *
1538
+ * Entries from `that` are inserted into `self`; when both maps contain an
1539
+ * equal key, the value from `that` replaces the value from `self`.
1540
+ *
1541
+ * **Example** (Combining HashMaps)
1398
1542
  *
1399
- * @example
1400
1543
  * ```ts
1401
1544
  * import * as HashMap from "effect/HashMap"
1402
1545
  *
@@ -1408,14 +1551,18 @@ export declare const modify: {
1408
1551
  * console.log(HashMap.get(union, "b")) // Option.some(20) - map2 wins
1409
1552
  * ```
1410
1553
  *
1411
- * @since 2.0.0
1412
1554
  * @category combining
1555
+ * @since 2.0.0
1413
1556
  */
1414
1557
  export declare const union: {
1415
1558
  /**
1416
- * Performs a union of this `HashMap` and that `HashMap`.
1559
+ * Combines two `HashMap`s into one.
1560
+ *
1561
+ * Entries from `that` are inserted into `self`; when both maps contain an
1562
+ * equal key, the value from `that` replaces the value from `self`.
1563
+ *
1564
+ * **Example** (Combining HashMaps)
1417
1565
  *
1418
- * @example
1419
1566
  * ```ts
1420
1567
  * import * as HashMap from "effect/HashMap"
1421
1568
  *
@@ -1427,14 +1574,18 @@ export declare const union: {
1427
1574
  * console.log(HashMap.get(union, "b")) // Option.some(20) - map2 wins
1428
1575
  * ```
1429
1576
  *
1430
- * @since 2.0.0
1431
1577
  * @category combining
1578
+ * @since 2.0.0
1432
1579
  */
1433
1580
  <K1, V1>(that: HashMap<K1, V1>): <K0, V0>(self: HashMap<K0, V0>) => HashMap<K1 | K0, V1 | V0>;
1434
1581
  /**
1435
- * Performs a union of this `HashMap` and that `HashMap`.
1582
+ * Combines two `HashMap`s into one.
1583
+ *
1584
+ * Entries from `that` are inserted into `self`; when both maps contain an
1585
+ * equal key, the value from `that` replaces the value from `self`.
1586
+ *
1587
+ * **Example** (Combining HashMaps)
1436
1588
  *
1437
- * @example
1438
1589
  * ```ts
1439
1590
  * import * as HashMap from "effect/HashMap"
1440
1591
  *
@@ -1446,8 +1597,8 @@ export declare const union: {
1446
1597
  * console.log(HashMap.get(union, "b")) // Option.some(20) - map2 wins
1447
1598
  * ```
1448
1599
  *
1449
- * @since 2.0.0
1450
1600
  * @category combining
1601
+ * @since 2.0.0
1451
1602
  */
1452
1603
  <K0, V0, K1, V1>(self: HashMap<K0, V0>, that: HashMap<K1, V1>): HashMap<K0 | K1, V0 | V1>;
1453
1604
  };
@@ -1455,7 +1606,8 @@ export declare const union: {
1455
1606
  * Remove the entry for the specified key in the `HashMap` using the internal
1456
1607
  * hashing function.
1457
1608
  *
1458
- * @example
1609
+ * **Example** (Removing a key)
1610
+ *
1459
1611
  * ```ts
1460
1612
  * import * as HashMap from "effect/HashMap"
1461
1613
  *
@@ -1467,15 +1619,16 @@ export declare const union: {
1467
1619
  * console.log(HashMap.has(map2, "a")) // true
1468
1620
  * ```
1469
1621
  *
1470
- * @since 2.0.0
1471
1622
  * @category transformations
1623
+ * @since 2.0.0
1472
1624
  */
1473
1625
  export declare const remove: {
1474
1626
  /**
1475
1627
  * Remove the entry for the specified key in the `HashMap` using the internal
1476
1628
  * hashing function.
1477
1629
  *
1478
- * @example
1630
+ * **Example** (Removing a key)
1631
+ *
1479
1632
  * ```ts
1480
1633
  * import * as HashMap from "effect/HashMap"
1481
1634
  *
@@ -1487,15 +1640,16 @@ export declare const remove: {
1487
1640
  * console.log(HashMap.has(map2, "a")) // true
1488
1641
  * ```
1489
1642
  *
1490
- * @since 2.0.0
1491
1643
  * @category transformations
1644
+ * @since 2.0.0
1492
1645
  */
1493
1646
  <K>(key: K): <V>(self: HashMap<K, V>) => HashMap<K, V>;
1494
1647
  /**
1495
1648
  * Remove the entry for the specified key in the `HashMap` using the internal
1496
1649
  * hashing function.
1497
1650
  *
1498
- * @example
1651
+ * **Example** (Removing a key)
1652
+ *
1499
1653
  * ```ts
1500
1654
  * import * as HashMap from "effect/HashMap"
1501
1655
  *
@@ -1507,15 +1661,16 @@ export declare const remove: {
1507
1661
  * console.log(HashMap.has(map2, "a")) // true
1508
1662
  * ```
1509
1663
  *
1510
- * @since 2.0.0
1511
1664
  * @category transformations
1665
+ * @since 2.0.0
1512
1666
  */
1513
1667
  <K, V>(self: HashMap<K, V>, key: K): HashMap<K, V>;
1514
1668
  };
1515
1669
  /**
1516
1670
  * Removes all entries in the `HashMap` which have the specified keys.
1517
1671
  *
1518
- * @example
1672
+ * **Example** (Removing multiple keys)
1673
+ *
1519
1674
  * ```ts
1520
1675
  * import * as HashMap from "effect/HashMap"
1521
1676
  *
@@ -1527,14 +1682,15 @@ export declare const remove: {
1527
1682
  * console.log(HashMap.has(map2, "c")) // true
1528
1683
  * ```
1529
1684
  *
1530
- * @since 2.0.0
1531
1685
  * @category transformations
1686
+ * @since 2.0.0
1532
1687
  */
1533
1688
  export declare const removeMany: {
1534
1689
  /**
1535
1690
  * Removes all entries in the `HashMap` which have the specified keys.
1536
1691
  *
1537
- * @example
1692
+ * **Example** (Removing multiple keys)
1693
+ *
1538
1694
  * ```ts
1539
1695
  * import * as HashMap from "effect/HashMap"
1540
1696
  *
@@ -1546,14 +1702,15 @@ export declare const removeMany: {
1546
1702
  * console.log(HashMap.has(map2, "c")) // true
1547
1703
  * ```
1548
1704
  *
1549
- * @since 2.0.0
1550
1705
  * @category transformations
1706
+ * @since 2.0.0
1551
1707
  */
1552
1708
  <K>(keys: Iterable<K>): <V>(self: HashMap<K, V>) => HashMap<K, V>;
1553
1709
  /**
1554
1710
  * Removes all entries in the `HashMap` which have the specified keys.
1555
1711
  *
1556
- * @example
1712
+ * **Example** (Removing multiple keys)
1713
+ *
1557
1714
  * ```ts
1558
1715
  * import * as HashMap from "effect/HashMap"
1559
1716
  *
@@ -1565,15 +1722,16 @@ export declare const removeMany: {
1565
1722
  * console.log(HashMap.has(map2, "c")) // true
1566
1723
  * ```
1567
1724
  *
1568
- * @since 2.0.0
1569
1725
  * @category transformations
1726
+ * @since 2.0.0
1570
1727
  */
1571
1728
  <K, V>(self: HashMap<K, V>, keys: Iterable<K>): HashMap<K, V>;
1572
1729
  };
1573
1730
  /**
1574
1731
  * Sets multiple key-value pairs in the `HashMap`.
1575
1732
  *
1576
- * @example
1733
+ * **Example** (Setting multiple entries)
1734
+ *
1577
1735
  * ```ts
1578
1736
  * import * as HashMap from "effect/HashMap"
1579
1737
  *
@@ -1586,14 +1744,15 @@ export declare const removeMany: {
1586
1744
  * console.log(HashMap.get(map2, "c")) // Option.some(3)
1587
1745
  * ```
1588
1746
  *
1589
- * @since 2.0.0
1590
1747
  * @category transformations
1748
+ * @since 2.0.0
1591
1749
  */
1592
1750
  export declare const setMany: {
1593
1751
  /**
1594
1752
  * Sets multiple key-value pairs in the `HashMap`.
1595
1753
  *
1596
- * @example
1754
+ * **Example** (Setting multiple entries)
1755
+ *
1597
1756
  * ```ts
1598
1757
  * import * as HashMap from "effect/HashMap"
1599
1758
  *
@@ -1606,14 +1765,15 @@ export declare const setMany: {
1606
1765
  * console.log(HashMap.get(map2, "c")) // Option.some(3)
1607
1766
  * ```
1608
1767
  *
1609
- * @since 2.0.0
1610
1768
  * @category transformations
1769
+ * @since 2.0.0
1611
1770
  */
1612
1771
  <K, V>(entries: Iterable<readonly [K, V]>): (self: HashMap<K, V>) => HashMap<K, V>;
1613
1772
  /**
1614
1773
  * Sets multiple key-value pairs in the `HashMap`.
1615
1774
  *
1616
- * @example
1775
+ * **Example** (Setting multiple entries)
1776
+ *
1617
1777
  * ```ts
1618
1778
  * import * as HashMap from "effect/HashMap"
1619
1779
  *
@@ -1626,15 +1786,16 @@ export declare const setMany: {
1626
1786
  * console.log(HashMap.get(map2, "c")) // Option.some(3)
1627
1787
  * ```
1628
1788
  *
1629
- * @since 2.0.0
1630
1789
  * @category transformations
1790
+ * @since 2.0.0
1631
1791
  */
1632
1792
  <K, V>(self: HashMap<K, V>, entries: Iterable<readonly [K, V]>): HashMap<K, V>;
1633
1793
  };
1634
1794
  /**
1635
1795
  * Maps over the entries of the `HashMap` using the specified function.
1636
1796
  *
1637
- * @example
1797
+ * **Example** (Mapping values)
1798
+ *
1638
1799
  * ```ts
1639
1800
  * import * as HashMap from "effect/HashMap"
1640
1801
  *
@@ -1645,14 +1806,15 @@ export declare const setMany: {
1645
1806
  * console.log(HashMap.get(map2, "b")) // Option.some("b:4")
1646
1807
  * ```
1647
1808
  *
1648
- * @since 2.0.0
1649
1809
  * @category mapping
1810
+ * @since 2.0.0
1650
1811
  */
1651
1812
  export declare const map: {
1652
1813
  /**
1653
1814
  * Maps over the entries of the `HashMap` using the specified function.
1654
1815
  *
1655
- * @example
1816
+ * **Example** (Mapping values)
1817
+ *
1656
1818
  * ```ts
1657
1819
  * import * as HashMap from "effect/HashMap"
1658
1820
  *
@@ -1663,14 +1825,15 @@ export declare const map: {
1663
1825
  * console.log(HashMap.get(map2, "b")) // Option.some("b:4")
1664
1826
  * ```
1665
1827
  *
1666
- * @since 2.0.0
1667
1828
  * @category mapping
1829
+ * @since 2.0.0
1668
1830
  */
1669
1831
  <A, V, K>(f: (value: V, key: K) => A): (self: HashMap<K, V>) => HashMap<K, A>;
1670
1832
  /**
1671
1833
  * Maps over the entries of the `HashMap` using the specified function.
1672
1834
  *
1673
- * @example
1835
+ * **Example** (Mapping values)
1836
+ *
1674
1837
  * ```ts
1675
1838
  * import * as HashMap from "effect/HashMap"
1676
1839
  *
@@ -1681,8 +1844,8 @@ export declare const map: {
1681
1844
  * console.log(HashMap.get(map2, "b")) // Option.some("b:4")
1682
1845
  * ```
1683
1846
  *
1684
- * @since 2.0.0
1685
1847
  * @category mapping
1848
+ * @since 2.0.0
1686
1849
  */
1687
1850
  <K, V, A>(self: HashMap<K, V>, f: (value: V, key: K) => A): HashMap<K, A>;
1688
1851
  };
@@ -1691,7 +1854,8 @@ export declare const map: {
1691
1854
  *
1692
1855
  * **NOTE**: the hash and equal of both maps have to be the same.
1693
1856
  *
1694
- * @example
1857
+ * **Example** (FlatMapping values)
1858
+ *
1695
1859
  * ```ts
1696
1860
  * import * as HashMap from "effect/HashMap"
1697
1861
  *
@@ -1706,8 +1870,8 @@ export declare const map: {
1706
1870
  * console.log(HashMap.get(map2, "b2")) // Option.some(4)
1707
1871
  * ```
1708
1872
  *
1709
- * @since 2.0.0
1710
1873
  * @category sequencing
1874
+ * @since 2.0.0
1711
1875
  */
1712
1876
  export declare const flatMap: {
1713
1877
  /**
@@ -1715,7 +1879,8 @@ export declare const flatMap: {
1715
1879
  *
1716
1880
  * **NOTE**: the hash and equal of both maps have to be the same.
1717
1881
  *
1718
- * @example
1882
+ * **Example** (FlatMapping values)
1883
+ *
1719
1884
  * ```ts
1720
1885
  * import * as HashMap from "effect/HashMap"
1721
1886
  *
@@ -1730,8 +1895,8 @@ export declare const flatMap: {
1730
1895
  * console.log(HashMap.get(map2, "b2")) // Option.some(4)
1731
1896
  * ```
1732
1897
  *
1733
- * @since 2.0.0
1734
1898
  * @category sequencing
1899
+ * @since 2.0.0
1735
1900
  */
1736
1901
  <A, K, B>(f: (value: A, key: K) => HashMap<K, B>): (self: HashMap<K, A>) => HashMap<K, B>;
1737
1902
  /**
@@ -1739,7 +1904,8 @@ export declare const flatMap: {
1739
1904
  *
1740
1905
  * **NOTE**: the hash and equal of both maps have to be the same.
1741
1906
  *
1742
- * @example
1907
+ * **Example** (FlatMapping values)
1908
+ *
1743
1909
  * ```ts
1744
1910
  * import * as HashMap from "effect/HashMap"
1745
1911
  *
@@ -1754,15 +1920,16 @@ export declare const flatMap: {
1754
1920
  * console.log(HashMap.get(map2, "b2")) // Option.some(4)
1755
1921
  * ```
1756
1922
  *
1757
- * @since 2.0.0
1758
1923
  * @category sequencing
1924
+ * @since 2.0.0
1759
1925
  */
1760
1926
  <K, A, B>(self: HashMap<K, A>, f: (value: A, key: K) => HashMap<K, B>): HashMap<K, B>;
1761
1927
  };
1762
1928
  /**
1763
1929
  * Applies the specified function to the entries of the `HashMap`.
1764
1930
  *
1765
- * @example
1931
+ * **Example** (Iterating with side effects)
1932
+ *
1766
1933
  * ```ts
1767
1934
  * import * as HashMap from "effect/HashMap"
1768
1935
  *
@@ -1776,14 +1943,15 @@ export declare const flatMap: {
1776
1943
  * console.log(collected.sort()) // [["a", 1], ["b", 2]]
1777
1944
  * ```
1778
1945
  *
1779
- * @since 2.0.0
1780
1946
  * @category traversing
1947
+ * @since 2.0.0
1781
1948
  */
1782
1949
  export declare const forEach: {
1783
1950
  /**
1784
1951
  * Applies the specified function to the entries of the `HashMap`.
1785
1952
  *
1786
- * @example
1953
+ * **Example** (Iterating with side effects)
1954
+ *
1787
1955
  * ```ts
1788
1956
  * import * as HashMap from "effect/HashMap"
1789
1957
  *
@@ -1797,14 +1965,15 @@ export declare const forEach: {
1797
1965
  * console.log(collected.sort()) // [["a", 1], ["b", 2]]
1798
1966
  * ```
1799
1967
  *
1800
- * @since 2.0.0
1801
1968
  * @category traversing
1969
+ * @since 2.0.0
1802
1970
  */
1803
1971
  <V, K>(f: (value: V, key: K) => void): (self: HashMap<K, V>) => void;
1804
1972
  /**
1805
1973
  * Applies the specified function to the entries of the `HashMap`.
1806
1974
  *
1807
- * @example
1975
+ * **Example** (Iterating with side effects)
1976
+ *
1808
1977
  * ```ts
1809
1978
  * import * as HashMap from "effect/HashMap"
1810
1979
  *
@@ -1818,15 +1987,16 @@ export declare const forEach: {
1818
1987
  * console.log(collected.sort()) // [["a", 1], ["b", 2]]
1819
1988
  * ```
1820
1989
  *
1821
- * @since 2.0.0
1822
1990
  * @category traversing
1991
+ * @since 2.0.0
1823
1992
  */
1824
1993
  <V, K>(self: HashMap<K, V>, f: (value: V, key: K) => void): void;
1825
1994
  };
1826
1995
  /**
1827
1996
  * Reduces the specified state over the entries of the `HashMap`.
1828
1997
  *
1829
- * @example
1998
+ * **Example** (Reducing values)
1999
+ *
1830
2000
  * ```ts
1831
2001
  * import * as HashMap from "effect/HashMap"
1832
2002
  *
@@ -1836,14 +2006,15 @@ export declare const forEach: {
1836
2006
  * console.log(sum) // 6
1837
2007
  * ```
1838
2008
  *
1839
- * @since 2.0.0
1840
2009
  * @category folding
2010
+ * @since 2.0.0
1841
2011
  */
1842
2012
  export declare const reduce: {
1843
2013
  /**
1844
2014
  * Reduces the specified state over the entries of the `HashMap`.
1845
2015
  *
1846
- * @example
2016
+ * **Example** (Reducing values)
2017
+ *
1847
2018
  * ```ts
1848
2019
  * import * as HashMap from "effect/HashMap"
1849
2020
  *
@@ -1853,14 +2024,15 @@ export declare const reduce: {
1853
2024
  * console.log(sum) // 6
1854
2025
  * ```
1855
2026
  *
1856
- * @since 2.0.0
1857
2027
  * @category folding
2028
+ * @since 2.0.0
1858
2029
  */
1859
2030
  <Z, V, K>(zero: Z, f: (accumulator: Z, value: V, key: K) => Z): (self: HashMap<K, V>) => Z;
1860
2031
  /**
1861
2032
  * Reduces the specified state over the entries of the `HashMap`.
1862
2033
  *
1863
- * @example
2034
+ * **Example** (Reducing values)
2035
+ *
1864
2036
  * ```ts
1865
2037
  * import * as HashMap from "effect/HashMap"
1866
2038
  *
@@ -1870,15 +2042,16 @@ export declare const reduce: {
1870
2042
  * console.log(sum) // 6
1871
2043
  * ```
1872
2044
  *
1873
- * @since 2.0.0
1874
2045
  * @category folding
2046
+ * @since 2.0.0
1875
2047
  */
1876
2048
  <K, V, Z>(self: HashMap<K, V>, zero: Z, f: (accumulator: Z, value: V, key: K) => Z): Z;
1877
2049
  };
1878
2050
  /**
1879
2051
  * Filters entries out of a `HashMap` using the specified predicate.
1880
2052
  *
1881
- * @example
2053
+ * **Example** (Filtering entries)
2054
+ *
1882
2055
  * ```ts
1883
2056
  * import * as HashMap from "effect/HashMap"
1884
2057
  *
@@ -1891,14 +2064,15 @@ export declare const reduce: {
1891
2064
  * console.log(HashMap.has(map2, "a")) // false
1892
2065
  * ```
1893
2066
  *
1894
- * @since 2.0.0
1895
2067
  * @category filtering
2068
+ * @since 2.0.0
1896
2069
  */
1897
2070
  export declare const filter: {
1898
2071
  /**
1899
2072
  * Filters entries out of a `HashMap` using the specified predicate.
1900
2073
  *
1901
- * @example
2074
+ * **Example** (Filtering entries)
2075
+ *
1902
2076
  * ```ts
1903
2077
  * import * as HashMap from "effect/HashMap"
1904
2078
  *
@@ -1911,14 +2085,15 @@ export declare const filter: {
1911
2085
  * console.log(HashMap.has(map2, "a")) // false
1912
2086
  * ```
1913
2087
  *
1914
- * @since 2.0.0
1915
2088
  * @category filtering
2089
+ * @since 2.0.0
1916
2090
  */
1917
2091
  <K, A>(f: (a: NoInfer<A>, k: K) => boolean): (self: HashMap<K, A>) => HashMap<K, A>;
1918
2092
  /**
1919
2093
  * Filters entries out of a `HashMap` using the specified predicate.
1920
2094
  *
1921
- * @example
2095
+ * **Example** (Filtering entries)
2096
+ *
1922
2097
  * ```ts
1923
2098
  * import * as HashMap from "effect/HashMap"
1924
2099
  *
@@ -1931,15 +2106,16 @@ export declare const filter: {
1931
2106
  * console.log(HashMap.has(map2, "a")) // false
1932
2107
  * ```
1933
2108
  *
1934
- * @since 2.0.0
1935
2109
  * @category filtering
2110
+ * @since 2.0.0
1936
2111
  */
1937
2112
  <K, A>(self: HashMap<K, A>, f: (a: A, k: K) => boolean): HashMap<K, A>;
1938
2113
  };
1939
2114
  /**
1940
2115
  * Filters out `None` values from a `HashMap` of `Options`s.
1941
2116
  *
1942
- * @example
2117
+ * **Example** (Compacting Option values)
2118
+ *
1943
2119
  * ```ts
1944
2120
  * import * as HashMap from "effect/HashMap"
1945
2121
  * import * as Option from "effect/Option"
@@ -1956,15 +2132,16 @@ export declare const filter: {
1956
2132
  * console.log(HashMap.has(map2, "b")) // false
1957
2133
  * ```
1958
2134
  *
1959
- * @since 2.0.0
1960
2135
  * @category filtering
2136
+ * @since 2.0.0
1961
2137
  */
1962
2138
  export declare const compact: <K, A>(self: HashMap<K, Option<A>>) => HashMap<K, A>;
1963
2139
  /**
1964
2140
  * Maps over the entries of the `HashMap` using the specified filter and keeps
1965
2141
  * only successful results.
1966
2142
  *
1967
- * @example
2143
+ * **Example** (Filtering and mapping Results)
2144
+ *
1968
2145
  * ```ts
1969
2146
  * import * as HashMap from "effect/HashMap"
1970
2147
  * import * as Result from "effect/Result"
@@ -1980,15 +2157,16 @@ export declare const compact: <K, A>(self: HashMap<K, Option<A>>) => HashMap<K,
1980
2157
  * console.log(HashMap.get(map2, "d")) // Option.some(8)
1981
2158
  * ```
1982
2159
  *
1983
- * @since 2.0.0
1984
2160
  * @category filtering
2161
+ * @since 2.0.0
1985
2162
  */
1986
2163
  export declare const filterMap: {
1987
2164
  /**
1988
2165
  * Maps over the entries of the `HashMap` using the specified filter and keeps
1989
2166
  * only successful results.
1990
2167
  *
1991
- * @example
2168
+ * **Example** (Filtering and mapping Results)
2169
+ *
1992
2170
  * ```ts
1993
2171
  * import * as HashMap from "effect/HashMap"
1994
2172
  * import * as Result from "effect/Result"
@@ -2004,15 +2182,16 @@ export declare const filterMap: {
2004
2182
  * console.log(HashMap.get(map2, "d")) // Option.some(8)
2005
2183
  * ```
2006
2184
  *
2007
- * @since 2.0.0
2008
2185
  * @category filtering
2186
+ * @since 2.0.0
2009
2187
  */
2010
2188
  <A, K, B, X>(f: (input: A, key: K) => Result<B, X>): (self: HashMap<K, A>) => HashMap<K, B>;
2011
2189
  /**
2012
2190
  * Maps over the entries of the `HashMap` using the specified filter and keeps
2013
2191
  * only successful results.
2014
2192
  *
2015
- * @example
2193
+ * **Example** (Filtering and mapping Results)
2194
+ *
2016
2195
  * ```ts
2017
2196
  * import * as HashMap from "effect/HashMap"
2018
2197
  * import * as Result from "effect/Result"
@@ -2028,8 +2207,8 @@ export declare const filterMap: {
2028
2207
  * console.log(HashMap.get(map2, "d")) // Option.some(8)
2029
2208
  * ```
2030
2209
  *
2031
- * @since 2.0.0
2032
2210
  * @category filtering
2211
+ * @since 2.0.0
2033
2212
  */
2034
2213
  <K, A, B, X>(self: HashMap<K, A>, f: (input: A, key: K) => Result<B, X>): HashMap<K, B>;
2035
2214
  };
@@ -2037,15 +2216,16 @@ export declare const filterMap: {
2037
2216
  * Returns the first element that satisfies the specified
2038
2217
  * predicate, or `None` if no such element exists.
2039
2218
  *
2040
- * @example
2219
+ * **Example** (Finding the first matching entry)
2220
+ *
2041
2221
  * ```ts
2042
2222
  * import * as HashMap from "effect/HashMap"
2043
2223
  * import * as Option from "effect/Option"
2044
2224
  *
2045
2225
  * const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
2046
- * const result = HashMap.findFirst(map, (value) => value > 1)
2047
- * console.log(result) // Option.some(["c", 3])
2048
- * console.log(Option.getOrElse(result, () => ["", 0])) // ["c", 3]
2226
+ * const result = HashMap.findFirst(map, (value, key) => key === "b" && value > 1)
2227
+ * console.log(result) // Option.some(["b", 2])
2228
+ * console.log(Option.getOrElse(result, () => ["", 0])) // ["b", 2]
2049
2229
  * ```
2050
2230
  *
2051
2231
  * @category elements
@@ -2056,15 +2236,16 @@ export declare const findFirst: {
2056
2236
  * Returns the first element that satisfies the specified
2057
2237
  * predicate, or `None` if no such element exists.
2058
2238
  *
2059
- * @example
2239
+ * **Example** (Finding the first matching entry)
2240
+ *
2060
2241
  * ```ts
2061
2242
  * import * as HashMap from "effect/HashMap"
2062
2243
  * import * as Option from "effect/Option"
2063
2244
  *
2064
2245
  * const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
2065
- * const result = HashMap.findFirst(map, (value) => value > 1)
2066
- * console.log(result) // Option.some(["c", 3])
2067
- * console.log(Option.getOrElse(result, () => ["", 0])) // ["c", 3]
2246
+ * const result = HashMap.findFirst(map, (value, key) => key === "b" && value > 1)
2247
+ * console.log(result) // Option.some(["b", 2])
2248
+ * console.log(Option.getOrElse(result, () => ["", 0])) // ["b", 2]
2068
2249
  * ```
2069
2250
  *
2070
2251
  * @category elements
@@ -2075,15 +2256,16 @@ export declare const findFirst: {
2075
2256
  * Returns the first element that satisfies the specified
2076
2257
  * predicate, or `None` if no such element exists.
2077
2258
  *
2078
- * @example
2259
+ * **Example** (Finding the first matching entry)
2260
+ *
2079
2261
  * ```ts
2080
2262
  * import * as HashMap from "effect/HashMap"
2081
2263
  * import * as Option from "effect/Option"
2082
2264
  *
2083
2265
  * const map = HashMap.make(["a", 1], ["b", 2], ["c", 3])
2084
- * const result = HashMap.findFirst(map, (value) => value > 1)
2085
- * console.log(result) // Option.some(["c", 3])
2086
- * console.log(Option.getOrElse(result, () => ["", 0])) // ["c", 3]
2266
+ * const result = HashMap.findFirst(map, (value, key) => key === "b" && value > 1)
2267
+ * console.log(result) // Option.some(["b", 2])
2268
+ * console.log(Option.getOrElse(result, () => ["", 0])) // ["b", 2]
2087
2269
  * ```
2088
2270
  *
2089
2271
  * @category elements
@@ -2094,7 +2276,8 @@ export declare const findFirst: {
2094
2276
  /**
2095
2277
  * Checks if any entry in a hashmap meets a specific condition.
2096
2278
  *
2097
- * @example
2279
+ * **Example** (Checking for any matching entry)
2280
+ *
2098
2281
  * ```ts
2099
2282
  * import * as HashMap from "effect/HashMap"
2100
2283
  *
@@ -2104,14 +2287,15 @@ export declare const findFirst: {
2104
2287
  * console.log(HashMap.some(map, (value) => value > 5)) // false
2105
2288
  * ```
2106
2289
  *
2107
- * @since 3.13.0
2108
2290
  * @category elements
2291
+ * @since 3.13.0
2109
2292
  */
2110
2293
  export declare const some: {
2111
2294
  /**
2112
2295
  * Checks if any entry in a hashmap meets a specific condition.
2113
2296
  *
2114
- * @example
2297
+ * **Example** (Checking for any matching entry)
2298
+ *
2115
2299
  * ```ts
2116
2300
  * import * as HashMap from "effect/HashMap"
2117
2301
  *
@@ -2121,14 +2305,15 @@ export declare const some: {
2121
2305
  * console.log(HashMap.some(map, (value) => value > 5)) // false
2122
2306
  * ```
2123
2307
  *
2124
- * @since 3.13.0
2125
2308
  * @category elements
2309
+ * @since 3.13.0
2126
2310
  */
2127
2311
  <K, A>(predicate: (a: NoInfer<A>, k: K) => boolean): (self: HashMap<K, A>) => boolean;
2128
2312
  /**
2129
2313
  * Checks if any entry in a hashmap meets a specific condition.
2130
2314
  *
2131
- * @example
2315
+ * **Example** (Checking for any matching entry)
2316
+ *
2132
2317
  * ```ts
2133
2318
  * import * as HashMap from "effect/HashMap"
2134
2319
  *
@@ -2138,15 +2323,16 @@ export declare const some: {
2138
2323
  * console.log(HashMap.some(map, (value) => value > 5)) // false
2139
2324
  * ```
2140
2325
  *
2141
- * @since 3.13.0
2142
2326
  * @category elements
2327
+ * @since 3.13.0
2143
2328
  */
2144
2329
  <K, A>(self: HashMap<K, A>, predicate: (a: A, k: K) => boolean): boolean;
2145
2330
  };
2146
2331
  /**
2147
2332
  * Checks if all entries in a hashmap meets a specific condition.
2148
2333
  *
2149
- * @example
2334
+ * **Example** (Checking all entries)
2335
+ *
2150
2336
  * ```ts
2151
2337
  * import * as HashMap from "effect/HashMap"
2152
2338
  *
@@ -2159,14 +2345,15 @@ export declare const some: {
2159
2345
  * @param self - The hashmap to check.
2160
2346
  * @param predicate - The condition to test entries (value, key).
2161
2347
  *
2162
- * @since 3.14.0
2163
2348
  * @category elements
2349
+ * @since 3.14.0
2164
2350
  */
2165
2351
  export declare const every: {
2166
2352
  /**
2167
2353
  * Checks if all entries in a hashmap meets a specific condition.
2168
2354
  *
2169
- * @example
2355
+ * **Example** (Checking all entries)
2356
+ *
2170
2357
  * ```ts
2171
2358
  * import * as HashMap from "effect/HashMap"
2172
2359
  *
@@ -2179,14 +2366,15 @@ export declare const every: {
2179
2366
  * @param self - The hashmap to check.
2180
2367
  * @param predicate - The condition to test entries (value, key).
2181
2368
  *
2182
- * @since 3.14.0
2183
2369
  * @category elements
2370
+ * @since 3.14.0
2184
2371
  */
2185
2372
  <K, A>(predicate: (a: NoInfer<A>, k: K) => boolean): (self: HashMap<K, A>) => boolean;
2186
2373
  /**
2187
2374
  * Checks if all entries in a hashmap meets a specific condition.
2188
2375
  *
2189
- * @example
2376
+ * **Example** (Checking all entries)
2377
+ *
2190
2378
  * ```ts
2191
2379
  * import * as HashMap from "effect/HashMap"
2192
2380
  *
@@ -2199,8 +2387,8 @@ export declare const every: {
2199
2387
  * @param self - The hashmap to check.
2200
2388
  * @param predicate - The condition to test entries (value, key).
2201
2389
  *
2202
- * @since 3.14.0
2203
2390
  * @category elements
2391
+ * @since 3.14.0
2204
2392
  */
2205
2393
  <K, A>(self: HashMap<K, A>, predicate: (a: A, k: K) => boolean): boolean;
2206
2394
  };