effect 4.0.0-beta.67 → 4.0.0-beta.68

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 (1172) hide show
  1. package/dist/Array.d.ts +41 -42
  2. package/dist/Array.d.ts.map +1 -1
  3. package/dist/Array.js +23 -23
  4. package/dist/Array.js.map +1 -1
  5. package/dist/BigDecimal.d.ts +265 -265
  6. package/dist/BigDecimal.js +128 -128
  7. package/dist/BigInt.d.ts +175 -177
  8. package/dist/BigInt.d.ts.map +1 -1
  9. package/dist/BigInt.js +81 -79
  10. package/dist/BigInt.js.map +1 -1
  11. package/dist/Boolean.d.ts +127 -125
  12. package/dist/Boolean.d.ts.map +1 -1
  13. package/dist/Boolean.js +55 -53
  14. package/dist/Boolean.js.map +1 -1
  15. package/dist/Brand.d.ts +10 -4
  16. package/dist/Brand.d.ts.map +1 -1
  17. package/dist/Brand.js +3 -2
  18. package/dist/Brand.js.map +1 -1
  19. package/dist/Cache.d.ts +36 -36
  20. package/dist/Cache.js +17 -17
  21. package/dist/Cause.d.ts +17 -18
  22. package/dist/Cause.d.ts.map +1 -1
  23. package/dist/Cause.js +12 -12
  24. package/dist/Cause.js.map +1 -1
  25. package/dist/Channel.d.ts +234 -241
  26. package/dist/Channel.d.ts.map +1 -1
  27. package/dist/Channel.js +97 -101
  28. package/dist/Channel.js.map +1 -1
  29. package/dist/Chunk.d.ts +33 -56
  30. package/dist/Chunk.d.ts.map +1 -1
  31. package/dist/Chunk.js +17 -26
  32. package/dist/Chunk.js.map +1 -1
  33. package/dist/Clock.d.ts +1 -1
  34. package/dist/Clock.js +1 -1
  35. package/dist/Combiner.d.ts +9 -1
  36. package/dist/Combiner.d.ts.map +1 -1
  37. package/dist/Combiner.js +8 -0
  38. package/dist/Combiner.js.map +1 -1
  39. package/dist/Config.d.ts +78 -68
  40. package/dist/Config.d.ts.map +1 -1
  41. package/dist/Config.js +53 -49
  42. package/dist/Config.js.map +1 -1
  43. package/dist/ConfigProvider.d.ts +33 -32
  44. package/dist/ConfigProvider.d.ts.map +1 -1
  45. package/dist/ConfigProvider.js +19 -18
  46. package/dist/ConfigProvider.js.map +1 -1
  47. package/dist/Console.d.ts +19 -19
  48. package/dist/Console.js +19 -19
  49. package/dist/Context.d.ts +70 -108
  50. package/dist/Context.d.ts.map +1 -1
  51. package/dist/Context.js +30 -44
  52. package/dist/Context.js.map +1 -1
  53. package/dist/Cron.d.ts +3 -5
  54. package/dist/Cron.d.ts.map +1 -1
  55. package/dist/Cron.js +3 -5
  56. package/dist/Cron.js.map +1 -1
  57. package/dist/Crypto.d.ts +208 -0
  58. package/dist/Crypto.d.ts.map +1 -0
  59. package/dist/Crypto.js +157 -0
  60. package/dist/Crypto.js.map +1 -0
  61. package/dist/Data.d.ts +6 -1
  62. package/dist/Data.d.ts.map +1 -1
  63. package/dist/Data.js.map +1 -1
  64. package/dist/DateTime.d.ts +29 -31
  65. package/dist/DateTime.d.ts.map +1 -1
  66. package/dist/DateTime.js +19 -19
  67. package/dist/DateTime.js.map +1 -1
  68. package/dist/Deferred.d.ts +8 -9
  69. package/dist/Deferred.d.ts.map +1 -1
  70. package/dist/Deferred.js +6 -6
  71. package/dist/Deferred.js.map +1 -1
  72. package/dist/Differ.d.ts +2 -2
  73. package/dist/Duration.d.ts +30 -27
  74. package/dist/Duration.d.ts.map +1 -1
  75. package/dist/Duration.js +15 -12
  76. package/dist/Duration.js.map +1 -1
  77. package/dist/Effect.d.ts +394 -652
  78. package/dist/Effect.d.ts.map +1 -1
  79. package/dist/Effect.js +157 -247
  80. package/dist/Effect.js.map +1 -1
  81. package/dist/Effectable.d.ts +2 -2
  82. package/dist/Effectable.js +2 -2
  83. package/dist/Encoding.d.ts +9 -9
  84. package/dist/Encoding.js +9 -9
  85. package/dist/Equal.d.ts +4 -3
  86. package/dist/Equal.d.ts.map +1 -1
  87. package/dist/Equal.js +4 -3
  88. package/dist/Equal.js.map +1 -1
  89. package/dist/Equivalence.d.ts +4 -5
  90. package/dist/Equivalence.d.ts.map +1 -1
  91. package/dist/Equivalence.js +2 -2
  92. package/dist/Equivalence.js.map +1 -1
  93. package/dist/ErrorReporter.d.ts +14 -14
  94. package/dist/ErrorReporter.js +9 -9
  95. package/dist/ExecutionPlan.d.ts +18 -9
  96. package/dist/ExecutionPlan.d.ts.map +1 -1
  97. package/dist/ExecutionPlan.js +6 -4
  98. package/dist/ExecutionPlan.js.map +1 -1
  99. package/dist/Exit.d.ts +0 -1
  100. package/dist/Exit.d.ts.map +1 -1
  101. package/dist/Exit.js.map +1 -1
  102. package/dist/Fiber.d.ts +1 -2
  103. package/dist/Fiber.d.ts.map +1 -1
  104. package/dist/Fiber.js +1 -1
  105. package/dist/Fiber.js.map +1 -1
  106. package/dist/FiberHandle.d.ts +5 -5
  107. package/dist/FiberHandle.js +3 -3
  108. package/dist/FiberMap.d.ts +10 -10
  109. package/dist/FiberMap.js +4 -4
  110. package/dist/FiberSet.d.ts +4 -4
  111. package/dist/FiberSet.js +2 -2
  112. package/dist/FileSystem.d.ts +10 -12
  113. package/dist/FileSystem.d.ts.map +1 -1
  114. package/dist/FileSystem.js +3 -3
  115. package/dist/FileSystem.js.map +1 -1
  116. package/dist/Filter.d.ts +54 -54
  117. package/dist/Filter.js +28 -28
  118. package/dist/Formatter.d.ts +4 -2
  119. package/dist/Formatter.d.ts.map +1 -1
  120. package/dist/Formatter.js +3 -69
  121. package/dist/Formatter.js.map +1 -1
  122. package/dist/Function.d.ts +64 -65
  123. package/dist/Function.d.ts.map +1 -1
  124. package/dist/Function.js +41 -41
  125. package/dist/Function.js.map +1 -1
  126. package/dist/Graph.d.ts +157 -175
  127. package/dist/Graph.d.ts.map +1 -1
  128. package/dist/Graph.js +72 -80
  129. package/dist/Graph.js.map +1 -1
  130. package/dist/Hash.d.ts +4 -6
  131. package/dist/Hash.d.ts.map +1 -1
  132. package/dist/Hash.js +2 -2
  133. package/dist/Hash.js.map +1 -1
  134. package/dist/HashMap.d.ts +121 -157
  135. package/dist/HashMap.d.ts.map +1 -1
  136. package/dist/HashMap.js +47 -59
  137. package/dist/HashMap.js.map +1 -1
  138. package/dist/HashRing.d.ts +34 -34
  139. package/dist/HashRing.js +16 -16
  140. package/dist/HashSet.d.ts +51 -55
  141. package/dist/HashSet.d.ts.map +1 -1
  142. package/dist/HashSet.js +19 -20
  143. package/dist/HashSet.js.map +1 -1
  144. package/dist/Inspectable.d.ts +6 -4
  145. package/dist/Inspectable.d.ts.map +1 -1
  146. package/dist/Inspectable.js +6 -4
  147. package/dist/Inspectable.js.map +1 -1
  148. package/dist/Iterable.d.ts +37 -83
  149. package/dist/Iterable.d.ts.map +1 -1
  150. package/dist/Iterable.js +21 -39
  151. package/dist/Iterable.js.map +1 -1
  152. package/dist/JsonPatch.d.ts +8 -6
  153. package/dist/JsonPatch.d.ts.map +1 -1
  154. package/dist/JsonPatch.js +5 -3
  155. package/dist/JsonPatch.js.map +1 -1
  156. package/dist/JsonPointer.d.ts +13 -11
  157. package/dist/JsonPointer.d.ts.map +1 -1
  158. package/dist/JsonPointer.js +13 -11
  159. package/dist/JsonPointer.js.map +1 -1
  160. package/dist/JsonSchema.d.ts +16 -0
  161. package/dist/JsonSchema.d.ts.map +1 -1
  162. package/dist/JsonSchema.js +10 -0
  163. package/dist/JsonSchema.js.map +1 -1
  164. package/dist/Latch.d.ts +4 -16
  165. package/dist/Latch.d.ts.map +1 -1
  166. package/dist/Latch.js +2 -14
  167. package/dist/Latch.js.map +1 -1
  168. package/dist/Layer.d.ts +94 -135
  169. package/dist/Layer.d.ts.map +1 -1
  170. package/dist/Layer.js +44 -61
  171. package/dist/Layer.js.map +1 -1
  172. package/dist/LayerMap.d.ts +15 -16
  173. package/dist/LayerMap.d.ts.map +1 -1
  174. package/dist/LayerMap.js +6 -6
  175. package/dist/LogLevel.d.ts +13 -13
  176. package/dist/LogLevel.js +4 -4
  177. package/dist/Logger.d.ts +10 -11
  178. package/dist/Logger.d.ts.map +1 -1
  179. package/dist/Logger.js +10 -11
  180. package/dist/Logger.js.map +1 -1
  181. package/dist/ManagedRuntime.d.ts +5 -4
  182. package/dist/ManagedRuntime.d.ts.map +1 -1
  183. package/dist/ManagedRuntime.js +4 -3
  184. package/dist/ManagedRuntime.js.map +1 -1
  185. package/dist/Match.d.ts +2 -4
  186. package/dist/Match.d.ts.map +1 -1
  187. package/dist/Match.js +1 -2
  188. package/dist/Match.js.map +1 -1
  189. package/dist/Metric.d.ts +48 -50
  190. package/dist/Metric.d.ts.map +1 -1
  191. package/dist/Metric.js +22 -22
  192. package/dist/Metric.js.map +1 -1
  193. package/dist/MutableHashMap.d.ts +30 -30
  194. package/dist/MutableHashMap.d.ts.map +1 -1
  195. package/dist/MutableHashMap.js +15 -14
  196. package/dist/MutableHashMap.js.map +1 -1
  197. package/dist/MutableHashSet.d.ts.map +1 -1
  198. package/dist/MutableHashSet.js +0 -2
  199. package/dist/MutableHashSet.js.map +1 -1
  200. package/dist/MutableList.d.ts +23 -24
  201. package/dist/MutableList.d.ts.map +1 -1
  202. package/dist/MutableList.js +17 -19
  203. package/dist/MutableList.js.map +1 -1
  204. package/dist/MutableRef.d.ts.map +1 -1
  205. package/dist/MutableRef.js +0 -1
  206. package/dist/MutableRef.js.map +1 -1
  207. package/dist/Newtype.d.ts +12 -2
  208. package/dist/Newtype.d.ts.map +1 -1
  209. package/dist/Newtype.js +8 -2
  210. package/dist/Newtype.js.map +1 -1
  211. package/dist/NonEmptyIterable.d.ts +5 -12
  212. package/dist/NonEmptyIterable.d.ts.map +1 -1
  213. package/dist/NonEmptyIterable.js +3 -8
  214. package/dist/NonEmptyIterable.js.map +1 -1
  215. package/dist/Number.d.ts +145 -141
  216. package/dist/Number.d.ts.map +1 -1
  217. package/dist/Number.js +65 -61
  218. package/dist/Number.js.map +1 -1
  219. package/dist/Optic.d.ts +5 -5
  220. package/dist/Optic.js +5 -5
  221. package/dist/Option.d.ts +105 -109
  222. package/dist/Option.d.ts.map +1 -1
  223. package/dist/Option.js +50 -52
  224. package/dist/Option.js.map +1 -1
  225. package/dist/Order.d.ts +6 -6
  226. package/dist/Order.js +6 -6
  227. package/dist/Ordering.d.ts +15 -19
  228. package/dist/Ordering.d.ts.map +1 -1
  229. package/dist/Ordering.js +6 -6
  230. package/dist/Ordering.js.map +1 -1
  231. package/dist/PartitionedSemaphore.d.ts +3 -3
  232. package/dist/PartitionedSemaphore.js +2 -2
  233. package/dist/Path.d.ts +4 -4
  234. package/dist/Path.d.ts.map +1 -1
  235. package/dist/Path.js +2 -1
  236. package/dist/Path.js.map +1 -1
  237. package/dist/Pipeable.d.ts +10 -7
  238. package/dist/Pipeable.d.ts.map +1 -1
  239. package/dist/Pipeable.js +6 -4
  240. package/dist/Pipeable.js.map +1 -1
  241. package/dist/PlatformError.d.ts +3 -3
  242. package/dist/PlatformError.js +2 -2
  243. package/dist/Predicate.d.ts +2 -4
  244. package/dist/Predicate.d.ts.map +1 -1
  245. package/dist/Predicate.js +3 -3
  246. package/dist/Predicate.js.map +1 -1
  247. package/dist/PrimaryKey.d.ts +2 -1
  248. package/dist/PrimaryKey.d.ts.map +1 -1
  249. package/dist/PrimaryKey.js +2 -1
  250. package/dist/PrimaryKey.js.map +1 -1
  251. package/dist/PubSub.d.ts +25 -51
  252. package/dist/PubSub.d.ts.map +1 -1
  253. package/dist/PubSub.js +17 -35
  254. package/dist/PubSub.js.map +1 -1
  255. package/dist/Queue.d.ts +45 -60
  256. package/dist/Queue.d.ts.map +1 -1
  257. package/dist/Queue.js +27 -33
  258. package/dist/Queue.js.map +1 -1
  259. package/dist/Random.d.ts +27 -38
  260. package/dist/Random.d.ts.map +1 -1
  261. package/dist/Random.js +17 -54
  262. package/dist/Random.js.map +1 -1
  263. package/dist/RcMap.d.ts +11 -11
  264. package/dist/RcMap.js +3 -3
  265. package/dist/RcRef.d.ts +0 -1
  266. package/dist/RcRef.d.ts.map +1 -1
  267. package/dist/RcRef.js.map +1 -1
  268. package/dist/Record.d.ts +9 -8
  269. package/dist/Record.d.ts.map +1 -1
  270. package/dist/Record.js +7 -5
  271. package/dist/Record.js.map +1 -1
  272. package/dist/Redactable.d.ts +7 -5
  273. package/dist/Redactable.d.ts.map +1 -1
  274. package/dist/Redactable.js +5 -3
  275. package/dist/Redactable.js.map +1 -1
  276. package/dist/Redacted.d.ts +2 -3
  277. package/dist/Redacted.d.ts.map +1 -1
  278. package/dist/Redacted.js +2 -2
  279. package/dist/Redacted.js.map +1 -1
  280. package/dist/Reducer.d.ts +3 -1
  281. package/dist/Reducer.d.ts.map +1 -1
  282. package/dist/Reducer.js +2 -0
  283. package/dist/Reducer.js.map +1 -1
  284. package/dist/Ref.d.ts +7 -17
  285. package/dist/Ref.d.ts.map +1 -1
  286. package/dist/Ref.js +5 -12
  287. package/dist/Ref.js.map +1 -1
  288. package/dist/RegExp.d.ts +1 -1
  289. package/dist/RegExp.js +1 -1
  290. package/dist/Request.d.ts +2 -1
  291. package/dist/Request.d.ts.map +1 -1
  292. package/dist/Request.js +1 -0
  293. package/dist/Request.js.map +1 -1
  294. package/dist/RequestResolver.d.ts +2 -3
  295. package/dist/RequestResolver.d.ts.map +1 -1
  296. package/dist/RequestResolver.js +1 -1
  297. package/dist/RequestResolver.js.map +1 -1
  298. package/dist/Resource.d.ts +1 -1
  299. package/dist/Resource.js +1 -1
  300. package/dist/Result.d.ts +124 -142
  301. package/dist/Result.d.ts.map +1 -1
  302. package/dist/Result.js +51 -63
  303. package/dist/Result.js.map +1 -1
  304. package/dist/Runtime.d.ts +2 -7
  305. package/dist/Runtime.d.ts.map +1 -1
  306. package/dist/Runtime.js +1 -3
  307. package/dist/Runtime.js.map +1 -1
  308. package/dist/Schedule.d.ts +69 -72
  309. package/dist/Schedule.d.ts.map +1 -1
  310. package/dist/Schedule.js +31 -33
  311. package/dist/Schedule.js.map +1 -1
  312. package/dist/Scheduler.d.ts +2 -2
  313. package/dist/Scheduler.js +2 -2
  314. package/dist/Schema.d.ts +491 -321
  315. package/dist/Schema.d.ts.map +1 -1
  316. package/dist/Schema.js +220 -172
  317. package/dist/Schema.js.map +1 -1
  318. package/dist/SchemaAST.d.ts +98 -77
  319. package/dist/SchemaAST.d.ts.map +1 -1
  320. package/dist/SchemaAST.js +89 -68
  321. package/dist/SchemaAST.js.map +1 -1
  322. package/dist/SchemaGetter.d.ts +23 -23
  323. package/dist/SchemaGetter.js +20 -20
  324. package/dist/SchemaIssue.d.ts +18 -16
  325. package/dist/SchemaIssue.d.ts.map +1 -1
  326. package/dist/SchemaIssue.js +16 -14
  327. package/dist/SchemaIssue.js.map +1 -1
  328. package/dist/SchemaParser.d.ts +39 -40
  329. package/dist/SchemaParser.d.ts.map +1 -1
  330. package/dist/SchemaParser.js +48 -51
  331. package/dist/SchemaParser.js.map +1 -1
  332. package/dist/SchemaRepresentation.d.ts +89 -77
  333. package/dist/SchemaRepresentation.d.ts.map +1 -1
  334. package/dist/SchemaRepresentation.js +47 -37
  335. package/dist/SchemaRepresentation.js.map +1 -1
  336. package/dist/SchemaTransformation.d.ts +36 -5
  337. package/dist/SchemaTransformation.d.ts.map +1 -1
  338. package/dist/SchemaTransformation.js +33 -5
  339. package/dist/SchemaTransformation.js.map +1 -1
  340. package/dist/SchemaUtils.d.ts +1 -1
  341. package/dist/SchemaUtils.js +1 -1
  342. package/dist/Scope.d.ts +12 -29
  343. package/dist/Scope.d.ts.map +1 -1
  344. package/dist/Scope.js +6 -11
  345. package/dist/Scope.js.map +1 -1
  346. package/dist/ScopedCache.d.ts +37 -37
  347. package/dist/ScopedCache.js +17 -17
  348. package/dist/Semaphore.d.ts +4 -16
  349. package/dist/Semaphore.d.ts.map +1 -1
  350. package/dist/Semaphore.js +2 -14
  351. package/dist/Semaphore.js.map +1 -1
  352. package/dist/Sink.d.ts +36 -39
  353. package/dist/Sink.d.ts.map +1 -1
  354. package/dist/Sink.js +18 -18
  355. package/dist/Sink.js.map +1 -1
  356. package/dist/Stdio.d.ts +6 -6
  357. package/dist/Stdio.js +4 -4
  358. package/dist/Stream.d.ts +671 -808
  359. package/dist/Stream.d.ts.map +1 -1
  360. package/dist/Stream.js +289 -363
  361. package/dist/Stream.js.map +1 -1
  362. package/dist/String.d.ts +3 -2
  363. package/dist/String.d.ts.map +1 -1
  364. package/dist/String.js +3 -2
  365. package/dist/String.js.map +1 -1
  366. package/dist/Struct.d.ts +20 -18
  367. package/dist/Struct.d.ts.map +1 -1
  368. package/dist/Struct.js +10 -8
  369. package/dist/Struct.js.map +1 -1
  370. package/dist/SubscriptionRef.d.ts +2 -2
  371. package/dist/SubscriptionRef.js +2 -2
  372. package/dist/Symbol.d.ts +3 -3
  373. package/dist/Symbol.js +3 -3
  374. package/dist/SynchronizedRef.d.ts +1 -1
  375. package/dist/SynchronizedRef.js +1 -1
  376. package/dist/Take.d.ts +2 -2
  377. package/dist/Take.js +1 -1
  378. package/dist/Terminal.d.ts +5 -5
  379. package/dist/Terminal.js +2 -2
  380. package/dist/Tracer.d.ts +9 -9
  381. package/dist/Tracer.js +2 -2
  382. package/dist/Trie.d.ts +70 -106
  383. package/dist/Trie.d.ts.map +1 -1
  384. package/dist/Trie.js +29 -43
  385. package/dist/Trie.js.map +1 -1
  386. package/dist/Tuple.d.ts +34 -32
  387. package/dist/Tuple.d.ts.map +1 -1
  388. package/dist/Tuple.js +16 -14
  389. package/dist/Tuple.js.map +1 -1
  390. package/dist/TxChunk.d.ts +27 -18
  391. package/dist/TxChunk.d.ts.map +1 -1
  392. package/dist/TxChunk.js +15 -10
  393. package/dist/TxChunk.js.map +1 -1
  394. package/dist/TxDeferred.d.ts +11 -11
  395. package/dist/TxDeferred.js +5 -5
  396. package/dist/TxHashMap.d.ts +60 -61
  397. package/dist/TxHashMap.d.ts.map +1 -1
  398. package/dist/TxHashMap.js +23 -23
  399. package/dist/TxHashMap.js.map +1 -1
  400. package/dist/TxHashSet.d.ts +28 -32
  401. package/dist/TxHashSet.d.ts.map +1 -1
  402. package/dist/TxHashSet.js +13 -16
  403. package/dist/TxHashSet.js.map +1 -1
  404. package/dist/TxPriorityQueue.d.ts +30 -30
  405. package/dist/TxPriorityQueue.js +18 -18
  406. package/dist/TxPubSub.d.ts +18 -18
  407. package/dist/TxPubSub.js +14 -14
  408. package/dist/TxQueue.d.ts +26 -29
  409. package/dist/TxQueue.d.ts.map +1 -1
  410. package/dist/TxQueue.js +17 -17
  411. package/dist/TxQueue.js.map +1 -1
  412. package/dist/TxReentrantLock.d.ts +21 -21
  413. package/dist/TxReentrantLock.js +15 -15
  414. package/dist/TxRef.d.ts +24 -24
  415. package/dist/TxRef.js +11 -11
  416. package/dist/TxSemaphore.d.ts +13 -74
  417. package/dist/TxSemaphore.d.ts.map +1 -1
  418. package/dist/TxSemaphore.js +9 -52
  419. package/dist/TxSemaphore.js.map +1 -1
  420. package/dist/TxSubscriptionRef.d.ts +24 -24
  421. package/dist/TxSubscriptionRef.js +11 -11
  422. package/dist/Types.d.ts +1 -4
  423. package/dist/Types.d.ts.map +1 -1
  424. package/dist/UndefinedOr.d.ts +14 -0
  425. package/dist/UndefinedOr.d.ts.map +1 -1
  426. package/dist/UndefinedOr.js +8 -0
  427. package/dist/UndefinedOr.js.map +1 -1
  428. package/dist/Unify.d.ts +8 -8
  429. package/dist/Unify.js +1 -1
  430. package/dist/Utils.d.ts +1 -2
  431. package/dist/Utils.d.ts.map +1 -1
  432. package/dist/Utils.js.map +1 -1
  433. package/dist/index.d.ts +1917 -411
  434. package/dist/index.d.ts.map +1 -1
  435. package/dist/index.js +1917 -411
  436. package/dist/index.js.map +1 -1
  437. package/dist/testing/FastCheck.d.ts +3 -3
  438. package/dist/testing/FastCheck.js +3 -3
  439. package/dist/testing/TestClock.d.ts +2 -3
  440. package/dist/testing/TestClock.d.ts.map +1 -1
  441. package/dist/testing/TestClock.js +1 -1
  442. package/dist/testing/TestClock.js.map +1 -1
  443. package/dist/testing/TestConsole.d.ts +8 -9
  444. package/dist/testing/TestConsole.d.ts.map +1 -1
  445. package/dist/testing/TestConsole.js +5 -5
  446. package/dist/testing/TestConsole.js.map +1 -1
  447. package/dist/testing/TestSchema.d.ts +2 -0
  448. package/dist/testing/TestSchema.d.ts.map +1 -1
  449. package/dist/testing/TestSchema.js +2 -0
  450. package/dist/testing/TestSchema.js.map +1 -1
  451. package/dist/testing/index.d.ts +34 -0
  452. package/dist/testing/index.d.ts.map +1 -1
  453. package/dist/testing/index.js +34 -0
  454. package/dist/testing/index.js.map +1 -1
  455. package/dist/unstable/ai/AiError.d.ts +10 -19
  456. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  457. package/dist/unstable/ai/AiError.js +0 -9
  458. package/dist/unstable/ai/AiError.js.map +1 -1
  459. package/dist/unstable/ai/Chat.d.ts +0 -1
  460. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  461. package/dist/unstable/ai/Chat.js.map +1 -1
  462. package/dist/unstable/ai/McpSchema.d.ts +3 -0
  463. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  464. package/dist/unstable/ai/McpSchema.js +2 -0
  465. package/dist/unstable/ai/McpSchema.js.map +1 -1
  466. package/dist/unstable/ai/McpServer.d.ts +3 -1
  467. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  468. package/dist/unstable/ai/McpServer.js +1 -1
  469. package/dist/unstable/ai/McpServer.js.map +1 -1
  470. package/dist/unstable/ai/Model.d.ts +2 -6
  471. package/dist/unstable/ai/Model.d.ts.map +1 -1
  472. package/dist/unstable/ai/Model.js +2 -2
  473. package/dist/unstable/ai/Model.js.map +1 -1
  474. package/dist/unstable/ai/Prompt.d.ts +8 -10
  475. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  476. package/dist/unstable/ai/Prompt.js +4 -4
  477. package/dist/unstable/ai/Prompt.js.map +1 -1
  478. package/dist/unstable/ai/Response.d.ts +20 -20
  479. package/dist/unstable/ai/ResponseIdTracker.d.ts +1 -1
  480. package/dist/unstable/ai/ResponseIdTracker.js +1 -1
  481. package/dist/unstable/ai/Telemetry.d.ts +5 -5
  482. package/dist/unstable/ai/Telemetry.js +3 -3
  483. package/dist/unstable/ai/Tokenizer.d.ts +1 -1
  484. package/dist/unstable/ai/Tool.d.ts +14 -12
  485. package/dist/unstable/ai/Tool.d.ts.map +1 -1
  486. package/dist/unstable/ai/Tool.js +10 -9
  487. package/dist/unstable/ai/Tool.js.map +1 -1
  488. package/dist/unstable/ai/index.d.ts +79 -5
  489. package/dist/unstable/ai/index.d.ts.map +1 -1
  490. package/dist/unstable/ai/index.js +79 -5
  491. package/dist/unstable/ai/index.js.map +1 -1
  492. package/dist/unstable/cli/CliOutput.d.ts +5 -6
  493. package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
  494. package/dist/unstable/cli/CliOutput.js +2 -3
  495. package/dist/unstable/cli/CliOutput.js.map +1 -1
  496. package/dist/unstable/cli/Command.d.ts +3 -3
  497. package/dist/unstable/cli/Command.js +1 -1
  498. package/dist/unstable/cli/HelpDoc.d.ts +4 -4
  499. package/dist/unstable/cli/Param.d.ts +31 -1
  500. package/dist/unstable/cli/Param.d.ts.map +1 -1
  501. package/dist/unstable/cli/Param.js +37 -38
  502. package/dist/unstable/cli/Param.js.map +1 -1
  503. package/dist/unstable/cli/Primitive.d.ts +1 -1
  504. package/dist/unstable/cli/Primitive.js +1 -1
  505. package/dist/unstable/cli/Prompt.d.ts +6 -14
  506. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  507. package/dist/unstable/cli/Prompt.js +2 -2
  508. package/dist/unstable/cli/Prompt.js.map +1 -1
  509. package/dist/unstable/cli/index.d.ts +182 -0
  510. package/dist/unstable/cli/index.d.ts.map +1 -1
  511. package/dist/unstable/cli/index.js +205 -6
  512. package/dist/unstable/cli/index.js.map +1 -1
  513. package/dist/unstable/cli/internal/parser.js +0 -1
  514. package/dist/unstable/cli/internal/parser.js.map +1 -1
  515. package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
  516. package/dist/unstable/cluster/ClusterCron.js +1 -1
  517. package/dist/unstable/cluster/ClusterSchema.d.ts +8 -8
  518. package/dist/unstable/cluster/ClusterSchema.js +8 -8
  519. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +2 -2
  520. package/dist/unstable/cluster/ClusterWorkflowEngine.js +2 -2
  521. package/dist/unstable/cluster/Entity.d.ts +0 -1
  522. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  523. package/dist/unstable/cluster/Entity.js.map +1 -1
  524. package/dist/unstable/cluster/EntityProxy.d.ts +10 -14
  525. package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
  526. package/dist/unstable/cluster/EntityProxy.js +8 -14
  527. package/dist/unstable/cluster/EntityProxy.js.map +1 -1
  528. package/dist/unstable/cluster/EntityProxyServer.d.ts +3 -2
  529. package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
  530. package/dist/unstable/cluster/EntityProxyServer.js +2 -2
  531. package/dist/unstable/cluster/EntityResource.d.ts +2 -2
  532. package/dist/unstable/cluster/EntityResource.js +1 -1
  533. package/dist/unstable/cluster/Envelope.d.ts +1 -1
  534. package/dist/unstable/cluster/Envelope.js +1 -1
  535. package/dist/unstable/cluster/HttpRunner.d.ts +11 -11
  536. package/dist/unstable/cluster/HttpRunner.js +11 -11
  537. package/dist/unstable/cluster/K8sHttpClient.d.ts +5 -5
  538. package/dist/unstable/cluster/K8sHttpClient.js +5 -5
  539. package/dist/unstable/cluster/MachineId.d.ts +1 -1
  540. package/dist/unstable/cluster/MachineId.js +1 -1
  541. package/dist/unstable/cluster/MessageStorage.d.ts +1 -2
  542. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  543. package/dist/unstable/cluster/MessageStorage.js +1 -1
  544. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  545. package/dist/unstable/cluster/Runner.d.ts +1 -1
  546. package/dist/unstable/cluster/Runner.js +1 -1
  547. package/dist/unstable/cluster/RunnerHealth.d.ts +2 -2
  548. package/dist/unstable/cluster/RunnerHealth.js +2 -2
  549. package/dist/unstable/cluster/RunnerServer.d.ts +4 -4
  550. package/dist/unstable/cluster/RunnerServer.js +4 -4
  551. package/dist/unstable/cluster/Runners.d.ts +3 -3
  552. package/dist/unstable/cluster/Runners.js +3 -3
  553. package/dist/unstable/cluster/ShardId.d.ts +7 -5
  554. package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
  555. package/dist/unstable/cluster/ShardId.js +6 -4
  556. package/dist/unstable/cluster/ShardId.js.map +1 -1
  557. package/dist/unstable/cluster/Sharding.js +1 -1
  558. package/dist/unstable/cluster/ShardingConfig.d.ts +2 -2
  559. package/dist/unstable/cluster/ShardingConfig.js +2 -2
  560. package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
  561. package/dist/unstable/cluster/SingleRunner.js +1 -1
  562. package/dist/unstable/cluster/Snowflake.d.ts +10 -9
  563. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  564. package/dist/unstable/cluster/Snowflake.js +4 -3
  565. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  566. package/dist/unstable/cluster/SocketRunner.d.ts +2 -2
  567. package/dist/unstable/cluster/SocketRunner.js +2 -2
  568. package/dist/unstable/cluster/SqlMessageStorage.d.ts +3 -3
  569. package/dist/unstable/cluster/SqlMessageStorage.js +3 -3
  570. package/dist/unstable/cluster/SqlRunnerStorage.d.ts +3 -3
  571. package/dist/unstable/cluster/SqlRunnerStorage.js +3 -3
  572. package/dist/unstable/cluster/TestRunner.d.ts +1 -1
  573. package/dist/unstable/cluster/TestRunner.js +1 -1
  574. package/dist/unstable/cluster/index.d.ts +790 -0
  575. package/dist/unstable/cluster/index.d.ts.map +1 -1
  576. package/dist/unstable/cluster/index.js +790 -0
  577. package/dist/unstable/cluster/index.js.map +1 -1
  578. package/dist/unstable/devtools/index.d.ts +58 -0
  579. package/dist/unstable/devtools/index.d.ts.map +1 -1
  580. package/dist/unstable/devtools/index.js +58 -0
  581. package/dist/unstable/devtools/index.js.map +1 -1
  582. package/dist/unstable/encoding/Sse.d.ts +16 -16
  583. package/dist/unstable/encoding/Sse.js +11 -11
  584. package/dist/unstable/encoding/index.d.ts +49 -0
  585. package/dist/unstable/encoding/index.d.ts.map +1 -1
  586. package/dist/unstable/encoding/index.js +49 -0
  587. package/dist/unstable/encoding/index.js.map +1 -1
  588. package/dist/unstable/eventlog/Event.d.ts +2 -2
  589. package/dist/unstable/eventlog/Event.js +1 -1
  590. package/dist/unstable/eventlog/EventGroup.d.ts +2 -2
  591. package/dist/unstable/eventlog/EventGroup.js +1 -1
  592. package/dist/unstable/eventlog/EventLog.d.ts +6 -7
  593. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  594. package/dist/unstable/eventlog/EventLog.js +4 -4
  595. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  596. package/dist/unstable/eventlog/EventLogRemote.d.ts +2 -2
  597. package/dist/unstable/eventlog/EventLogRemote.js +2 -2
  598. package/dist/unstable/eventlog/EventLogServer.d.ts +2 -2
  599. package/dist/unstable/eventlog/EventLogServer.js +2 -2
  600. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +2 -2
  601. package/dist/unstable/eventlog/EventLogServerEncrypted.js +2 -2
  602. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +1 -1
  603. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +1 -1
  604. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +1 -1
  605. package/dist/unstable/eventlog/index.d.ts +240 -0
  606. package/dist/unstable/eventlog/index.d.ts.map +1 -1
  607. package/dist/unstable/eventlog/index.js +240 -0
  608. package/dist/unstable/eventlog/index.js.map +1 -1
  609. package/dist/unstable/http/Cookies.d.ts +6 -6
  610. package/dist/unstable/http/Cookies.js +4 -4
  611. package/dist/unstable/http/Etag.d.ts +2 -2
  612. package/dist/unstable/http/Etag.js +2 -2
  613. package/dist/unstable/http/Headers.d.ts +2 -2
  614. package/dist/unstable/http/Headers.js +1 -1
  615. package/dist/unstable/http/HttpClient.d.ts +5 -6
  616. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  617. package/dist/unstable/http/HttpClient.js +5 -4
  618. package/dist/unstable/http/HttpClient.js.map +1 -1
  619. package/dist/unstable/http/HttpClientError.d.ts +1 -1
  620. package/dist/unstable/http/HttpClientError.js +1 -1
  621. package/dist/unstable/http/HttpClientRequest.d.ts +4 -4
  622. package/dist/unstable/http/HttpClientRequest.js +4 -4
  623. package/dist/unstable/http/HttpClientResponse.d.ts +6 -6
  624. package/dist/unstable/http/HttpClientResponse.js +6 -6
  625. package/dist/unstable/http/HttpEffect.d.ts +5 -5
  626. package/dist/unstable/http/HttpEffect.js +5 -5
  627. package/dist/unstable/http/HttpIncomingMessage.d.ts +7 -6
  628. package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
  629. package/dist/unstable/http/HttpIncomingMessage.js +7 -6
  630. package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
  631. package/dist/unstable/http/HttpMethod.d.ts +4 -2
  632. package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
  633. package/dist/unstable/http/HttpMethod.js +4 -1
  634. package/dist/unstable/http/HttpMethod.js.map +1 -1
  635. package/dist/unstable/http/HttpMiddleware.d.ts +1 -0
  636. package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
  637. package/dist/unstable/http/HttpMiddleware.js.map +1 -1
  638. package/dist/unstable/http/HttpRouter.d.ts +23 -25
  639. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  640. package/dist/unstable/http/HttpRouter.js +23 -22
  641. package/dist/unstable/http/HttpRouter.js.map +1 -1
  642. package/dist/unstable/http/HttpServerError.d.ts +4 -1
  643. package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
  644. package/dist/unstable/http/HttpServerError.js +4 -1
  645. package/dist/unstable/http/HttpServerError.js.map +1 -1
  646. package/dist/unstable/http/HttpServerRequest.d.ts +15 -15
  647. package/dist/unstable/http/HttpServerRequest.js +15 -15
  648. package/dist/unstable/http/HttpServerRespondable.d.ts +1 -1
  649. package/dist/unstable/http/HttpServerRespondable.js +1 -1
  650. package/dist/unstable/http/HttpServerResponse.d.ts +5 -4
  651. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  652. package/dist/unstable/http/HttpServerResponse.js +5 -4
  653. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  654. package/dist/unstable/http/HttpStaticServer.d.ts +2 -4
  655. package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
  656. package/dist/unstable/http/HttpStaticServer.js +2 -4
  657. package/dist/unstable/http/HttpStaticServer.js.map +1 -1
  658. package/dist/unstable/http/Multipart.d.ts +20 -19
  659. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  660. package/dist/unstable/http/Multipart.js +19 -17
  661. package/dist/unstable/http/Multipart.js.map +1 -1
  662. package/dist/unstable/http/Template.d.ts +0 -1
  663. package/dist/unstable/http/Template.d.ts.map +1 -1
  664. package/dist/unstable/http/Template.js.map +1 -1
  665. package/dist/unstable/http/Url.d.ts +17 -17
  666. package/dist/unstable/http/Url.js +8 -8
  667. package/dist/unstable/http/UrlParams.d.ts +14 -12
  668. package/dist/unstable/http/UrlParams.d.ts.map +1 -1
  669. package/dist/unstable/http/UrlParams.js +12 -10
  670. package/dist/unstable/http/UrlParams.js.map +1 -1
  671. package/dist/unstable/http/index.d.ts +452 -0
  672. package/dist/unstable/http/index.d.ts.map +1 -1
  673. package/dist/unstable/http/index.js +452 -0
  674. package/dist/unstable/http/index.js.map +1 -1
  675. package/dist/unstable/httpapi/HttpApiBuilder.d.ts +0 -1
  676. package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
  677. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  678. package/dist/unstable/httpapi/HttpApiClient.d.ts +0 -1
  679. package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
  680. package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
  681. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +4 -2
  682. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
  683. package/dist/unstable/httpapi/HttpApiMiddleware.js +3 -1
  684. package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
  685. package/dist/unstable/httpapi/HttpApiScalar.d.ts +2 -2
  686. package/dist/unstable/httpapi/HttpApiSchema.d.ts +19 -8
  687. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  688. package/dist/unstable/httpapi/HttpApiSchema.js +11 -8
  689. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  690. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +0 -1
  691. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  692. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  693. package/dist/unstable/httpapi/HttpApiSwagger.d.ts +0 -2
  694. package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
  695. package/dist/unstable/httpapi/HttpApiSwagger.js +0 -2
  696. package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
  697. package/dist/unstable/httpapi/index.d.ts +310 -25
  698. package/dist/unstable/httpapi/index.d.ts.map +1 -1
  699. package/dist/unstable/httpapi/index.js +310 -25
  700. package/dist/unstable/httpapi/index.js.map +1 -1
  701. package/dist/unstable/observability/Otlp.d.ts +3 -3
  702. package/dist/unstable/observability/Otlp.js +3 -3
  703. package/dist/unstable/observability/OtlpExporter.d.ts +1 -1
  704. package/dist/unstable/observability/OtlpExporter.js +1 -1
  705. package/dist/unstable/observability/OtlpLogger.d.ts +3 -2
  706. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  707. package/dist/unstable/observability/OtlpLogger.js +2 -2
  708. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  709. package/dist/unstable/observability/OtlpMetrics.d.ts +5 -4
  710. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  711. package/dist/unstable/observability/OtlpMetrics.js +2 -2
  712. package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
  713. package/dist/unstable/observability/OtlpResource.d.ts +9 -9
  714. package/dist/unstable/observability/OtlpResource.js +2 -2
  715. package/dist/unstable/observability/OtlpSerialization.d.ts +3 -3
  716. package/dist/unstable/observability/OtlpSerialization.js +3 -3
  717. package/dist/unstable/observability/OtlpTracer.d.ts +5 -2
  718. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  719. package/dist/unstable/observability/OtlpTracer.js +2 -2
  720. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  721. package/dist/unstable/observability/PrometheusMetrics.d.ts +7 -7
  722. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  723. package/dist/unstable/observability/index.d.ts +158 -2
  724. package/dist/unstable/observability/index.d.ts.map +1 -1
  725. package/dist/unstable/observability/index.js +158 -2
  726. package/dist/unstable/observability/index.js.map +1 -1
  727. package/dist/unstable/persistence/KeyValueStore.d.ts +4 -4
  728. package/dist/unstable/persistence/KeyValueStore.js +1 -1
  729. package/dist/unstable/persistence/Persistable.d.ts +11 -11
  730. package/dist/unstable/persistence/Persistable.js +1 -1
  731. package/dist/unstable/persistence/PersistedCache.d.ts +2 -2
  732. package/dist/unstable/persistence/PersistedCache.js +1 -1
  733. package/dist/unstable/persistence/PersistedQueue.d.ts +6 -6
  734. package/dist/unstable/persistence/PersistedQueue.js +3 -3
  735. package/dist/unstable/persistence/Persistence.d.ts +2 -1
  736. package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
  737. package/dist/unstable/persistence/Persistence.js +2 -1
  738. package/dist/unstable/persistence/Persistence.js.map +1 -1
  739. package/dist/unstable/persistence/RateLimiter.d.ts +19 -15
  740. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  741. package/dist/unstable/persistence/RateLimiter.js +14 -10
  742. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  743. package/dist/unstable/persistence/Redis.d.ts +3 -3
  744. package/dist/unstable/persistence/Redis.js +3 -3
  745. package/dist/unstable/persistence/index.d.ts +147 -0
  746. package/dist/unstable/persistence/index.d.ts.map +1 -1
  747. package/dist/unstable/persistence/index.js +147 -0
  748. package/dist/unstable/persistence/index.js.map +1 -1
  749. package/dist/unstable/process/ChildProcess.d.ts +41 -41
  750. package/dist/unstable/process/ChildProcess.js +11 -11
  751. package/dist/unstable/process/ChildProcessSpawner.d.ts +10 -10
  752. package/dist/unstable/process/ChildProcessSpawner.js +5 -5
  753. package/dist/unstable/reactivity/AsyncResult.d.ts +8 -6
  754. package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
  755. package/dist/unstable/reactivity/AsyncResult.js +3 -3
  756. package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
  757. package/dist/unstable/reactivity/Atom.d.ts +25 -20
  758. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  759. package/dist/unstable/reactivity/Atom.js +12 -12
  760. package/dist/unstable/reactivity/Atom.js.map +1 -1
  761. package/dist/unstable/reactivity/AtomHttpApi.d.ts +2 -2
  762. package/dist/unstable/reactivity/AtomHttpApi.js +1 -1
  763. package/dist/unstable/reactivity/AtomRef.d.ts +2 -2
  764. package/dist/unstable/reactivity/AtomRef.js +1 -1
  765. package/dist/unstable/reactivity/AtomRegistry.d.ts +16 -16
  766. package/dist/unstable/reactivity/AtomRegistry.js +7 -7
  767. package/dist/unstable/reactivity/AtomRpc.d.ts +2 -2
  768. package/dist/unstable/reactivity/AtomRpc.js +1 -1
  769. package/dist/unstable/reactivity/Reactivity.d.ts +2 -3
  770. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  771. package/dist/unstable/reactivity/Reactivity.js +2 -3
  772. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  773. package/dist/unstable/reactivity/index.d.ts +167 -0
  774. package/dist/unstable/reactivity/index.d.ts.map +1 -1
  775. package/dist/unstable/reactivity/index.js +167 -0
  776. package/dist/unstable/reactivity/index.js.map +1 -1
  777. package/dist/unstable/rpc/Rpc.d.ts +0 -1
  778. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  779. package/dist/unstable/rpc/Rpc.js.map +1 -1
  780. package/dist/unstable/rpc/RpcClient.d.ts +0 -1
  781. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  782. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  783. package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
  784. package/dist/unstable/rpc/RpcClientError.js +2 -2
  785. package/dist/unstable/rpc/RpcMiddleware.d.ts +2 -2
  786. package/dist/unstable/rpc/RpcMiddleware.js +1 -1
  787. package/dist/unstable/rpc/RpcWorker.d.ts +0 -1
  788. package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
  789. package/dist/unstable/rpc/RpcWorker.js.map +1 -1
  790. package/dist/unstable/rpc/Utils.d.ts +2 -0
  791. package/dist/unstable/rpc/Utils.d.ts.map +1 -1
  792. package/dist/unstable/rpc/Utils.js +2 -0
  793. package/dist/unstable/rpc/Utils.js.map +1 -1
  794. package/dist/unstable/rpc/index.d.ts +272 -0
  795. package/dist/unstable/rpc/index.d.ts.map +1 -1
  796. package/dist/unstable/rpc/index.js +272 -0
  797. package/dist/unstable/rpc/index.js.map +1 -1
  798. package/dist/unstable/schema/Model.d.ts +63 -8
  799. package/dist/unstable/schema/Model.d.ts.map +1 -1
  800. package/dist/unstable/schema/Model.js +44 -5
  801. package/dist/unstable/schema/Model.js.map +1 -1
  802. package/dist/unstable/schema/VariantSchema.d.ts +1 -4
  803. package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
  804. package/dist/unstable/schema/VariantSchema.js +1 -1
  805. package/dist/unstable/schema/VariantSchema.js.map +1 -1
  806. package/dist/unstable/schema/index.d.ts +37 -0
  807. package/dist/unstable/schema/index.d.ts.map +1 -1
  808. package/dist/unstable/schema/index.js +37 -0
  809. package/dist/unstable/schema/index.js.map +1 -1
  810. package/dist/unstable/socket/Socket.d.ts +5 -4
  811. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  812. package/dist/unstable/socket/Socket.js +4 -3
  813. package/dist/unstable/socket/Socket.js.map +1 -1
  814. package/dist/unstable/socket/index.d.ts +44 -0
  815. package/dist/unstable/socket/index.d.ts.map +1 -1
  816. package/dist/unstable/socket/index.js +44 -0
  817. package/dist/unstable/socket/index.js.map +1 -1
  818. package/dist/unstable/sql/Migrator.d.ts +5 -5
  819. package/dist/unstable/sql/Migrator.js +1 -1
  820. package/dist/unstable/sql/SqlClient.d.ts +4 -0
  821. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  822. package/dist/unstable/sql/SqlClient.js +2 -0
  823. package/dist/unstable/sql/SqlClient.js.map +1 -1
  824. package/dist/unstable/sql/SqlConnection.d.ts +3 -3
  825. package/dist/unstable/sql/SqlError.d.ts +18 -0
  826. package/dist/unstable/sql/SqlError.d.ts.map +1 -1
  827. package/dist/unstable/sql/SqlError.js +17 -0
  828. package/dist/unstable/sql/SqlError.js.map +1 -1
  829. package/dist/unstable/sql/SqlModel.d.ts +0 -1
  830. package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
  831. package/dist/unstable/sql/SqlModel.js.map +1 -1
  832. package/dist/unstable/sql/SqlSchema.d.ts +5 -5
  833. package/dist/unstable/sql/SqlSchema.js +5 -5
  834. package/dist/unstable/sql/SqlStream.d.ts +1 -0
  835. package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
  836. package/dist/unstable/sql/SqlStream.js +1 -0
  837. package/dist/unstable/sql/SqlStream.js.map +1 -1
  838. package/dist/unstable/sql/Statement.d.ts +27 -24
  839. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  840. package/dist/unstable/sql/Statement.js +9 -6
  841. package/dist/unstable/sql/Statement.js.map +1 -1
  842. package/dist/unstable/sql/index.d.ts +178 -0
  843. package/dist/unstable/sql/index.d.ts.map +1 -1
  844. package/dist/unstable/sql/index.js +178 -0
  845. package/dist/unstable/sql/index.js.map +1 -1
  846. package/dist/unstable/workers/Transferable.d.ts +7 -7
  847. package/dist/unstable/workers/Transferable.js +4 -4
  848. package/dist/unstable/workers/Worker.d.ts +1 -0
  849. package/dist/unstable/workers/Worker.d.ts.map +1 -1
  850. package/dist/unstable/workers/Worker.js +1 -0
  851. package/dist/unstable/workers/Worker.js.map +1 -1
  852. package/dist/unstable/workers/WorkerError.d.ts +8 -8
  853. package/dist/unstable/workers/WorkerError.js +7 -7
  854. package/dist/unstable/workers/index.d.ts +80 -0
  855. package/dist/unstable/workers/index.d.ts.map +1 -1
  856. package/dist/unstable/workers/index.js +80 -0
  857. package/dist/unstable/workers/index.js.map +1 -1
  858. package/dist/unstable/workflow/Activity.d.ts +7 -7
  859. package/dist/unstable/workflow/Activity.js +2 -2
  860. package/dist/unstable/workflow/DurableClock.d.ts +2 -2
  861. package/dist/unstable/workflow/DurableClock.js +1 -1
  862. package/dist/unstable/workflow/DurableDeferred.d.ts +22 -20
  863. package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
  864. package/dist/unstable/workflow/DurableDeferred.js +8 -7
  865. package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
  866. package/dist/unstable/workflow/DurableQueue.d.ts +7 -5
  867. package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
  868. package/dist/unstable/workflow/DurableQueue.js +5 -3
  869. package/dist/unstable/workflow/DurableQueue.js.map +1 -1
  870. package/dist/unstable/workflow/Workflow.d.ts +12 -10
  871. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  872. package/dist/unstable/workflow/Workflow.js +3 -3
  873. package/dist/unstable/workflow/Workflow.js.map +1 -1
  874. package/dist/unstable/workflow/WorkflowEngine.d.ts +4 -4
  875. package/dist/unstable/workflow/WorkflowEngine.js +4 -4
  876. package/dist/unstable/workflow/WorkflowProxy.d.ts +10 -12
  877. package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
  878. package/dist/unstable/workflow/WorkflowProxy.js +8 -12
  879. package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
  880. package/dist/unstable/workflow/WorkflowProxyServer.d.ts +3 -2
  881. package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
  882. package/dist/unstable/workflow/WorkflowProxyServer.js +2 -2
  883. package/dist/unstable/workflow/index.d.ts +160 -0
  884. package/dist/unstable/workflow/index.d.ts.map +1 -1
  885. package/dist/unstable/workflow/index.js +160 -0
  886. package/dist/unstable/workflow/index.js.map +1 -1
  887. package/package.json +1 -1
  888. package/src/Array.ts +41 -42
  889. package/src/BigDecimal.ts +265 -265
  890. package/src/BigInt.ts +175 -177
  891. package/src/Boolean.ts +127 -125
  892. package/src/Brand.ts +10 -4
  893. package/src/Cache.ts +42 -42
  894. package/src/Cause.ts +17 -18
  895. package/src/Channel.ts +250 -256
  896. package/src/Chunk.ts +33 -56
  897. package/src/Clock.ts +1 -1
  898. package/src/Combiner.ts +9 -1
  899. package/src/Config.ts +78 -68
  900. package/src/ConfigProvider.ts +33 -32
  901. package/src/Console.ts +23 -23
  902. package/src/Context.ts +70 -108
  903. package/src/Cron.ts +3 -5
  904. package/src/Crypto.ts +327 -0
  905. package/src/Data.ts +6 -1
  906. package/src/DateTime.ts +29 -31
  907. package/src/Deferred.ts +8 -9
  908. package/src/Differ.ts +2 -2
  909. package/src/Duration.ts +30 -27
  910. package/src/Effect.ts +402 -660
  911. package/src/Effectable.ts +2 -2
  912. package/src/Encoding.ts +9 -9
  913. package/src/Equal.ts +4 -3
  914. package/src/Equivalence.ts +4 -5
  915. package/src/ErrorReporter.ts +14 -14
  916. package/src/ExecutionPlan.ts +18 -9
  917. package/src/Exit.ts +0 -1
  918. package/src/Fiber.ts +1 -2
  919. package/src/FiberHandle.ts +5 -5
  920. package/src/FiberMap.ts +10 -10
  921. package/src/FiberSet.ts +4 -4
  922. package/src/FileSystem.ts +10 -12
  923. package/src/Filter.ts +54 -54
  924. package/src/Formatter.ts +4 -70
  925. package/src/Function.ts +64 -65
  926. package/src/Graph.ts +157 -175
  927. package/src/Hash.ts +4 -6
  928. package/src/HashMap.ts +121 -157
  929. package/src/HashRing.ts +34 -34
  930. package/src/HashSet.ts +51 -55
  931. package/src/Inspectable.ts +8 -7
  932. package/src/Iterable.ts +37 -83
  933. package/src/JsonPatch.ts +9 -7
  934. package/src/JsonPointer.ts +13 -11
  935. package/src/JsonSchema.ts +16 -0
  936. package/src/Latch.ts +4 -16
  937. package/src/Layer.ts +94 -135
  938. package/src/LayerMap.ts +15 -16
  939. package/src/LogLevel.ts +13 -13
  940. package/src/Logger.ts +16 -17
  941. package/src/ManagedRuntime.ts +5 -4
  942. package/src/Match.ts +2 -4
  943. package/src/Metric.ts +56 -58
  944. package/src/MutableHashMap.ts +42 -44
  945. package/src/MutableHashSet.ts +0 -2
  946. package/src/MutableList.ts +23 -26
  947. package/src/MutableRef.ts +0 -1
  948. package/src/Newtype.ts +12 -2
  949. package/src/NonEmptyIterable.ts +5 -12
  950. package/src/Number.ts +145 -141
  951. package/src/Optic.ts +5 -5
  952. package/src/Option.ts +105 -109
  953. package/src/Order.ts +6 -6
  954. package/src/Ordering.ts +15 -19
  955. package/src/PartitionedSemaphore.ts +3 -3
  956. package/src/Path.ts +4 -4
  957. package/src/Pipeable.ts +10 -7
  958. package/src/PlatformError.ts +3 -3
  959. package/src/Predicate.ts +3 -5
  960. package/src/PrimaryKey.ts +2 -1
  961. package/src/PubSub.ts +25 -51
  962. package/src/Queue.ts +45 -60
  963. package/src/Random.ts +31 -74
  964. package/src/RcMap.ts +11 -11
  965. package/src/RcRef.ts +0 -1
  966. package/src/Record.ts +9 -8
  967. package/src/Redactable.ts +7 -5
  968. package/src/Redacted.ts +2 -3
  969. package/src/Reducer.ts +3 -1
  970. package/src/Ref.ts +15 -33
  971. package/src/RegExp.ts +1 -1
  972. package/src/Request.ts +2 -1
  973. package/src/RequestResolver.ts +2 -3
  974. package/src/Resource.ts +1 -1
  975. package/src/Result.ts +124 -142
  976. package/src/Runtime.ts +2 -7
  977. package/src/Schedule.ts +74 -77
  978. package/src/Scheduler.ts +2 -2
  979. package/src/Schema.ts +491 -321
  980. package/src/SchemaAST.ts +98 -77
  981. package/src/SchemaGetter.ts +23 -23
  982. package/src/SchemaIssue.ts +18 -16
  983. package/src/SchemaParser.ts +46 -49
  984. package/src/SchemaRepresentation.ts +89 -77
  985. package/src/SchemaTransformation.ts +36 -5
  986. package/src/SchemaUtils.ts +1 -1
  987. package/src/Scope.ts +12 -29
  988. package/src/ScopedCache.ts +43 -43
  989. package/src/Semaphore.ts +4 -16
  990. package/src/Sink.ts +36 -39
  991. package/src/Stdio.ts +6 -6
  992. package/src/Stream.ts +789 -828
  993. package/src/String.ts +3 -2
  994. package/src/Struct.ts +20 -18
  995. package/src/SubscriptionRef.ts +2 -2
  996. package/src/Symbol.ts +3 -3
  997. package/src/SynchronizedRef.ts +1 -1
  998. package/src/Take.ts +2 -2
  999. package/src/Terminal.ts +5 -5
  1000. package/src/Tracer.ts +9 -9
  1001. package/src/Trie.ts +70 -106
  1002. package/src/Tuple.ts +34 -32
  1003. package/src/TxChunk.ts +27 -18
  1004. package/src/TxDeferred.ts +11 -11
  1005. package/src/TxHashMap.ts +62 -63
  1006. package/src/TxHashSet.ts +38 -42
  1007. package/src/TxPriorityQueue.ts +31 -31
  1008. package/src/TxPubSub.ts +18 -18
  1009. package/src/TxQueue.ts +26 -29
  1010. package/src/TxReentrantLock.ts +21 -21
  1011. package/src/TxRef.ts +24 -24
  1012. package/src/TxSemaphore.ts +13 -74
  1013. package/src/TxSubscriptionRef.ts +24 -24
  1014. package/src/Types.ts +1 -4
  1015. package/src/UndefinedOr.ts +14 -0
  1016. package/src/Unify.ts +8 -8
  1017. package/src/Utils.ts +1 -2
  1018. package/src/index.ts +1915 -408
  1019. package/src/testing/FastCheck.ts +3 -3
  1020. package/src/testing/TestClock.ts +2 -3
  1021. package/src/testing/TestConsole.ts +8 -9
  1022. package/src/testing/TestSchema.ts +2 -0
  1023. package/src/testing/index.ts +34 -0
  1024. package/src/unstable/ai/AiError.ts +10 -19
  1025. package/src/unstable/ai/Chat.ts +0 -1
  1026. package/src/unstable/ai/McpSchema.ts +3 -0
  1027. package/src/unstable/ai/McpServer.ts +3 -1
  1028. package/src/unstable/ai/Model.ts +2 -6
  1029. package/src/unstable/ai/Prompt.ts +8 -10
  1030. package/src/unstable/ai/Response.ts +20 -20
  1031. package/src/unstable/ai/ResponseIdTracker.ts +1 -1
  1032. package/src/unstable/ai/Telemetry.ts +5 -5
  1033. package/src/unstable/ai/Tokenizer.ts +1 -1
  1034. package/src/unstable/ai/Tool.ts +14 -12
  1035. package/src/unstable/ai/index.ts +79 -5
  1036. package/src/unstable/cli/CliOutput.ts +5 -6
  1037. package/src/unstable/cli/Command.ts +3 -3
  1038. package/src/unstable/cli/HelpDoc.ts +4 -4
  1039. package/src/unstable/cli/Param.ts +69 -72
  1040. package/src/unstable/cli/Primitive.ts +1 -1
  1041. package/src/unstable/cli/Prompt.ts +6 -14
  1042. package/src/unstable/cli/index.ts +205 -6
  1043. package/src/unstable/cli/internal/parser.ts +0 -1
  1044. package/src/unstable/cluster/ClusterCron.ts +1 -1
  1045. package/src/unstable/cluster/ClusterSchema.ts +8 -8
  1046. package/src/unstable/cluster/ClusterWorkflowEngine.ts +2 -2
  1047. package/src/unstable/cluster/Entity.ts +0 -1
  1048. package/src/unstable/cluster/EntityProxy.ts +10 -14
  1049. package/src/unstable/cluster/EntityProxyServer.ts +3 -2
  1050. package/src/unstable/cluster/EntityResource.ts +2 -2
  1051. package/src/unstable/cluster/Envelope.ts +1 -1
  1052. package/src/unstable/cluster/HttpRunner.ts +11 -11
  1053. package/src/unstable/cluster/K8sHttpClient.ts +5 -5
  1054. package/src/unstable/cluster/MachineId.ts +1 -1
  1055. package/src/unstable/cluster/MessageStorage.ts +1 -2
  1056. package/src/unstable/cluster/Runner.ts +1 -1
  1057. package/src/unstable/cluster/RunnerHealth.ts +2 -2
  1058. package/src/unstable/cluster/RunnerServer.ts +4 -4
  1059. package/src/unstable/cluster/Runners.ts +3 -3
  1060. package/src/unstable/cluster/ShardId.ts +7 -5
  1061. package/src/unstable/cluster/Sharding.ts +1 -1
  1062. package/src/unstable/cluster/ShardingConfig.ts +2 -2
  1063. package/src/unstable/cluster/SingleRunner.ts +1 -1
  1064. package/src/unstable/cluster/Snowflake.ts +10 -9
  1065. package/src/unstable/cluster/SocketRunner.ts +2 -2
  1066. package/src/unstable/cluster/SqlMessageStorage.ts +3 -3
  1067. package/src/unstable/cluster/SqlRunnerStorage.ts +3 -3
  1068. package/src/unstable/cluster/TestRunner.ts +1 -1
  1069. package/src/unstable/cluster/index.ts +790 -0
  1070. package/src/unstable/devtools/index.ts +58 -0
  1071. package/src/unstable/encoding/Sse.ts +16 -16
  1072. package/src/unstable/encoding/index.ts +49 -0
  1073. package/src/unstable/eventlog/Event.ts +2 -2
  1074. package/src/unstable/eventlog/EventGroup.ts +2 -2
  1075. package/src/unstable/eventlog/EventLog.ts +6 -7
  1076. package/src/unstable/eventlog/EventLogRemote.ts +2 -2
  1077. package/src/unstable/eventlog/EventLogServer.ts +2 -2
  1078. package/src/unstable/eventlog/EventLogServerEncrypted.ts +2 -2
  1079. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +1 -1
  1080. package/src/unstable/eventlog/EventLogSessionAuth.ts +1 -1
  1081. package/src/unstable/eventlog/index.ts +240 -0
  1082. package/src/unstable/http/Cookies.ts +6 -6
  1083. package/src/unstable/http/Etag.ts +2 -2
  1084. package/src/unstable/http/Headers.ts +2 -2
  1085. package/src/unstable/http/HttpClient.ts +5 -6
  1086. package/src/unstable/http/HttpClientError.ts +1 -1
  1087. package/src/unstable/http/HttpClientRequest.ts +4 -4
  1088. package/src/unstable/http/HttpClientResponse.ts +6 -6
  1089. package/src/unstable/http/HttpEffect.ts +5 -5
  1090. package/src/unstable/http/HttpIncomingMessage.ts +7 -6
  1091. package/src/unstable/http/HttpMethod.ts +4 -2
  1092. package/src/unstable/http/HttpMiddleware.ts +1 -0
  1093. package/src/unstable/http/HttpRouter.ts +23 -25
  1094. package/src/unstable/http/HttpServerError.ts +4 -1
  1095. package/src/unstable/http/HttpServerRequest.ts +15 -15
  1096. package/src/unstable/http/HttpServerRespondable.ts +1 -1
  1097. package/src/unstable/http/HttpServerResponse.ts +5 -4
  1098. package/src/unstable/http/HttpStaticServer.ts +2 -4
  1099. package/src/unstable/http/Multipart.ts +20 -19
  1100. package/src/unstable/http/Template.ts +0 -1
  1101. package/src/unstable/http/Url.ts +17 -17
  1102. package/src/unstable/http/UrlParams.ts +14 -12
  1103. package/src/unstable/http/index.ts +452 -0
  1104. package/src/unstable/httpapi/HttpApiBuilder.ts +0 -1
  1105. package/src/unstable/httpapi/HttpApiClient.ts +0 -1
  1106. package/src/unstable/httpapi/HttpApiMiddleware.ts +4 -2
  1107. package/src/unstable/httpapi/HttpApiScalar.ts +2 -2
  1108. package/src/unstable/httpapi/HttpApiSchema.ts +19 -8
  1109. package/src/unstable/httpapi/HttpApiSecurity.ts +0 -1
  1110. package/src/unstable/httpapi/HttpApiSwagger.ts +0 -2
  1111. package/src/unstable/httpapi/index.ts +310 -25
  1112. package/src/unstable/observability/Otlp.ts +3 -3
  1113. package/src/unstable/observability/OtlpExporter.ts +1 -1
  1114. package/src/unstable/observability/OtlpLogger.ts +3 -2
  1115. package/src/unstable/observability/OtlpMetrics.ts +5 -4
  1116. package/src/unstable/observability/OtlpResource.ts +9 -9
  1117. package/src/unstable/observability/OtlpSerialization.ts +3 -3
  1118. package/src/unstable/observability/OtlpTracer.ts +5 -2
  1119. package/src/unstable/observability/PrometheusMetrics.ts +7 -7
  1120. package/src/unstable/observability/index.ts +158 -2
  1121. package/src/unstable/persistence/KeyValueStore.ts +4 -4
  1122. package/src/unstable/persistence/Persistable.ts +11 -11
  1123. package/src/unstable/persistence/PersistedCache.ts +2 -2
  1124. package/src/unstable/persistence/PersistedQueue.ts +6 -6
  1125. package/src/unstable/persistence/Persistence.ts +2 -1
  1126. package/src/unstable/persistence/RateLimiter.ts +19 -15
  1127. package/src/unstable/persistence/Redis.ts +3 -3
  1128. package/src/unstable/persistence/index.ts +147 -0
  1129. package/src/unstable/process/ChildProcess.ts +42 -42
  1130. package/src/unstable/process/ChildProcessSpawner.ts +10 -10
  1131. package/src/unstable/reactivity/AsyncResult.ts +8 -6
  1132. package/src/unstable/reactivity/Atom.ts +25 -20
  1133. package/src/unstable/reactivity/AtomHttpApi.ts +2 -2
  1134. package/src/unstable/reactivity/AtomRef.ts +2 -2
  1135. package/src/unstable/reactivity/AtomRegistry.ts +17 -17
  1136. package/src/unstable/reactivity/AtomRpc.ts +2 -2
  1137. package/src/unstable/reactivity/Reactivity.ts +2 -3
  1138. package/src/unstable/reactivity/index.ts +167 -0
  1139. package/src/unstable/rpc/Rpc.ts +0 -1
  1140. package/src/unstable/rpc/RpcClient.ts +0 -1
  1141. package/src/unstable/rpc/RpcClientError.ts +2 -2
  1142. package/src/unstable/rpc/RpcMiddleware.ts +2 -2
  1143. package/src/unstable/rpc/RpcWorker.ts +0 -1
  1144. package/src/unstable/rpc/Utils.ts +2 -0
  1145. package/src/unstable/rpc/index.ts +272 -0
  1146. package/src/unstable/schema/Model.ts +98 -10
  1147. package/src/unstable/schema/VariantSchema.ts +1 -4
  1148. package/src/unstable/schema/index.ts +37 -0
  1149. package/src/unstable/socket/Socket.ts +5 -4
  1150. package/src/unstable/socket/index.ts +44 -0
  1151. package/src/unstable/sql/Migrator.ts +5 -5
  1152. package/src/unstable/sql/SqlClient.ts +4 -0
  1153. package/src/unstable/sql/SqlConnection.ts +3 -3
  1154. package/src/unstable/sql/SqlError.ts +18 -0
  1155. package/src/unstable/sql/SqlModel.ts +0 -1
  1156. package/src/unstable/sql/SqlSchema.ts +5 -5
  1157. package/src/unstable/sql/SqlStream.ts +1 -0
  1158. package/src/unstable/sql/Statement.ts +27 -24
  1159. package/src/unstable/sql/index.ts +178 -0
  1160. package/src/unstable/workers/Transferable.ts +7 -7
  1161. package/src/unstable/workers/Worker.ts +1 -0
  1162. package/src/unstable/workers/WorkerError.ts +8 -8
  1163. package/src/unstable/workers/index.ts +80 -0
  1164. package/src/unstable/workflow/Activity.ts +7 -7
  1165. package/src/unstable/workflow/DurableClock.ts +2 -2
  1166. package/src/unstable/workflow/DurableDeferred.ts +22 -20
  1167. package/src/unstable/workflow/DurableQueue.ts +7 -5
  1168. package/src/unstable/workflow/Workflow.ts +12 -10
  1169. package/src/unstable/workflow/WorkflowEngine.ts +4 -4
  1170. package/src/unstable/workflow/WorkflowProxy.ts +10 -12
  1171. package/src/unstable/workflow/WorkflowProxyServer.ts +3 -2
  1172. package/src/unstable/workflow/index.ts +160 -0
package/dist/Stream.d.ts CHANGED
@@ -54,7 +54,7 @@ import type { Severity } from "./LogLevel.ts";
54
54
  import * as Option from "./Option.ts";
55
55
  import type { Pipeable } from "./Pipeable.ts";
56
56
  import type { Predicate, Refinement } from "./Predicate.ts";
57
- import type * as PubSub from "./PubSub.ts";
57
+ import * as PubSub from "./PubSub.ts";
58
58
  import * as Pull from "./Pull.ts";
59
59
  import * as Queue from "./Queue.ts";
60
60
  import * as Result from "./Result.ts";
@@ -63,7 +63,7 @@ import * as Scope from "./Scope.ts";
63
63
  import * as Sink from "./Sink.ts";
64
64
  import type * as Take from "./Take.ts";
65
65
  import type { ParentSpan, SpanOptions } from "./Tracer.ts";
66
- import type { Covariant, ExcludeReason, ExcludeTag, ExtractReason, ExtractTag, NarrowReason, NoInfer, OmitReason, ReasonTags, Tags, unassigned } from "./Types.ts";
66
+ import type { Covariant, ExcludeReason, ExcludeTag, ExtractReason, ExtractTag, NarrowReason, NoInfer, OmitReason, ReasonTags, Tags, TupleOf, unassigned } from "./Types.ts";
67
67
  import type * as Unify from "./Unify.ts";
68
68
  /**
69
69
  * String literal type used as the unique brand for `Stream` values.
@@ -107,7 +107,7 @@ export declare const TypeId: TypeId;
107
107
  * // 6
108
108
  * ```
109
109
  *
110
- * @category Models
110
+ * @category models
111
111
  * @since 2.0.0
112
112
  */
113
113
  export interface Stream<out A, out E = never, out R = never> extends Variance<A, E, R>, Pipeable {
@@ -119,7 +119,7 @@ export interface Stream<out A, out E = never, out R = never> extends Variance<A,
119
119
  /**
120
120
  * Type-level unification hook for Stream within the Effect type system.
121
121
  *
122
- * @category Models
122
+ * @category models
123
123
  * @since 2.0.0
124
124
  */
125
125
  export interface StreamUnify<A extends {
@@ -130,7 +130,7 @@ export interface StreamUnify<A extends {
130
130
  /**
131
131
  * Type-level marker that excludes Stream from unification.
132
132
  *
133
- * @category Models
133
+ * @category models
134
134
  * @since 2.0.0
135
135
  */
136
136
  export interface StreamUnifyIgnore {
@@ -142,11 +142,10 @@ export interface StreamUnifyIgnore {
142
142
  * **Example** (Using the stream type lambda)
143
143
  *
144
144
  * ```ts
145
- * import type { Kind } from "effect/HKT"
146
- * import type { StreamTypeLambda } from "effect/Stream"
145
+ * import type { HKT, Stream } from "effect"
147
146
  *
148
147
  * // Create a Stream type using the type lambda
149
- * type NumberStream = Kind<StreamTypeLambda, never, string, never, number>
148
+ * type NumberStream = HKT.Kind<Stream.StreamTypeLambda, never, string, never, number>
150
149
  * // Equivalent to: Stream<number, string, never>
151
150
  * ```
152
151
  *
@@ -162,7 +161,7 @@ export interface StreamTypeLambda extends TypeLambda {
162
161
  * The emitted value `A`, error `E`, and service requirement `R` type
163
162
  * parameters are covariant.
164
163
  *
165
- * @category Models
164
+ * @category models
166
165
  * @since 2.0.0
167
166
  */
168
167
  export interface Variance<out A, out E, out R> {
@@ -174,8 +173,8 @@ export interface Variance<out A, out E, out R> {
174
173
  *
175
174
  * `_A`, `_E`, and `_R` are covariant markers.
176
175
  *
177
- * @category Models
178
- * @since 2.0.0
176
+ * @category models
177
+ * @since 3.4.0
179
178
  */
180
179
  export interface VarianceStruct<out A, out E, out R> {
181
180
  readonly _A: Covariant<A>;
@@ -219,10 +218,6 @@ export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _
219
218
  /**
220
219
  * Extract the services type from a Stream type.
221
220
  *
222
- * **Previously Known As:**
223
- *
224
- * This type alias was named `Context` in Effect 3.x.
225
- *
226
221
  * **Example** (Extracting the services type from a Stream type)
227
222
  *
228
223
  * ```ts
@@ -237,7 +232,7 @@ export type Error<T extends Stream<any, any, any>> = [T] extends [Stream<infer _
237
232
  * ```
238
233
  *
239
234
  * @category Type-Level
240
- * @since 3.4.0
235
+ * @since 4.0.0
241
236
  */
242
237
  export type Services<T extends Stream<any, any, any>> = [T] extends [Stream<infer _A, infer _E, infer _R>] ? _R : never;
243
238
  /**
@@ -261,8 +256,8 @@ export type Services<T extends Stream<any, any, any>> = [T] extends [Stream<infe
261
256
  * Effect.runPromise(program)
262
257
  * ```
263
258
  *
264
- * @category Guards
265
- * @since 2.0.0
259
+ * @category guards
260
+ * @since 4.0.0
266
261
  */
267
262
  export declare const isStream: (u: unknown) => u is Stream<unknown, unknown, unknown>;
268
263
  /**
@@ -288,14 +283,8 @@ export declare const DefaultChunkSize: number;
288
283
  /**
289
284
  * Describes how merged streams decide when to halt.
290
285
  *
291
- * **Previously Known As**
292
- *
293
- * This API replaces the following from Effect 3.x:
294
- *
295
- * - `StreamHaltStrategy.HaltStrategy`
296
- *
297
- * @category Models
298
- * @since 2.0.0
286
+ * @category models
287
+ * @since 4.0.0
299
288
  */
300
289
  export type HaltStrategy = Channel.HaltStrategy;
301
290
  /**
@@ -316,7 +305,7 @@ export type HaltStrategy = Channel.HaltStrategy;
316
305
  * // Output: [ 1, 2, 3 ]
317
306
  * ```
318
307
  *
319
- * @category Constructors
308
+ * @category constructors
320
309
  * @since 2.0.0
321
310
  */
322
311
  export declare const fromChannel: <Arr extends Arr.NonEmptyReadonlyArray<any>, E, R>(channel: Channel.Channel<Arr, E, void, unknown, unknown, unknown, R>) => Stream<Arr extends Arr.NonEmptyReadonlyArray<infer A> ? A : never, E, R>;
@@ -339,7 +328,7 @@ export declare const fromChannel: <Arr extends Arr.NonEmptyReadonlyArray<any>, E
339
328
  * // Output: [ 42 ]
340
329
  * ```
341
330
  *
342
- * @category Constructors
331
+ * @category constructors
343
332
  * @since 2.0.0
344
333
  */
345
334
  export declare const fromEffect: <A, E, R>(effect: Effect.Effect<A, E, R>) => Stream<A, E, R>;
@@ -349,7 +338,7 @@ export declare const fromEffect: <A, E, R>(effect: Effect.Effect<A, E, R>) => St
349
338
  * **Example** (Accessing a service as a stream)
350
339
  *
351
340
  * ```ts
352
- * import { Effect, Context, Stream } from "effect"
341
+ * import { Context, Effect, Stream } from "effect"
353
342
  *
354
343
  * class Greeter extends Context.Service<Greeter, {
355
344
  * readonly greet: (name: string) => string
@@ -383,7 +372,7 @@ export declare const service: <I, S>(service: Context.Key<I, S>) => Stream<S, ne
383
372
  * **Example** (Accessing an optional service as a stream)
384
373
  *
385
374
  * ```ts
386
- * import { Effect, Option, Context, Stream } from "effect"
375
+ * import { Context, Effect, Option, Stream } from "effect"
387
376
  *
388
377
  * class Greeter extends Context.Service<Greeter, {
389
378
  * readonly greet: (name: string) => string
@@ -433,19 +422,13 @@ export declare const serviceOption: <I, S>(service: Context.Key<I, S>) => Stream
433
422
  * // Output: Draining side effect
434
423
  * ```
435
424
  *
436
- * @category Constructors
425
+ * @category constructors
437
426
  * @since 4.0.0
438
427
  */
439
428
  export declare const fromEffectDrain: <A, E, R>(effect: Effect.Effect<A, E, R>) => Stream<never, E, R>;
440
429
  /**
441
430
  * Creates a stream from an effect producing a value of type `A` which repeats forever.
442
431
  *
443
- * **Previously Known As**
444
- *
445
- * This API replaces the following from Effect 3.x:
446
- *
447
- * - `Stream.repeatEffect`
448
- *
449
432
  * **Example** (Repeating an effect forever)
450
433
  *
451
434
  * ```ts
@@ -463,7 +446,7 @@ export declare const fromEffectDrain: <A, E, R>(effect: Effect.Effect<A, E, R>)
463
446
  * // Output: [ 3891571149, 4239494205, 2352981603, 2339111046, 1488052210 ]
464
447
  * ```
465
448
  *
466
- * @category Constructors
449
+ * @category constructors
467
450
  * @since 4.0.0
468
451
  */
469
452
  export declare const fromEffectRepeat: <A, E, R>(effect: Effect.Effect<A, E, R>) => Stream<A, Pull.ExcludeDone<E>, R>;
@@ -471,12 +454,6 @@ export declare const fromEffectRepeat: <A, E, R>(effect: Effect.Effect<A, E, R>)
471
454
  * Creates a stream from an effect producing a value of type `A`, which is
472
455
  * repeated using the specified schedule.
473
456
  *
474
- * **Previously Known As**
475
- *
476
- * This API replaces the following from Effect 3.x:
477
- *
478
- * - `Stream.repeatEffectWithSchedule`
479
- *
480
457
  * **Example** (Repeating an effect with a schedule)
481
458
  *
482
459
  * ```ts
@@ -495,8 +472,8 @@ export declare const fromEffectRepeat: <A, E, R>(effect: Effect.Effect<A, E, R>)
495
472
  * // Output: [ "ping", "ping", "ping" ]
496
473
  * ```
497
474
  *
498
- * @category Constructors
499
- * @since 2.0.0
475
+ * @category constructors
476
+ * @since 4.0.0
500
477
  */
501
478
  export declare const fromEffectSchedule: <A, E, R, X, AS extends A, ES, RS>(effect: Effect.Effect<A, E, R>, schedule: Schedule.Schedule<X, AS, ES, RS>) => Stream<A, E | ES, R | RS>;
502
479
  /**
@@ -520,7 +497,7 @@ export declare const fromEffectSchedule: <A, E, R, X, AS extends A, ES, RS>(effe
520
497
  * // Output: [ undefined, undefined, undefined ]
521
498
  * ```
522
499
  *
523
- * @category Constructors
500
+ * @category constructors
524
501
  * @since 2.0.0
525
502
  */
526
503
  export declare const tick: (interval: Duration.Input) => Stream<void>;
@@ -549,7 +526,7 @@ export declare const tick: (interval: Duration.Input) => Stream<void>;
549
526
  * // Output: [1, 2, 3]
550
527
  * ```
551
528
  *
552
- * @category Constructors
529
+ * @category constructors
553
530
  * @since 2.0.0
554
531
  */
555
532
  export declare const fromPull: <A, E, R, EX, RX>(pull: Effect.Effect<Pull.Pull<Arr.NonEmptyReadonlyArray<A>, E, void, R>, EX, RX>) => Stream<A, Pull.ExcludeDone<E> | EX, R | RX>;
@@ -574,7 +551,7 @@ export declare const fromPull: <A, E, R, EX, RX>(pull: Effect.Effect<Pull.Pull<A
574
551
  * // Output: [ 1, 2, 3 ]
575
552
  * ```
576
553
  *
577
- * @category Constructors
554
+ * @category constructors
578
555
  * @since 4.0.0
579
556
  */
580
557
  export declare const transformPull: <A, E, R, B, E2, R2, EX, RX>(self: Stream<A, E, R>, f: (pull: Pull.Pull<Arr.NonEmptyReadonlyArray<A>, E, void>, scope: Scope.Scope) => Effect.Effect<Pull.Pull<Arr.NonEmptyReadonlyArray<B>, E2, void, R2>, EX, RX>) => Stream<B, EX | Pull.ExcludeDone<E2>, R | R2 | RX>;
@@ -610,7 +587,7 @@ export declare const transformPull: <A, E, R, B, E2, R2, EX, RX>(self: Stream<A,
610
587
  * // Releasing scope
611
588
  * ```
612
589
  *
613
- * @category Constructors
590
+ * @category constructors
614
591
  * @since 4.0.0
615
592
  */
616
593
  export declare const transformPullBracket: <A, E, R, B, E2, R2, EX, RX>(self: Stream<A, E, R>, f: (pull: Pull.Pull<Arr.NonEmptyReadonlyArray<A>, E, void, R>, scope: Scope.Scope, forkedScope: Scope.Scope) => Effect.Effect<Pull.Pull<Arr.NonEmptyReadonlyArray<B>, E2, void, R2>, EX, RX>) => Stream<B, EX | Pull.ExcludeDone<E2>, R | R2 | RX>;
@@ -633,7 +610,7 @@ export declare const transformPullBracket: <A, E, R, B, E2, R2, EX, RX>(self: St
633
610
  * // Output: [ 1, 2, 3 ]
634
611
  * ```
635
612
  *
636
- * @category Constructors
613
+ * @category constructors
637
614
  * @since 2.0.0
638
615
  */
639
616
  export declare const toChannel: <A, E, R>(stream: Stream<A, E, R>) => Channel.Channel<Arr.NonEmptyReadonlyArray<A>, E, void, unknown, unknown, unknown, R>;
@@ -647,15 +624,6 @@ export declare const toChannel: <A, E, R>(stream: Stream<A, E, R>) => Channel.Ch
647
624
  * You can customize the buffer size and strategy by passing an object as the
648
625
  * second argument with the `bufferSize` and `strategy` fields.
649
626
  *
650
- * **Previously Known As**
651
- *
652
- * This API replaces the following from Effect 3.x:
653
- *
654
- * - `Stream.async`
655
- * - `Stream.asyncEffect`
656
- * - `Stream.asyncPush`
657
- * - `Stream.asyncScoped`
658
- *
659
627
  * **Example** (Creating a stream from a callback that can emit values into a queue)
660
628
  *
661
629
  * ```ts
@@ -681,8 +649,8 @@ export declare const toChannel: <A, E, R>(stream: Stream<A, E, R>) => Channel.Ch
681
649
  * Effect.runPromise(program)
682
650
  * ```
683
651
  *
684
- * @category Constructors
685
- * @since 2.0.0
652
+ * @category constructors
653
+ * @since 4.0.0
686
654
  */
687
655
  export declare const callback: <A, E = never, R = never>(f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>, options?: {
688
656
  readonly bufferSize?: number | undefined;
@@ -705,8 +673,8 @@ export declare const callback: <A, E = never, R = never>(f: (queue: Queue.Queue<
705
673
  * // []
706
674
  * ```
707
675
  *
708
- * @category Constructors
709
- * @since 4.0.0
676
+ * @category constructors
677
+ * @since 2.0.0
710
678
  */
711
679
  export declare const empty: Stream<never>;
712
680
  /**
@@ -726,7 +694,7 @@ export declare const empty: Stream<never>;
726
694
  * // [ 3 ]
727
695
  * ```
728
696
  *
729
- * @category Constructors
697
+ * @category constructors
730
698
  * @since 2.0.0
731
699
  */
732
700
  export declare const succeed: <A>(value: A) => Stream<A>;
@@ -748,7 +716,7 @@ export declare const succeed: <A>(value: A) => Stream<A>;
748
716
  * Effect.runPromise(program)
749
717
  * ```
750
718
  *
751
- * @category Constructors
719
+ * @category constructors
752
720
  * @since 2.0.0
753
721
  */
754
722
  export declare const make: <const As extends ReadonlyArray<any>>(...values: As) => Stream<As[number]>;
@@ -771,7 +739,7 @@ export declare const make: <const As extends ReadonlyArray<any>>(...values: As)
771
739
  * // Output: [ 3 ]
772
740
  * ```
773
741
  *
774
- * @category Constructors
742
+ * @category constructors
775
743
  * @since 2.0.0
776
744
  */
777
745
  export declare const sync: <A>(evaluate: LazyArg<A>) => Stream<A>;
@@ -794,7 +762,7 @@ export declare const sync: <A>(evaluate: LazyArg<A>) => Stream<A>;
794
762
  * // Output: [ 1, 2, 3 ]
795
763
  * ```
796
764
  *
797
- * @category Constructors
765
+ * @category constructors
798
766
  * @since 2.0.0
799
767
  */
800
768
  export declare const suspend: <A, E, R>(stream: LazyArg<Stream<A, E, R>>) => Stream<A, E, R>;
@@ -816,7 +784,7 @@ export declare const suspend: <A, E, R>(stream: LazyArg<Stream<A, E, R>>) => Str
816
784
  * Effect.runPromise(program)
817
785
  * ```
818
786
  *
819
- * @category Constructors
787
+ * @category constructors
820
788
  * @since 2.0.0
821
789
  */
822
790
  export declare const fail: <E>(error: E) => Stream<never, E>;
@@ -840,7 +808,7 @@ export declare const fail: <E>(error: E) => Stream<never, E>;
840
808
  * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Uh oh!' } }
841
809
  * ```
842
810
  *
843
- * @category Constructors
811
+ * @category constructors
844
812
  * @since 2.0.0
845
813
  */
846
814
  export declare const failSync: <E>(evaluate: LazyArg<E>) => Stream<never, E>;
@@ -865,7 +833,7 @@ export declare const failSync: <E>(evaluate: LazyArg<E>) => Stream<never, E>;
865
833
  * Effect.runPromise(program)
866
834
  * ```
867
835
  *
868
- * @category Constructors
836
+ * @category constructors
869
837
  * @since 2.0.0
870
838
  */
871
839
  export declare const failCause: <E>(cause: Cause.Cause<E>) => Stream<never, E>;
@@ -897,7 +865,7 @@ export declare const failCause: <E>(cause: Cause.Cause<E>) => Stream<never, E>;
897
865
  * // Output: Exit.Failure(Error: Boom)
898
866
  * ```
899
867
  *
900
- * @category Constructors
868
+ * @category constructors
901
869
  * @since 2.0.0
902
870
  */
903
871
  export declare const die: (defect: unknown) => Stream<never>;
@@ -923,7 +891,7 @@ export declare const die: (defect: unknown) => Stream<never>;
923
891
  * // { _id: 'Exit', _tag: 'Failure', cause: { _id: 'Cause', _tag: 'Fail', failure: 'Connection timeout after retries' } }
924
892
  * ```
925
893
  *
926
- * @category Constructors
894
+ * @category constructors
927
895
  * @since 2.0.0
928
896
  */
929
897
  export declare const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => Stream<never, E>;
@@ -954,7 +922,7 @@ export declare const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => St
954
922
  * // Output: [ 1, 2, 3 ]
955
923
  * ```
956
924
  *
957
- * @category Constructors
925
+ * @category constructors
958
926
  * @since 2.0.0
959
927
  */
960
928
  export declare const fromIteratorSucceed: <A>(iterator: IterableIterator<A>, maxChunkSize?: number) => Stream<A>;
@@ -982,7 +950,7 @@ export declare const fromIteratorSucceed: <A>(iterator: IterableIterator<A>, max
982
950
  * // Output: [ 1, 2, 3 ]
983
951
  * ```
984
952
  *
985
- * @category Constructors
953
+ * @category constructors
986
954
  * @since 2.0.0
987
955
  */
988
956
  export declare const fromIterable: <A>(iterable: Iterable<A>, options?: {
@@ -994,7 +962,7 @@ export declare const fromIterable: <A>(iterable: Iterable<A>, options?: {
994
962
  * **Example** (Creating a stream from an iterable effect)
995
963
  *
996
964
  * ```ts
997
- * import { Console, Effect, Context, Stream } from "effect"
965
+ * import { Console, Context, Effect, Stream } from "effect"
998
966
  *
999
967
  * class UserRepo extends Context.Service<UserRepo, {
1000
968
  * readonly list: Effect.Effect<ReadonlyArray<string>>
@@ -1020,19 +988,13 @@ export declare const fromIterable: <A>(iterable: Iterable<A>, options?: {
1020
988
  * // Output: [ "user1", "user2" ]
1021
989
  * ```
1022
990
  *
1023
- * @category Constructors
991
+ * @category constructors
1024
992
  * @since 2.0.0
1025
993
  */
1026
994
  export declare const fromIterableEffect: <A, E, R>(iterable: Effect.Effect<Iterable<A>, E, R>) => Stream<A, E, R>;
1027
995
  /**
1028
996
  * Creates a stream by repeatedly running an effect that yields an iterable of values.
1029
997
  *
1030
- * **Previously Known As**
1031
- *
1032
- * This API replaces the following from Effect 3.x:
1033
- *
1034
- * - `Stream.repeatEffectChunk`
1035
- *
1036
998
  * **Example** (Repeating an iterable effect)
1037
999
  *
1038
1000
  * ```ts
@@ -1050,19 +1012,13 @@ export declare const fromIterableEffect: <A, E, R>(iterable: Effect.Effect<Itera
1050
1012
  * // Output: [ 1, 2, 1, 2, 1 ]
1051
1013
  * ```
1052
1014
  *
1053
- * @category Constructors
1015
+ * @category constructors
1054
1016
  * @since 4.0.0
1055
1017
  */
1056
1018
  export declare const fromIterableEffectRepeat: <A, E, R>(iterable: Effect.Effect<Iterable<A>, E, R>) => Stream<A, Pull.ExcludeDone<E>, R>;
1057
1019
  /**
1058
1020
  * Creates a stream from an array of values.
1059
1021
  *
1060
- * **Previously Known As**
1061
- *
1062
- * This API replaces the following from Effect 3.x:
1063
- *
1064
- * - `Stream.fromChunk`
1065
- *
1066
1022
  * **Example** (Creating a stream from an array of values)
1067
1023
  *
1068
1024
  * ```ts
@@ -1078,7 +1034,7 @@ export declare const fromIterableEffectRepeat: <A, E, R>(iterable: Effect.Effect
1078
1034
  * // Output: [ 1, 2, 3 ]
1079
1035
  * ```
1080
1036
  *
1081
- * @category Constructors
1037
+ * @category constructors
1082
1038
  * @since 4.0.0
1083
1039
  */
1084
1040
  export declare const fromArray: <A>(array: ReadonlyArray<A>) => Stream<A>;
@@ -1100,19 +1056,13 @@ export declare const fromArray: <A>(array: ReadonlyArray<A>) => Stream<A>;
1100
1056
  * // Output: [ "Ada", "Grace" ]
1101
1057
  * ```
1102
1058
  *
1103
- * @category Constructors
1059
+ * @category constructors
1104
1060
  * @since 4.0.0
1105
1061
  */
1106
1062
  export declare const fromArrayEffect: <A, E, R>(effect: Effect.Effect<ReadonlyArray<A>, E, R>) => Stream<A, Pull.ExcludeDone<E>, R>;
1107
1063
  /**
1108
1064
  * Creates a stream from an arbitrary number of arrays.
1109
1065
  *
1110
- * **Previously Known As**
1111
- *
1112
- * This API replaces the following from Effect 3.x:
1113
- *
1114
- * - `Stream.fromChunks`
1115
- *
1116
1066
  * **Example** (Creating a stream from an arbitrary number of arrays)
1117
1067
  *
1118
1068
  * ```ts
@@ -1128,7 +1078,7 @@ export declare const fromArrayEffect: <A, E, R>(effect: Effect.Effect<ReadonlyAr
1128
1078
  * // Output: [ 1, 2, 3, 4 ]
1129
1079
  * ```
1130
1080
  *
1131
- * @category Constructors
1081
+ * @category constructors
1132
1082
  * @since 4.0.0
1133
1083
  */
1134
1084
  export declare const fromArrays: <Arr extends ReadonlyArray<ReadonlyArray<any>>>(...arrays: Arr) => Stream<Arr[number][number]>;
@@ -1159,8 +1109,8 @@ export declare const fromArrays: <Arr extends ReadonlyArray<ReadonlyArray<any>>>
1159
1109
  * // Output: [ 1, 2, 3 ]
1160
1110
  * ```
1161
1111
  *
1162
- * @category Constructors
1163
- * @since 4.0.0
1112
+ * @category constructors
1113
+ * @since 2.0.0
1164
1114
  */
1165
1115
  export declare const fromQueue: <A, E>(queue: Queue.Dequeue<A, E>) => Stream<A, Exclude<E, Cause.Done>>;
1166
1116
  /**
@@ -1192,8 +1142,8 @@ export declare const fromQueue: <A, E>(queue: Queue.Dequeue<A, E>) => Stream<A,
1192
1142
  * // Output: [ 1, 2, 3 ]
1193
1143
  * ```
1194
1144
  *
1195
- * @category Constructors
1196
- * @since 4.0.0
1145
+ * @category constructors
1146
+ * @since 2.0.0
1197
1147
  */
1198
1148
  export declare const fromPubSub: <A>(pubsub: PubSub.PubSub<A>) => Stream<A>;
1199
1149
  /**
@@ -1223,7 +1173,7 @@ export declare const fromPubSub: <A>(pubsub: PubSub.PubSub<A>) => Stream<A>;
1223
1173
  * // Output: [ 1, 2 ]
1224
1174
  * ```
1225
1175
  *
1226
- * @category Constructors
1176
+ * @category constructors
1227
1177
  * @since 4.0.0
1228
1178
  */
1229
1179
  export declare const fromPubSubTake: <A, E>(pubsub: PubSub.PubSub<Take.Take<A, E>>) => Stream<A, E>;
@@ -1263,7 +1213,7 @@ export declare const fromPubSubTake: <A, E>(pubsub: PubSub.PubSub<Take.Take<A, E
1263
1213
  * // Output: [ 1, 2, 3 ]
1264
1214
  * ```
1265
1215
  *
1266
- * @category Constructors
1216
+ * @category constructors
1267
1217
  * @since 2.0.0
1268
1218
  */
1269
1219
  export declare const fromReadableStream: <A, E>(options: {
@@ -1296,7 +1246,7 @@ export declare const fromReadableStream: <A, E>(options: {
1296
1246
  * // [ 1, 2, 3 ]
1297
1247
  * ```
1298
1248
  *
1299
- * @category Constructors
1249
+ * @category constructors
1300
1250
  * @since 2.0.0
1301
1251
  */
1302
1252
  export declare const fromAsyncIterable: <A, E>(iterable: AsyncIterable<A>, onError: (error: unknown) => E) => Stream<A, E>;
@@ -1322,7 +1272,7 @@ export declare const fromAsyncIterable: <A, E>(iterable: AsyncIterable<A>, onErr
1322
1272
  * // Output: [ 0, 1, 2 ]
1323
1273
  * ```
1324
1274
  *
1325
- * @category Constructors
1275
+ * @category constructors
1326
1276
  * @since 2.0.0
1327
1277
  */
1328
1278
  export declare const fromSchedule: <O, E, R>(schedule: Schedule.Schedule<O, unknown, E, R>) => Stream<O, E, R>;
@@ -1353,14 +1303,14 @@ export declare const fromSchedule: <O, E, R>(schedule: Schedule.Schedule<O, unkn
1353
1303
  * // Output: [ 1, 2 ]
1354
1304
  * ```
1355
1305
  *
1356
- * @category Constructors
1306
+ * @category constructors
1357
1307
  * @since 4.0.0
1358
1308
  */
1359
1309
  export declare const fromSubscription: <A>(pubsub: PubSub.Subscription<A>) => Stream<A>;
1360
1310
  /**
1361
1311
  * Interface representing an event listener target.
1362
1312
  *
1363
- * @category Models
1313
+ * @category models
1364
1314
  * @since 3.4.0
1365
1315
  */
1366
1316
  export interface EventListener<A> {
@@ -1404,7 +1354,7 @@ export interface EventListener<A> {
1404
1354
  * // [ 1, 2, 3 ]
1405
1355
  * ```
1406
1356
  *
1407
- * @category Constructors
1357
+ * @category constructors
1408
1358
  * @since 3.1.0
1409
1359
  */
1410
1360
  export declare const fromEventListener: <A = unknown>(target: EventListener<A>, type: string, options?: boolean | {
@@ -1435,7 +1385,7 @@ export declare const fromEventListener: <A = unknown>(target: EventListener<A>,
1435
1385
  * // Output: [ 1, 2, 3, 4, 5 ]
1436
1386
  * ```
1437
1387
  *
1438
- * @category Constructors
1388
+ * @category constructors
1439
1389
  * @since 2.0.0
1440
1390
  */
1441
1391
  export declare const unfold: <S, A, E, R>(s: S, f: (s: S) => Effect.Effect<readonly [A, S] | undefined, E, R>) => Stream<A, E, R>;
@@ -1447,8 +1397,7 @@ export declare const unfold: <S, A, E, R>(s: S, f: (s: S) => Effect.Effect<reado
1447
1397
  * **Example** (Paginating stream state)
1448
1398
  *
1449
1399
  * ```ts
1450
- * import { Console, Effect, Stream } from "effect"
1451
- * import * as Option from "effect/Option"
1400
+ * import { Console, Effect, Option, Stream } from "effect"
1452
1401
  *
1453
1402
  * const stream = Stream.paginate(0, (n: number) =>
1454
1403
  * Effect.succeed(
@@ -1462,7 +1411,7 @@ export declare const unfold: <S, A, E, R>(s: S, f: (s: S) => Effect.Effect<reado
1462
1411
  * // Output: [ 0, 1, 2, 3 ]
1463
1412
  * ```
1464
1413
  *
1465
- * @category Constructors
1414
+ * @category constructors
1466
1415
  * @since 2.0.0
1467
1416
  */
1468
1417
  export declare const paginate: <S, A, E = never, R = never>(s: S, f: (s: S) => Effect.Effect<readonly [ReadonlyArray<A>, Option.Option<S>], E, R>) => Stream<A, E, R>;
@@ -1485,7 +1434,7 @@ export declare const paginate: <S, A, E = never, R = never>(s: S, f: (s: S) => E
1485
1434
  * // Output: [ 1, 2, 3 ]
1486
1435
  * ```
1487
1436
  *
1488
- * @category Constructors
1437
+ * @category constructors
1489
1438
  * @since 2.0.0
1490
1439
  */
1491
1440
  export declare const iterate: <A>(value: A, next: (value: A) => A) => Stream<A>;
@@ -1508,8 +1457,8 @@ export declare const iterate: <A>(value: A, next: (value: A) => A) => Stream<A>;
1508
1457
  * Effect.runPromise(program)
1509
1458
  * // Output: [ 1, 2, 3, 4, 5 ]
1510
1459
  * ```
1511
- * @category Constructors
1512
- * @since 4.0.0
1460
+ * @category constructors
1461
+ * @since 2.0.0
1513
1462
  */
1514
1463
  export declare const range: (min: number, max: number, chunkSize?: number) => Stream<number>;
1515
1464
  /**
@@ -1529,8 +1478,8 @@ export declare const range: (min: number, max: number, chunkSize?: number) => St
1529
1478
  * // []
1530
1479
  * ```
1531
1480
  *
1532
- * @category Constructors
1533
- * @since 4.0.0
1481
+ * @category constructors
1482
+ * @since 2.0.0
1534
1483
  */
1535
1484
  export declare const never: Stream<never>;
1536
1485
  /**
@@ -1552,7 +1501,7 @@ export declare const never: Stream<never>;
1552
1501
  * // [1, 2, 3]
1553
1502
  * ```
1554
1503
  *
1555
- * @category Constructors
1504
+ * @category constructors
1556
1505
  * @since 2.0.0
1557
1506
  */
1558
1507
  export declare const unwrap: <A, E2, R2, E, R>(effect: Effect.Effect<Stream<A, E2, R2>, E, R>) => Stream<A, E | E2, R2 | Exclude<R, Scope.Scope>>;
@@ -1580,7 +1529,7 @@ export declare const unwrap: <A, E2, R2, E, R>(effect: Effect.Effect<Stream<A, E
1580
1529
  * // [ "resource" ]
1581
1530
  * ```
1582
1531
  *
1583
- * @category Constructors
1532
+ * @category constructors
1584
1533
  * @since 2.0.0
1585
1534
  */
1586
1535
  export declare const scoped: <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Exclude<R, Scope.Scope>>;
@@ -1601,7 +1550,7 @@ export declare const scoped: <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Ex
1601
1550
  * // [ 1, 3, 5 ]
1602
1551
  * ```
1603
1552
  *
1604
- * @category Mapping
1553
+ * @category mapping
1605
1554
  * @since 2.0.0
1606
1555
  */
1607
1556
  export declare const map: {
@@ -1622,7 +1571,7 @@ export declare const map: {
1622
1571
  * // [ 1, 3, 5 ]
1623
1572
  * ```
1624
1573
  *
1625
- * @category Mapping
1574
+ * @category mapping
1626
1575
  * @since 2.0.0
1627
1576
  */
1628
1577
  <A, B>(f: (a: A, i: number) => B): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>;
@@ -1643,7 +1592,7 @@ export declare const map: {
1643
1592
  * // [ 1, 3, 5 ]
1644
1593
  * ```
1645
1594
  *
1646
- * @category Mapping
1595
+ * @category mapping
1647
1596
  * @since 2.0.0
1648
1597
  */
1649
1598
  <A, E, R, B>(self: Stream<A, E, R>, f: (a: A, i: number) => B): Stream<B, E, R>;
@@ -1681,7 +1630,7 @@ export declare const map: {
1681
1630
  * // Output: [ "error: boom" ]
1682
1631
  * ```
1683
1632
  *
1684
- * @category Mapping
1633
+ * @category mapping
1685
1634
  * @since 2.0.0
1686
1635
  */
1687
1636
  export declare const mapBoth: {
@@ -1718,7 +1667,7 @@ export declare const mapBoth: {
1718
1667
  * // Output: [ "error: boom" ]
1719
1668
  * ```
1720
1669
  *
1721
- * @category Mapping
1670
+ * @category mapping
1722
1671
  * @since 2.0.0
1723
1672
  */
1724
1673
  <E, E2, A, A2>(options: {
@@ -1758,7 +1707,7 @@ export declare const mapBoth: {
1758
1707
  * // Output: [ "error: boom" ]
1759
1708
  * ```
1760
1709
  *
1761
- * @category Mapping
1710
+ * @category mapping
1762
1711
  * @since 2.0.0
1763
1712
  */
1764
1713
  <A, E, R, E2, A2>(self: Stream<A, E, R>, options: {
@@ -1769,12 +1718,6 @@ export declare const mapBoth: {
1769
1718
  /**
1770
1719
  * Transforms each emitted chunk using the provided function, which receives the chunk and its index.
1771
1720
  *
1772
- * **Previously Known As**
1773
- *
1774
- * This API replaces the following from Effect 3.x:
1775
- *
1776
- * - `Stream.mapChunks`
1777
- *
1778
1721
  * **Example** (Mapping stream chunks)
1779
1722
  *
1780
1723
  * ```ts
@@ -1793,19 +1736,13 @@ export declare const mapBoth: {
1793
1736
  * // Output: [ 1, 2, 4, 5 ]
1794
1737
  * ```
1795
1738
  *
1796
- * @category Mapping
1797
- * @since 2.0.0
1739
+ * @category mapping
1740
+ * @since 4.0.0
1798
1741
  */
1799
1742
  export declare const mapArray: {
1800
1743
  /**
1801
1744
  * Transforms each emitted chunk using the provided function, which receives the chunk and its index.
1802
1745
  *
1803
- * **Previously Known As**
1804
- *
1805
- * This API replaces the following from Effect 3.x:
1806
- *
1807
- * - `Stream.mapChunks`
1808
- *
1809
1746
  * **Example** (Mapping stream chunks)
1810
1747
  *
1811
1748
  * ```ts
@@ -1824,19 +1761,13 @@ export declare const mapArray: {
1824
1761
  * // Output: [ 1, 2, 4, 5 ]
1825
1762
  * ```
1826
1763
  *
1827
- * @category Mapping
1828
- * @since 2.0.0
1764
+ * @category mapping
1765
+ * @since 4.0.0
1829
1766
  */
1830
1767
  <A, B>(f: (a: Arr.NonEmptyReadonlyArray<A>, i: number) => Arr.NonEmptyReadonlyArray<B>): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>;
1831
1768
  /**
1832
1769
  * Transforms each emitted chunk using the provided function, which receives the chunk and its index.
1833
1770
  *
1834
- * **Previously Known As**
1835
- *
1836
- * This API replaces the following from Effect 3.x:
1837
- *
1838
- * - `Stream.mapChunks`
1839
- *
1840
1771
  * **Example** (Mapping stream chunks)
1841
1772
  *
1842
1773
  * ```ts
@@ -1855,8 +1786,8 @@ export declare const mapArray: {
1855
1786
  * // Output: [ 1, 2, 4, 5 ]
1856
1787
  * ```
1857
1788
  *
1858
- * @category Mapping
1859
- * @since 2.0.0
1789
+ * @category mapping
1790
+ * @since 4.0.0
1860
1791
  */
1861
1792
  <A, E, R, B>(self: Stream<A, E, R>, f: (a: Arr.NonEmptyReadonlyArray<A>, i: number) => Arr.NonEmptyReadonlyArray<B>): Stream<B, E, R>;
1862
1793
  };
@@ -1892,7 +1823,7 @@ export declare const mapArray: {
1892
1823
  * // [2, 4, 6]
1893
1824
  * ```
1894
1825
  *
1895
- * @category Mapping
1826
+ * @category mapping
1896
1827
  * @since 2.0.0
1897
1828
  */
1898
1829
  export declare const mapEffect: {
@@ -1928,7 +1859,7 @@ export declare const mapEffect: {
1928
1859
  * // [2, 4, 6]
1929
1860
  * ```
1930
1861
  *
1931
- * @category Mapping
1862
+ * @category mapping
1932
1863
  * @since 2.0.0
1933
1864
  */
1934
1865
  <A, A2, E2, R2>(f: (a: A, i: number) => Effect.Effect<A2, E2, R2>, options?: {
@@ -1967,7 +1898,7 @@ export declare const mapEffect: {
1967
1898
  * // [2, 4, 6]
1968
1899
  * ```
1969
1900
  *
1970
- * @category Mapping
1901
+ * @category mapping
1971
1902
  * @since 2.0.0
1972
1903
  */
1973
1904
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (a: A, i: number) => Effect.Effect<A2, E2, R2>, options?: {
@@ -1994,7 +1925,7 @@ export declare const mapEffect: {
1994
1925
  * // Output: [1, 2, 3]
1995
1926
  * ```
1996
1927
  *
1997
- * @category Mapping
1928
+ * @category mapping
1998
1929
  * @since 2.0.0
1999
1930
  */
2000
1931
  export declare const flattenEffect: <Arg extends Stream<Effect.Effect<any, any, any>, any, any> | {
@@ -2010,12 +1941,6 @@ export declare const flattenEffect: <Arg extends Stream<Effect.Effect<any, any,
2010
1941
  /**
2011
1942
  * Effectfully maps over non-empty array chunks emitted by the stream.
2012
1943
  *
2013
- * **Previously Known As**
2014
- *
2015
- * This API replaces the following from Effect 3.x:
2016
- *
2017
- * - `Stream.mapChunksEffect`
2018
- *
2019
1944
  * **Example** (Effectfully mapping stream chunks)
2020
1945
  *
2021
1946
  * ```ts
@@ -2036,19 +1961,13 @@ export declare const flattenEffect: <Arg extends Stream<Effect.Effect<any, any,
2036
1961
  * // Output: [1, 2, 13, 14]
2037
1962
  * ```
2038
1963
  *
2039
- * @category Mapping
1964
+ * @category mapping
2040
1965
  * @since 4.0.0
2041
1966
  */
2042
1967
  export declare const mapArrayEffect: {
2043
1968
  /**
2044
1969
  * Effectfully maps over non-empty array chunks emitted by the stream.
2045
1970
  *
2046
- * **Previously Known As**
2047
- *
2048
- * This API replaces the following from Effect 3.x:
2049
- *
2050
- * - `Stream.mapChunksEffect`
2051
- *
2052
1971
  * **Example** (Effectfully mapping stream chunks)
2053
1972
  *
2054
1973
  * ```ts
@@ -2069,19 +1988,13 @@ export declare const mapArrayEffect: {
2069
1988
  * // Output: [1, 2, 13, 14]
2070
1989
  * ```
2071
1990
  *
2072
- * @category Mapping
1991
+ * @category mapping
2073
1992
  * @since 4.0.0
2074
1993
  */
2075
1994
  <A, B, E2, R2>(f: (a: Arr.NonEmptyReadonlyArray<A>, i: number) => Effect.Effect<Arr.NonEmptyReadonlyArray<B>, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<B, E | E2, R | R2>;
2076
1995
  /**
2077
1996
  * Effectfully maps over non-empty array chunks emitted by the stream.
2078
1997
  *
2079
- * **Previously Known As**
2080
- *
2081
- * This API replaces the following from Effect 3.x:
2082
- *
2083
- * - `Stream.mapChunksEffect`
2084
- *
2085
1998
  * **Example** (Effectfully mapping stream chunks)
2086
1999
  *
2087
2000
  * ```ts
@@ -2102,7 +2015,7 @@ export declare const mapArrayEffect: {
2102
2015
  * // Output: [1, 2, 13, 14]
2103
2016
  * ```
2104
2017
  *
2105
- * @category Mapping
2018
+ * @category mapping
2106
2019
  * @since 4.0.0
2107
2020
  */
2108
2021
  <A, E, R, B, E2, R2>(self: Stream<A, E, R>, f: (a: Arr.NonEmptyReadonlyArray<A>, i: number) => Effect.Effect<Arr.NonEmptyReadonlyArray<B>, E2, R2>): Stream<B, E | E2, R | R2>;
@@ -2112,12 +2025,6 @@ export declare const mapArrayEffect: {
2112
2025
  *
2113
2026
  * The stream ends after the first failure, emitting a `Result.fail` value.
2114
2027
  *
2115
- * **Previously Known As:**
2116
- *
2117
- * This API replaces the following from Effect 3.x:
2118
- *
2119
- * - `Stream.either`
2120
- *
2121
2028
  * **Example** (Converting failures to results)
2122
2029
  *
2123
2030
  * ```ts
@@ -2140,7 +2047,7 @@ export declare const mapArrayEffect: {
2140
2047
  * // Output: [ "success: 1", "success: 2", "failure: boom" ]
2141
2048
  * ```
2142
2049
  *
2143
- * @category Error Handling
2050
+ * @category error handling
2144
2051
  * @since 4.0.0
2145
2052
  */
2146
2053
  export declare const result: <A, E, R>(self: Stream<A, E, R>) => Stream<Result.Result<A, E>, never, R>;
@@ -2174,7 +2081,7 @@ export declare const result: <A, E, R>(self: Stream<A, E, R>) => Stream<Result.R
2174
2081
  * // [ 2, 4, 6 ]
2175
2082
  * ```
2176
2083
  *
2177
- * @category Sequencing
2084
+ * @category sequencing
2178
2085
  * @since 2.0.0
2179
2086
  */
2180
2087
  export declare const tap: {
@@ -2208,7 +2115,7 @@ export declare const tap: {
2208
2115
  * // [ 2, 4, 6 ]
2209
2116
  * ```
2210
2117
  *
2211
- * @category Sequencing
2118
+ * @category sequencing
2212
2119
  * @since 2.0.0
2213
2120
  */
2214
2121
  <A, X, E2, R2>(f: (a: NoInfer<A>) => Effect.Effect<X, E2, R2>, options?: {
@@ -2244,7 +2151,7 @@ export declare const tap: {
2244
2151
  * // [ 2, 4, 6 ]
2245
2152
  * ```
2246
2153
  *
2247
- * @category Sequencing
2154
+ * @category sequencing
2248
2155
  * @since 2.0.0
2249
2156
  */
2250
2157
  <A, E, R, X, E2, R2>(self: Stream<A, E, R>, f: (a: NoInfer<A>) => Effect.Effect<X, E2, R2>, options?: {
@@ -2280,7 +2187,7 @@ export declare const tap: {
2280
2187
  * // [ 1, 2, 3 ]
2281
2188
  * ```
2282
2189
  *
2283
- * @category Sequencing
2190
+ * @category sequencing
2284
2191
  * @since 2.0.0
2285
2192
  */
2286
2193
  export declare const tapBoth: {
@@ -2313,7 +2220,7 @@ export declare const tapBoth: {
2313
2220
  * // [ 1, 2, 3 ]
2314
2221
  * ```
2315
2222
  *
2316
- * @category Sequencing
2223
+ * @category sequencing
2317
2224
  * @since 2.0.0
2318
2225
  */
2319
2226
  <A, E, X, E2, R2, Y, E3, R3>(options: {
@@ -2350,7 +2257,7 @@ export declare const tapBoth: {
2350
2257
  * // [ 1, 2, 3 ]
2351
2258
  * ```
2352
2259
  *
2353
- * @category Sequencing
2260
+ * @category sequencing
2354
2261
  * @since 2.0.0
2355
2262
  */
2356
2263
  <A, E, R, X, E2, R2, Y, E3, R3>(self: Stream<A, E, R>, options: {
@@ -2387,7 +2294,7 @@ export declare const tapBoth: {
2387
2294
  * // Output: [1, 2, 3]
2388
2295
  * ```
2389
2296
  *
2390
- * @category Sequencing
2297
+ * @category sequencing
2391
2298
  * @since 2.0.0
2392
2299
  */
2393
2300
  export declare const tapSink: {
@@ -2419,7 +2326,7 @@ export declare const tapSink: {
2419
2326
  * // Output: [1, 2, 3]
2420
2327
  * ```
2421
2328
  *
2422
- * @category Sequencing
2329
+ * @category sequencing
2423
2330
  * @since 2.0.0
2424
2331
  */
2425
2332
  <A, E2, R2>(sink: Sink.Sink<unknown, A, unknown, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
@@ -2451,7 +2358,7 @@ export declare const tapSink: {
2451
2358
  * // Output: [1, 2, 3]
2452
2359
  * ```
2453
2360
  *
2454
- * @category Sequencing
2361
+ * @category sequencing
2455
2362
  * @since 2.0.0
2456
2363
  */
2457
2364
  <A, E, R, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<unknown, A, unknown, E2, R2>): Stream<A, E | E2, R | R2>;
@@ -2481,7 +2388,7 @@ export declare const tapSink: {
2481
2388
  * // Output: [ 1, 2, 2, 4, 3, 6 ]
2482
2389
  * ```
2483
2390
  *
2484
- * @category Mapping
2391
+ * @category mapping
2485
2392
  * @since 2.0.0
2486
2393
  */
2487
2394
  export declare const flatMap: {
@@ -2510,7 +2417,7 @@ export declare const flatMap: {
2510
2417
  * // Output: [ 1, 2, 2, 4, 3, 6 ]
2511
2418
  * ```
2512
2419
  *
2513
- * @category Mapping
2420
+ * @category mapping
2514
2421
  * @since 2.0.0
2515
2422
  */
2516
2423
  <A, A2, E2, R2>(f: (a: A) => Stream<A2, E2, R2>, options?: {
@@ -2542,7 +2449,7 @@ export declare const flatMap: {
2542
2449
  * // Output: [ 1, 2, 2, 4, 3, 6 ]
2543
2450
  * ```
2544
2451
  *
2545
- * @category Mapping
2452
+ * @category mapping
2546
2453
  * @since 2.0.0
2547
2454
  */
2548
2455
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Stream<A2, E2, R2>, options?: {
@@ -2571,7 +2478,7 @@ export declare const flatMap: {
2571
2478
  * })
2572
2479
  * ```
2573
2480
  *
2574
- * @category Sequencing
2481
+ * @category sequencing
2575
2482
  * @since 4.0.0
2576
2483
  */
2577
2484
  export declare const switchMap: {
@@ -2596,7 +2503,7 @@ export declare const switchMap: {
2596
2503
  * })
2597
2504
  * ```
2598
2505
  *
2599
- * @category Sequencing
2506
+ * @category sequencing
2600
2507
  * @since 4.0.0
2601
2508
  */
2602
2509
  <A, A2, E2, R2>(f: (a: A) => Stream<A2, E2, R2>, options?: {
@@ -2624,7 +2531,7 @@ export declare const switchMap: {
2624
2531
  * })
2625
2532
  * ```
2626
2533
  *
2627
- * @category Sequencing
2534
+ * @category sequencing
2628
2535
  * @since 4.0.0
2629
2536
  */
2630
2537
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Stream<A2, E2, R2>, options?: {
@@ -2660,7 +2567,7 @@ export declare const switchMap: {
2660
2567
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
2661
2568
  * ```
2662
2569
  *
2663
- * @category Mapping
2570
+ * @category mapping
2664
2571
  * @since 2.0.0
2665
2572
  */
2666
2573
  export declare const flatten: <Arg extends Stream<Stream<any, any, any>, any, any> | {
@@ -2676,12 +2583,6 @@ export declare const flatten: <Arg extends Stream<Stream<any, any, any>, any, an
2676
2583
  /**
2677
2584
  * Flattens a stream of non-empty arrays into a stream of elements.
2678
2585
  *
2679
- * **Previously Known As**
2680
- *
2681
- * This API replaces the following from Effect 3.x:
2682
- *
2683
- * - `Stream.flattenChunks`
2684
- *
2685
2586
  * **Example** (Flattening a stream of non-empty arrays into a stream of elements)
2686
2587
  *
2687
2588
  * ```ts
@@ -2698,7 +2599,7 @@ export declare const flatten: <Arg extends Stream<Stream<any, any, any>, any, an
2698
2599
  * // Output: [ 1, 2, 3 ]
2699
2600
  * ```
2700
2601
  *
2701
- * @category Sequencing
2602
+ * @category sequencing
2702
2603
  * @since 4.0.0
2703
2604
  */
2704
2605
  export declare const flattenArray: <A, E, R>(self: Stream<Arr.NonEmptyReadonlyArray<A>, E, R>) => Stream<A, E, R>;
@@ -2719,7 +2620,7 @@ export declare const flattenArray: <A, E, R>(self: Stream<Arr.NonEmptyReadonlyAr
2719
2620
  * // Output: []
2720
2621
  * ```
2721
2622
  *
2722
- * @category Sequencing
2623
+ * @category sequencing
2723
2624
  * @since 2.0.0
2724
2625
  */
2725
2626
  export declare const drain: <A, E, R>(self: Stream<A, E, R>) => Stream<never, E, R>;
@@ -2748,7 +2649,7 @@ export declare const drain: <A, E, R>(self: Stream<A, E, R>) => Stream<never, E,
2748
2649
  * // Output: [ 1, 2 ]
2749
2650
  * ```
2750
2651
  *
2751
- * @category Sequencing
2652
+ * @category sequencing
2752
2653
  * @since 2.0.0
2753
2654
  */
2754
2655
  export declare const drainFork: {
@@ -2777,7 +2678,7 @@ export declare const drainFork: {
2777
2678
  * // Output: [ 1, 2 ]
2778
2679
  * ```
2779
2680
  *
2780
- * @category Sequencing
2681
+ * @category sequencing
2781
2682
  * @since 2.0.0
2782
2683
  */
2783
2684
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
@@ -2806,7 +2707,7 @@ export declare const drainFork: {
2806
2707
  * // Output: [ 1, 2 ]
2807
2708
  * ```
2808
2709
  *
2809
- * @category Sequencing
2710
+ * @category sequencing
2810
2711
  * @since 2.0.0
2811
2712
  */
2812
2713
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A, E | E2, R | R2>;
@@ -2832,7 +2733,7 @@ export declare const drainFork: {
2832
2733
  * // Output: [ 1, 1, 1, 1, 1 ]
2833
2734
  * ```
2834
2735
  *
2835
- * @category Sequencing
2736
+ * @category sequencing
2836
2737
  * @since 2.0.0
2837
2738
  */
2838
2739
  export declare const repeat: {
@@ -2857,7 +2758,7 @@ export declare const repeat: {
2857
2758
  * // Output: [ 1, 1, 1, 1, 1 ]
2858
2759
  * ```
2859
2760
  *
2860
- * @category Sequencing
2761
+ * @category sequencing
2861
2762
  * @since 2.0.0
2862
2763
  */
2863
2764
  <B, E2, R2>(schedule: Schedule.Schedule<B, void, E2, R2> | (($: <SO, SE, SR>(_: Schedule.Schedule<SO, void, SE, SR>) => Schedule.Schedule<SO, void, SE, SR>) => Schedule.Schedule<B, void, E2, R2>)): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>;
@@ -2882,7 +2783,7 @@ export declare const repeat: {
2882
2783
  * // Output: [ 1, 1, 1, 1, 1 ]
2883
2784
  * ```
2884
2785
  *
2885
- * @category Sequencing
2786
+ * @category sequencing
2886
2787
  * @since 2.0.0
2887
2788
  */
2888
2789
  <A, E, R, B, E2, R2>(self: Stream<A, E, R>, schedule: Schedule.Schedule<B, void, E2, R2> | (($: <SO, SE, SR>(_: Schedule.Schedule<SO, void, SE, SR>) => Schedule.Schedule<SO, void, SE, SR>) => Schedule.Schedule<B, void, E2, R2>)): Stream<A, E | E2, R | R2>;
@@ -3048,7 +2949,7 @@ export declare const timeout: {
3048
2949
  * unchanged.
3049
2950
  *
3050
2951
  * @category Rate Limiting
3051
- * @since 2.0.0
2952
+ * @since 4.0.0
3052
2953
  */
3053
2954
  export declare const timeoutOrElse: {
3054
2955
  /**
@@ -3060,7 +2961,7 @@ export declare const timeoutOrElse: {
3060
2961
  * unchanged.
3061
2962
  *
3062
2963
  * @category Rate Limiting
3063
- * @since 2.0.0
2964
+ * @since 4.0.0
3064
2965
  */
3065
2966
  <B, E2, R2>(options: {
3066
2967
  readonly duration: Duration.Input;
@@ -3075,7 +2976,7 @@ export declare const timeoutOrElse: {
3075
2976
  * unchanged.
3076
2977
  *
3077
2978
  * @category Rate Limiting
3078
- * @since 2.0.0
2979
+ * @since 4.0.0
3079
2980
  */
3080
2981
  <A, E, R, B, E2, R2>(self: Stream<A, E, R>, options: {
3081
2982
  readonly duration: Duration.Input;
@@ -3086,8 +2987,6 @@ export declare const timeoutOrElse: {
3086
2987
  * Repeats each element of the stream according to the provided schedule,
3087
2988
  * including the original emission.
3088
2989
  *
3089
- * @category Sequencing
3090
- * @since 2.0.0
3091
2990
  * **Example** (Repeating stream elements)
3092
2991
  *
3093
2992
  * ```ts
@@ -3104,14 +3003,15 @@ export declare const timeoutOrElse: {
3104
3003
  * Effect.runPromise(program)
3105
3004
  * // Output: [ "A", "A", "B", "B", "C", "C" ]
3106
3005
  * ```
3006
+ *
3007
+ * @category sequencing
3008
+ * @since 2.0.0
3107
3009
  */
3108
3010
  export declare const repeatElements: {
3109
3011
  /**
3110
3012
  * Repeats each element of the stream according to the provided schedule,
3111
3013
  * including the original emission.
3112
3014
  *
3113
- * @category Sequencing
3114
- * @since 2.0.0
3115
3015
  * **Example** (Repeating stream elements)
3116
3016
  *
3117
3017
  * ```ts
@@ -3128,14 +3028,15 @@ export declare const repeatElements: {
3128
3028
  * Effect.runPromise(program)
3129
3029
  * // Output: [ "A", "A", "B", "B", "C", "C" ]
3130
3030
  * ```
3031
+ *
3032
+ * @category sequencing
3033
+ * @since 2.0.0
3131
3034
  */
3132
3035
  <B, E2, R2>(schedule: Schedule.Schedule<B, unknown, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>;
3133
3036
  /**
3134
3037
  * Repeats each element of the stream according to the provided schedule,
3135
3038
  * including the original emission.
3136
3039
  *
3137
- * @category Sequencing
3138
- * @since 2.0.0
3139
3040
  * **Example** (Repeating stream elements)
3140
3041
  *
3141
3042
  * ```ts
@@ -3152,6 +3053,9 @@ export declare const repeatElements: {
3152
3053
  * Effect.runPromise(program)
3153
3054
  * // Output: [ "A", "A", "B", "B", "C", "C" ]
3154
3055
  * ```
3056
+ *
3057
+ * @category sequencing
3058
+ * @since 2.0.0
3155
3059
  */
3156
3060
  <A, E, R, B, E2, R2>(self: Stream<A, E, R>, schedule: Schedule.Schedule<B, unknown, E2, R2>): Stream<A, E | E2, R | R2>;
3157
3061
  };
@@ -3177,19 +3081,13 @@ export declare const repeatElements: {
3177
3081
  * // Output: [ "A", "B", "A", "B", "A" ]
3178
3082
  * ```
3179
3083
  *
3180
- * @category Sequencing
3084
+ * @category sequencing
3181
3085
  * @since 2.0.0
3182
3086
  */
3183
3087
  export declare const forever: <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
3184
3088
  /**
3185
3089
  * Submerges the iterables emitted by this stream into the stream's structure.
3186
3090
  *
3187
- * **Previously Known As**
3188
- *
3189
- * This API replaces the following from Effect 3.x:
3190
- *
3191
- * - `Stream.flattenIterables`
3192
- *
3193
3091
  * **Example** (Flattening iterable values)
3194
3092
  *
3195
3093
  * ```ts
@@ -3205,7 +3103,7 @@ export declare const forever: <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R
3205
3103
  * // Output: [ 1, 2, 3, 4 ]
3206
3104
  * ```
3207
3105
  *
3208
- * @category Mapping
3106
+ * @category mapping
3209
3107
  * @since 4.0.0
3210
3108
  */
3211
3109
  export declare const flattenIterable: <A, E, R>(self: Stream<Iterable<A>, E, R>) => Stream<A, E, R>;
@@ -3233,8 +3131,8 @@ export declare const flattenIterable: <A, E, R>(self: Stream<Iterable<A>, E, R>)
3233
3131
  * // Output: [ 1, 2, 3 ]
3234
3132
  * ```
3235
3133
  *
3236
- * @category Sequencing
3237
- * @since 4.0.0
3134
+ * @category sequencing
3135
+ * @since 2.0.0
3238
3136
  */
3239
3137
  export declare const flattenTake: <A, E, E2, R>(self: Stream<Take.Take<A, E>, E2, R>) => Stream<A, E | E2, R>;
3240
3138
  /**
@@ -3255,7 +3153,7 @@ export declare const flattenTake: <A, E, E2, R>(self: Stream<Take.Take<A, E>, E2
3255
3153
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
3256
3154
  * ```
3257
3155
  *
3258
- * @category Sequencing
3156
+ * @category sequencing
3259
3157
  * @since 2.0.0
3260
3158
  */
3261
3159
  export declare const concat: {
@@ -3277,7 +3175,7 @@ export declare const concat: {
3277
3175
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
3278
3176
  * ```
3279
3177
  *
3280
- * @category Sequencing
3178
+ * @category sequencing
3281
3179
  * @since 2.0.0
3282
3180
  */
3283
3181
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A | A2, E | E2, R | R2>;
@@ -3299,7 +3197,7 @@ export declare const concat: {
3299
3197
  * // Output: [ 1, 2, 3, 4, 5, 6 ]
3300
3198
  * ```
3301
3199
  *
3302
- * @category Sequencing
3200
+ * @category sequencing
3303
3201
  * @since 2.0.0
3304
3202
  */
3305
3203
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<A | A2, E | E2, R | R2>;
@@ -3325,7 +3223,7 @@ export declare const concat: {
3325
3223
  * Effect.runPromise(program)
3326
3224
  * ```
3327
3225
  *
3328
- * @category Sequencing
3226
+ * @category sequencing
3329
3227
  * @since 2.0.0
3330
3228
  */
3331
3229
  export declare const prepend: {
@@ -3350,7 +3248,7 @@ export declare const prepend: {
3350
3248
  * Effect.runPromise(program)
3351
3249
  * ```
3352
3250
  *
3353
- * @category Sequencing
3251
+ * @category sequencing
3354
3252
  * @since 2.0.0
3355
3253
  */
3356
3254
  <B>(values: Iterable<B>): <A, E, R>(self: Stream<A, E, R>) => Stream<B | A, E, R>;
@@ -3375,7 +3273,7 @@ export declare const prepend: {
3375
3273
  * Effect.runPromise(program)
3376
3274
  * ```
3377
3275
  *
3378
- * @category Sequencing
3276
+ * @category sequencing
3379
3277
  * @since 2.0.0
3380
3278
  */
3381
3279
  <A, E, R, B>(self: Stream<A, E, R>, values: Iterable<B>): Stream<A | B, E, R>;
@@ -3472,8 +3370,6 @@ export declare const merge: {
3472
3370
  * The effect runs concurrently, fails the stream if it fails, and is interrupted
3473
3371
  * when the stream completes.
3474
3372
  *
3475
- * @category Merging
3476
- * @since 4.0.0
3477
3373
  * **Example** (Merging with a background effect)
3478
3374
  *
3479
3375
  * ```ts
@@ -3492,6 +3388,9 @@ export declare const merge: {
3492
3388
  * // Output: side task
3493
3389
  * // Output: [ 1, 2, 3 ]
3494
3390
  * ```
3391
+ *
3392
+ * @category Merging
3393
+ * @since 4.0.0
3495
3394
  */
3496
3395
  export declare const mergeEffect: {
3497
3396
  /**
@@ -3500,8 +3399,6 @@ export declare const mergeEffect: {
3500
3399
  * The effect runs concurrently, fails the stream if it fails, and is interrupted
3501
3400
  * when the stream completes.
3502
3401
  *
3503
- * @category Merging
3504
- * @since 4.0.0
3505
3402
  * **Example** (Merging with a background effect)
3506
3403
  *
3507
3404
  * ```ts
@@ -3520,6 +3417,9 @@ export declare const mergeEffect: {
3520
3417
  * // Output: side task
3521
3418
  * // Output: [ 1, 2, 3 ]
3522
3419
  * ```
3420
+ *
3421
+ * @category Merging
3422
+ * @since 4.0.0
3523
3423
  */
3524
3424
  <A2, E2, R2>(effect: Effect.Effect<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
3525
3425
  /**
@@ -3528,8 +3428,6 @@ export declare const mergeEffect: {
3528
3428
  * The effect runs concurrently, fails the stream if it fails, and is interrupted
3529
3429
  * when the stream completes.
3530
3430
  *
3531
- * @category Merging
3532
- * @since 4.0.0
3533
3431
  * **Example** (Merging with a background effect)
3534
3432
  *
3535
3433
  * ```ts
@@ -3548,6 +3446,9 @@ export declare const mergeEffect: {
3548
3446
  * // Output: side task
3549
3447
  * // Output: [ 1, 2, 3 ]
3550
3448
  * ```
3449
+ *
3450
+ * @category Merging
3451
+ * @since 4.0.0
3551
3452
  */
3552
3453
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, effect: Effect.Effect<A2, E2, R2>): Stream<A, E | E2, R | R2>;
3553
3454
  };
@@ -3555,12 +3456,6 @@ export declare const mergeEffect: {
3555
3456
  * Merges this stream and the specified stream together, tagging values from the
3556
3457
  * left stream as `Result.succeed` and values from the right stream as `Result.fail`.
3557
3458
  *
3558
- * **Previously Known As**
3559
- *
3560
- * This API replaces the following from Effect 3.x:
3561
- *
3562
- * - `Stream.mergeEither`
3563
- *
3564
3459
  * **Example** (Merging streams into results)
3565
3460
  *
3566
3461
  * ```ts
@@ -3589,19 +3484,13 @@ export declare const mergeEffect: {
3589
3484
  * ```
3590
3485
  *
3591
3486
  * @category Merging
3592
- * @since 2.0.0
3487
+ * @since 4.0.0
3593
3488
  */
3594
3489
  export declare const mergeResult: {
3595
3490
  /**
3596
3491
  * Merges this stream and the specified stream together, tagging values from the
3597
3492
  * left stream as `Result.succeed` and values from the right stream as `Result.fail`.
3598
3493
  *
3599
- * **Previously Known As**
3600
- *
3601
- * This API replaces the following from Effect 3.x:
3602
- *
3603
- * - `Stream.mergeEither`
3604
- *
3605
3494
  * **Example** (Merging streams into results)
3606
3495
  *
3607
3496
  * ```ts
@@ -3630,19 +3519,13 @@ export declare const mergeResult: {
3630
3519
  * ```
3631
3520
  *
3632
3521
  * @category Merging
3633
- * @since 2.0.0
3522
+ * @since 4.0.0
3634
3523
  */
3635
3524
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<Result.Result<A, A2>, E2 | E, R2 | R>;
3636
3525
  /**
3637
3526
  * Merges this stream and the specified stream together, tagging values from the
3638
3527
  * left stream as `Result.succeed` and values from the right stream as `Result.fail`.
3639
3528
  *
3640
- * **Previously Known As**
3641
- *
3642
- * This API replaces the following from Effect 3.x:
3643
- *
3644
- * - `Stream.mergeEither`
3645
- *
3646
3529
  * **Example** (Merging streams into results)
3647
3530
  *
3648
3531
  * ```ts
@@ -3671,7 +3554,7 @@ export declare const mergeResult: {
3671
3554
  * ```
3672
3555
  *
3673
3556
  * @category Merging
3674
- * @since 2.0.0
3557
+ * @since 4.0.0
3675
3558
  */
3676
3559
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<Result.Result<A, A2>, E | E2, R | R2>;
3677
3560
  };
@@ -3967,7 +3850,7 @@ export declare const mergeAll: {
3967
3850
  * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ]
3968
3851
  * ```
3969
3852
  *
3970
- * @category Zipping
3853
+ * @category zipping
3971
3854
  * @since 2.0.0
3972
3855
  */
3973
3856
  export declare const cross: {
@@ -3993,7 +3876,7 @@ export declare const cross: {
3993
3876
  * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ]
3994
3877
  * ```
3995
3878
  *
3996
- * @category Zipping
3879
+ * @category zipping
3997
3880
  * @since 2.0.0
3998
3881
  */
3999
3882
  <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<[AL, AR], EL | ER, RL | RR>;
@@ -4019,7 +3902,7 @@ export declare const cross: {
4019
3902
  * // Output: [ [ 1, "a" ], [ 1, "b" ], [ 2, "a" ], [ 2, "b" ] ]
4020
3903
  * ```
4021
3904
  *
4022
- * @category Zipping
3905
+ * @category zipping
4023
3906
  * @since 2.0.0
4024
3907
  */
4025
3908
  <AL, ER, RR, AR, EL, RL>(left: Stream<AL, ER, RR>, right: Stream<AR, EL, RL>): Stream<[AL, AR], EL | ER, RL | RR>;
@@ -4048,7 +3931,7 @@ export declare const cross: {
4048
3931
  * // Output: [ "1-a", "1-b", "2-a", "2-b" ]
4049
3932
  * ```
4050
3933
  *
4051
- * @category Zipping
3934
+ * @category zipping
4052
3935
  * @since 2.0.0
4053
3936
  */
4054
3937
  export declare const crossWith: {
@@ -4076,7 +3959,7 @@ export declare const crossWith: {
4076
3959
  * // Output: [ "1-a", "1-b", "2-a", "2-b" ]
4077
3960
  * ```
4078
3961
  *
4079
- * @category Zipping
3962
+ * @category zipping
4080
3963
  * @since 2.0.0
4081
3964
  */
4082
3965
  <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>;
@@ -4104,7 +3987,7 @@ export declare const crossWith: {
4104
3987
  * // Output: [ "1-a", "1-b", "2-a", "2-b" ]
4105
3988
  * ```
4106
3989
  *
4107
- * @category Zipping
3990
+ * @category zipping
4108
3991
  * @since 2.0.0
4109
3992
  */
4110
3993
  <AL, EL, RL, AR, ER, RR, A>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): Stream<A, EL | ER, RL | RR>;
@@ -4131,7 +4014,7 @@ export declare const crossWith: {
4131
4014
  * // Output: [ "1-a", "2-b", "3-c" ]
4132
4015
  * ```
4133
4016
  *
4134
- * @category Zipping
4017
+ * @category zipping
4135
4018
  * @since 2.0.0
4136
4019
  */
4137
4020
  export declare const zipWith: {
@@ -4157,7 +4040,7 @@ export declare const zipWith: {
4157
4040
  * // Output: [ "1-a", "2-b", "3-c" ]
4158
4041
  * ```
4159
4042
  *
4160
- * @category Zipping
4043
+ * @category zipping
4161
4044
  * @since 2.0.0
4162
4045
  */
4163
4046
  <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>;
@@ -4183,7 +4066,7 @@ export declare const zipWith: {
4183
4066
  * // Output: [ "1-a", "2-b", "3-c" ]
4184
4067
  * ```
4185
4068
  *
4186
- * @category Zipping
4069
+ * @category zipping
4187
4070
  * @since 2.0.0
4188
4071
  */
4189
4072
  <AL, EL, RL, AR, ER, RR, A>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): Stream<A, EL | ER, RL | RR>;
@@ -4193,12 +4076,6 @@ export declare const zipWith: {
4193
4076
  *
4194
4077
  * The function returns output plus leftover arrays that carry into the next pull.
4195
4078
  *
4196
- * **Previously Known As**
4197
- *
4198
- * This API replaces the following from Effect 3.x:
4199
- *
4200
- * - `Stream.zipWithChunks`
4201
- *
4202
4079
  * **Example** (Zipping stream chunks)
4203
4080
  *
4204
4081
  * ```ts
@@ -4223,8 +4100,8 @@ export declare const zipWith: {
4223
4100
  * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]]
4224
4101
  * ```
4225
4102
  *
4226
- * @category Zipping
4227
- * @since 2.0.0
4103
+ * @category zipping
4104
+ * @since 4.0.0
4228
4105
  */
4229
4106
  export declare const zipWithArray: {
4230
4107
  /**
@@ -4232,12 +4109,6 @@ export declare const zipWithArray: {
4232
4109
  *
4233
4110
  * The function returns output plus leftover arrays that carry into the next pull.
4234
4111
  *
4235
- * **Previously Known As**
4236
- *
4237
- * This API replaces the following from Effect 3.x:
4238
- *
4239
- * - `Stream.zipWithChunks`
4240
- *
4241
4112
  * **Example** (Zipping stream chunks)
4242
4113
  *
4243
4114
  * ```ts
@@ -4262,8 +4133,8 @@ export declare const zipWithArray: {
4262
4133
  * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]]
4263
4134
  * ```
4264
4135
  *
4265
- * @category Zipping
4266
- * @since 2.0.0
4136
+ * @category zipping
4137
+ * @since 4.0.0
4267
4138
  */
4268
4139
  <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: Arr.NonEmptyReadonlyArray<AL>, right: Arr.NonEmptyReadonlyArray<AR>) => readonly [
4269
4140
  output: Arr.NonEmptyReadonlyArray<A>,
@@ -4275,12 +4146,6 @@ export declare const zipWithArray: {
4275
4146
  *
4276
4147
  * The function returns output plus leftover arrays that carry into the next pull.
4277
4148
  *
4278
- * **Previously Known As**
4279
- *
4280
- * This API replaces the following from Effect 3.x:
4281
- *
4282
- * - `Stream.zipWithChunks`
4283
- *
4284
4149
  * **Example** (Zipping stream chunks)
4285
4150
  *
4286
4151
  * ```ts
@@ -4305,8 +4170,8 @@ export declare const zipWithArray: {
4305
4170
  * // Output: [[1, "a"], [2, "b"], [3, "c"], [4, "d"], [5, "e"]]
4306
4171
  * ```
4307
4172
  *
4308
- * @category Zipping
4309
- * @since 2.0.0
4173
+ * @category zipping
4174
+ * @since 4.0.0
4310
4175
  */
4311
4176
  <AL, EL, RL, AR, ER, RR, A>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>, f: (left: Arr.NonEmptyReadonlyArray<AL>, right: Arr.NonEmptyReadonlyArray<AR>) => readonly [
4312
4177
  output: Arr.NonEmptyReadonlyArray<A>,
@@ -4337,7 +4202,7 @@ export declare const zipWithArray: {
4337
4202
  * // Output: [[1, "a"], [2, "b"], [3, "c"]]
4338
4203
  * ```
4339
4204
  *
4340
- * @category Zipping
4205
+ * @category zipping
4341
4206
  * @since 2.0.0
4342
4207
  */
4343
4208
  export declare const zip: {
@@ -4364,7 +4229,7 @@ export declare const zip: {
4364
4229
  * // Output: [[1, "a"], [2, "b"], [3, "c"]]
4365
4230
  * ```
4366
4231
  *
4367
- * @category Zipping
4232
+ * @category zipping
4368
4233
  * @since 2.0.0
4369
4234
  */
4370
4235
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<[A, A2], E2 | E, R2 | R>;
@@ -4391,7 +4256,7 @@ export declare const zip: {
4391
4256
  * // Output: [[1, "a"], [2, "b"], [3, "c"]]
4392
4257
  * ```
4393
4258
  *
4394
- * @category Zipping
4259
+ * @category zipping
4395
4260
  * @since 2.0.0
4396
4261
  */
4397
4262
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<[A, A2], E | E2, R | R2>;
@@ -4419,7 +4284,7 @@ export declare const zip: {
4419
4284
  * // Output: [1, 2]
4420
4285
  * ```
4421
4286
  *
4422
- * @category Zipping
4287
+ * @category zipping
4423
4288
  * @since 2.0.0
4424
4289
  */
4425
4290
  export declare const zipLeft: {
@@ -4446,7 +4311,7 @@ export declare const zipLeft: {
4446
4311
  * // Output: [1, 2]
4447
4312
  * ```
4448
4313
  *
4449
- * @category Zipping
4314
+ * @category zipping
4450
4315
  * @since 2.0.0
4451
4316
  */
4452
4317
  <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AL, ER | EL, RR | RL>;
@@ -4473,7 +4338,7 @@ export declare const zipLeft: {
4473
4338
  * // Output: [1, 2]
4474
4339
  * ```
4475
4340
  *
4476
- * @category Zipping
4341
+ * @category zipping
4477
4342
  * @since 2.0.0
4478
4343
  */
4479
4344
  <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AL, EL | ER, RL | RR>;
@@ -4498,7 +4363,7 @@ export declare const zipLeft: {
4498
4363
  * // Output: ["a", "b"]
4499
4364
  * ```
4500
4365
  *
4501
- * @category Zipping
4366
+ * @category zipping
4502
4367
  * @since 2.0.0
4503
4368
  */
4504
4369
  export declare const zipRight: {
@@ -4522,7 +4387,7 @@ export declare const zipRight: {
4522
4387
  * // Output: ["a", "b"]
4523
4388
  * ```
4524
4389
  *
4525
- * @category Zipping
4390
+ * @category zipping
4526
4391
  * @since 2.0.0
4527
4392
  */
4528
4393
  <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<AR, ER | EL, RR | RL>;
@@ -4546,7 +4411,7 @@ export declare const zipRight: {
4546
4411
  * // Output: ["a", "b"]
4547
4412
  * ```
4548
4413
  *
4549
- * @category Zipping
4414
+ * @category zipping
4550
4415
  * @since 2.0.0
4551
4416
  */
4552
4417
  <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<AR, EL | ER, RL | RR>;
@@ -4578,7 +4443,7 @@ export declare const zipRight: {
4578
4443
  * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]]
4579
4444
  * ```
4580
4445
  *
4581
- * @category Zipping
4446
+ * @category zipping
4582
4447
  * @since 2.0.0
4583
4448
  */
4584
4449
  export declare const zipFlatten: {
@@ -4609,7 +4474,7 @@ export declare const zipFlatten: {
4609
4474
  * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]]
4610
4475
  * ```
4611
4476
  *
4612
- * @category Zipping
4477
+ * @category zipping
4613
4478
  * @since 2.0.0
4614
4479
  */
4615
4480
  <A2, E2, R2>(that: Stream<A2, E2, R2>): <A extends ReadonlyArray<any>, E, R>(self: Stream<A, E, R>) => Stream<[...A, A2], E2 | E, R2 | R>;
@@ -4640,7 +4505,7 @@ export declare const zipFlatten: {
4640
4505
  * // Output: [[1, "a", "x"], [2, "b", "y"], [3, "c", "z"]]
4641
4506
  * ```
4642
4507
  *
4643
- * @category Zipping
4508
+ * @category zipping
4644
4509
  * @since 2.0.0
4645
4510
  */
4646
4511
  <A extends ReadonlyArray<any>, E, R, A2, E2, R2>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>): Stream<[...A, A2], E | E2, R | R2>;
@@ -4665,7 +4530,7 @@ export declare const zipFlatten: {
4665
4530
  * // Output: [["a", 0], ["b", 1], ["c", 2], ["d", 3]]
4666
4531
  * ```
4667
4532
  *
4668
- * @category Zipping
4533
+ * @category zipping
4669
4534
  * @since 2.0.0
4670
4535
  */
4671
4536
  export declare const zipWithIndex: <A, E, R>(self: Stream<A, E, R>) => Stream<[A, number], E, R>;
@@ -4692,7 +4557,7 @@ export declare const zipWithIndex: <A, E, R>(self: Stream<A, E, R>) => Stream<[A
4692
4557
  * // ]
4693
4558
  * ```
4694
4559
  *
4695
- * @category Zipping
4560
+ * @category zipping
4696
4561
  * @since 2.0.0
4697
4562
  */
4698
4563
  export declare const zipWithNext: <A, E, R>(self: Stream<A, E, R>) => Stream<[A, Option.Option<A>], E, R>;
@@ -4720,7 +4585,7 @@ export declare const zipWithNext: <A, E, R>(self: Stream<A, E, R>) => Stream<[A,
4720
4585
  * // ]
4721
4586
  * ```
4722
4587
  *
4723
- * @category Zipping
4588
+ * @category zipping
4724
4589
  * @since 2.0.0
4725
4590
  */
4726
4591
  export declare const zipWithPrevious: <A, E, R>(self: Stream<A, E, R>) => Stream<[Option.Option<A>, A], E, R>;
@@ -4744,7 +4609,7 @@ export declare const zipWithPrevious: <A, E, R>(self: Stream<A, E, R>) => Stream
4744
4609
  * // Output: [ [Option.none(), 1, Option.some(2)], [Option.some(1), 2, Option.some(3)], [Option.some(2), 3, Option.none()] ]
4745
4610
  * ```
4746
4611
  *
4747
- * @category Zipping
4612
+ * @category zipping
4748
4613
  * @since 2.0.0
4749
4614
  */
4750
4615
  export declare const zipWithPreviousAndNext: <A, E, R>(self: Stream<A, E, R>) => Stream<[Option.Option<A>, A, Option.Option<A>], E, R>;
@@ -4776,8 +4641,8 @@ export declare const zipWithPreviousAndNext: <A, E, R>(self: Stream<A, E, R>) =>
4776
4641
  * // Output: [ [ 1, "a", true ], [ 2, "a", true ], [ 3, "a", true ], [ 3, "b", true ], [ 3, "c", true ], [ 3, "c", false ], [ 3, "c", true ] ]
4777
4642
  * ```
4778
4643
  *
4779
- * @category Zipping
4780
- * @since 2.0.0
4644
+ * @category zipping
4645
+ * @since 3.3.0
4781
4646
  */
4782
4647
  export declare const zipLatestAll: <T extends ReadonlyArray<Stream<any, any, any>>>(...streams: T) => Stream<[T[number]] extends [never] ? never : { [K in keyof T]: T[K] extends Stream<infer A, infer _E, infer _R> ? A : never; }, [T[number]] extends [never] ? never : T[number] extends Stream<infer _A, infer _E_1, infer _R_1> ? _E_1 : never, [T[number]] extends [never] ? never : T[number] extends Stream<infer _A, infer _E_2, infer _R_2> ? _R_2 : never>;
4783
4648
  /**
@@ -4803,7 +4668,7 @@ export declare const zipLatestAll: <T extends ReadonlyArray<Stream<any, any, any
4803
4668
  * // Output: [ [1, "a"] ]
4804
4669
  * ```
4805
4670
  *
4806
- * @category Zipping
4671
+ * @category zipping
4807
4672
  * @since 2.0.0
4808
4673
  */
4809
4674
  export declare const zipLatest: {
@@ -4830,7 +4695,7 @@ export declare const zipLatest: {
4830
4695
  * // Output: [ [1, "a"] ]
4831
4696
  * ```
4832
4697
  *
4833
- * @category Zipping
4698
+ * @category zipping
4834
4699
  * @since 2.0.0
4835
4700
  */
4836
4701
  <AR, ER, RR>(right: Stream<AR, ER, RR>): <AL, EL, RL>(left: Stream<AL, EL, RL>) => Stream<[AL, AR], EL | ER, RL | RR>;
@@ -4857,7 +4722,7 @@ export declare const zipLatest: {
4857
4722
  * // Output: [ [1, "a"] ]
4858
4723
  * ```
4859
4724
  *
4860
- * @category Zipping
4725
+ * @category zipping
4861
4726
  * @since 2.0.0
4862
4727
  */
4863
4728
  <AL, EL, RL, AR, ER, RR>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>): Stream<[AL, AR], EL | ER, RL | RR>;
@@ -4890,7 +4755,7 @@ export declare const zipLatest: {
4890
4755
  * })
4891
4756
  * ```
4892
4757
  *
4893
- * @category Zipping
4758
+ * @category zipping
4894
4759
  * @since 2.0.0
4895
4760
  */
4896
4761
  export declare const zipLatestWith: {
@@ -4922,7 +4787,7 @@ export declare const zipLatestWith: {
4922
4787
  * })
4923
4788
  * ```
4924
4789
  *
4925
- * @category Zipping
4790
+ * @category zipping
4926
4791
  * @since 2.0.0
4927
4792
  */
4928
4793
  <AR, ER, RR, AL, A>(right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): <EL, RL>(left: Stream<AL, EL, RL>) => Stream<A, EL | ER, RL | RR>;
@@ -4954,7 +4819,7 @@ export declare const zipLatestWith: {
4954
4819
  * })
4955
4820
  * ```
4956
4821
  *
4957
- * @category Zipping
4822
+ * @category zipping
4958
4823
  * @since 2.0.0
4959
4824
  */
4960
4825
  <AL, EL, RL, AR, ER, RR, A>(left: Stream<AL, EL, RL>, right: Stream<AR, ER, RR>, f: (left: AL, right: AR) => A): Stream<A, EL | ER, RL | RR>;
@@ -4968,7 +4833,7 @@ export declare const zipLatestWith: {
4968
4833
  * winner is chosen, that stream's later failures are propagated.
4969
4834
  *
4970
4835
  * @category Racing
4971
- * @since 3.7.0
4836
+ * @since 3.5.0
4972
4837
  *
4973
4838
  * **Example** (Racing multiple streams)
4974
4839
  *
@@ -5102,7 +4967,7 @@ export declare const race: {
5102
4967
  * // Output: [ 2, 4 ]
5103
4968
  * ```
5104
4969
  *
5105
- * @category Filtering
4970
+ * @category filtering
5106
4971
  * @since 2.0.0
5107
4972
  */
5108
4973
  export declare const filter: {
@@ -5126,7 +4991,7 @@ export declare const filter: {
5126
4991
  * // Output: [ 2, 4 ]
5127
4992
  * ```
5128
4993
  *
5129
- * @category Filtering
4994
+ * @category filtering
5130
4995
  * @since 2.0.0
5131
4996
  */
5132
4997
  <A, B extends A>(refinement: Refinement<NoInfer<A>, B>): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>;
@@ -5150,7 +5015,7 @@ export declare const filter: {
5150
5015
  * // Output: [ 2, 4 ]
5151
5016
  * ```
5152
5017
  *
5153
- * @category Filtering
5018
+ * @category filtering
5154
5019
  * @since 2.0.0
5155
5020
  */
5156
5021
  <A>(predicate: Predicate<NoInfer<A>>): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
@@ -5174,7 +5039,7 @@ export declare const filter: {
5174
5039
  * // Output: [ 2, 4 ]
5175
5040
  * ```
5176
5041
  *
5177
- * @category Filtering
5042
+ * @category filtering
5178
5043
  * @since 2.0.0
5179
5044
  */
5180
5045
  <A, E, R, B extends A>(self: Stream<A, E, R>, refinement: Refinement<A, B>): Stream<B, E, R>;
@@ -5198,7 +5063,7 @@ export declare const filter: {
5198
5063
  * // Output: [ 2, 4 ]
5199
5064
  * ```
5200
5065
  *
5201
- * @category Filtering
5066
+ * @category filtering
5202
5067
  * @since 2.0.0
5203
5068
  */
5204
5069
  <A, E, R>(self: Stream<A, E, R>, predicate: Predicate<A>): Stream<A, E, R>;
@@ -5206,22 +5071,22 @@ export declare const filter: {
5206
5071
  /**
5207
5072
  * Filters and maps stream elements in one pass using a `Filter`.
5208
5073
  *
5209
- * @category Filtering
5210
- * @since 4.0.0
5074
+ * @category filtering
5075
+ * @since 2.0.0
5211
5076
  */
5212
5077
  export declare const filterMap: {
5213
5078
  /**
5214
5079
  * Filters and maps stream elements in one pass using a `Filter`.
5215
5080
  *
5216
- * @category Filtering
5217
- * @since 4.0.0
5081
+ * @category filtering
5082
+ * @since 2.0.0
5218
5083
  */
5219
5084
  <A, B, X>(filter: Filter.Filter<NoInfer<A>, B, X>): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>;
5220
5085
  /**
5221
5086
  * Filters and maps stream elements in one pass using a `Filter`.
5222
5087
  *
5223
- * @category Filtering
5224
- * @since 4.0.0
5088
+ * @category filtering
5089
+ * @since 2.0.0
5225
5090
  */
5226
5091
  <A, E, R, B, X>(self: Stream<A, E, R>, filter: Filter.Filter<A, B, X>): Stream<B, E, R>;
5227
5092
  };
@@ -5244,7 +5109,7 @@ export declare const filterMap: {
5244
5109
  * // Output: [ 3, 4 ]
5245
5110
  * ```
5246
5111
  *
5247
- * @category Filtering
5112
+ * @category filtering
5248
5113
  * @since 2.0.0
5249
5114
  */
5250
5115
  export declare const filterEffect: {
@@ -5267,7 +5132,7 @@ export declare const filterEffect: {
5267
5132
  * // Output: [ 3, 4 ]
5268
5133
  * ```
5269
5134
  *
5270
- * @category Filtering
5135
+ * @category filtering
5271
5136
  * @since 2.0.0
5272
5137
  */
5273
5138
  <A, EX, RX>(predicate: (a: NoInfer<A>, i: number) => Effect.Effect<boolean, EX, RX>): <E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>;
@@ -5290,7 +5155,7 @@ export declare const filterEffect: {
5290
5155
  * // Output: [ 3, 4 ]
5291
5156
  * ```
5292
5157
  *
5293
- * @category Filtering
5158
+ * @category filtering
5294
5159
  * @since 2.0.0
5295
5160
  */
5296
5161
  <A, E, R, EX, RX>(self: Stream<A, E, R>, predicate: (a: NoInfer<A>, i: number) => Effect.Effect<boolean, EX, RX>): Stream<A, E | EX, R | RX>;
@@ -5298,22 +5163,22 @@ export declare const filterEffect: {
5298
5163
  /**
5299
5164
  * Effectfully filters and maps elements in a single pass.
5300
5165
  *
5301
- * @category Filtering
5302
- * @since 4.0.0
5166
+ * @category filtering
5167
+ * @since 2.0.0
5303
5168
  */
5304
5169
  export declare const filterMapEffect: {
5305
5170
  /**
5306
5171
  * Effectfully filters and maps elements in a single pass.
5307
5172
  *
5308
- * @category Filtering
5309
- * @since 4.0.0
5173
+ * @category filtering
5174
+ * @since 2.0.0
5310
5175
  */
5311
5176
  <A, B, X, EX, RX>(filter: Filter.FilterEffect<NoInfer<A>, B, X, EX, RX>): <E, R>(self: Stream<A, E, R>) => Stream<B, E | EX, R | RX>;
5312
5177
  /**
5313
5178
  * Effectfully filters and maps elements in a single pass.
5314
5179
  *
5315
- * @category Filtering
5316
- * @since 4.0.0
5180
+ * @category filtering
5181
+ * @since 2.0.0
5317
5182
  */
5318
5183
  <A, E, R, B, X, EX, RX>(self: Stream<A, E, R>, filter: Filter.FilterEffect<A, B, X, EX, RX>): Stream<B, E | EX, R | RX>;
5319
5184
  };
@@ -5347,7 +5212,7 @@ export declare const filterMapEffect: {
5347
5212
  * Effect.runPromise(Effect.scoped(program))
5348
5213
  * ```
5349
5214
  *
5350
- * @category Filtering
5215
+ * @category filtering
5351
5216
  * @since 4.0.0
5352
5217
  */
5353
5218
  export declare const partitionQueue: {
@@ -5381,7 +5246,7 @@ export declare const partitionQueue: {
5381
5246
  * Effect.runPromise(Effect.scoped(program))
5382
5247
  * ```
5383
5248
  *
5384
- * @category Filtering
5249
+ * @category filtering
5385
5250
  * @since 4.0.0
5386
5251
  */
5387
5252
  <A, Pass, Fail>(filter: Filter.Filter<NoInfer<A>, Pass, Fail>, options?: {
@@ -5420,7 +5285,7 @@ export declare const partitionQueue: {
5420
5285
  * Effect.runPromise(Effect.scoped(program))
5421
5286
  * ```
5422
5287
  *
5423
- * @category Filtering
5288
+ * @category filtering
5424
5289
  * @since 4.0.0
5425
5290
  */
5426
5291
  <A, E, R, Pass, Fail>(self: Stream<A, E, R>, filter: Filter.Filter<NoInfer<A>, Pass, Fail>, options?: {
@@ -5438,7 +5303,7 @@ export declare const partitionQueue: {
5438
5303
  * consumed while that scope remains open. The first stream emits success values
5439
5304
  * from the filter, and the second emits failure values.
5440
5305
  *
5441
- * @category Filtering
5306
+ * @category filtering
5442
5307
  * @since 4.0.0
5443
5308
  */
5444
5309
  export declare const partitionEffect: {
@@ -5450,7 +5315,7 @@ export declare const partitionEffect: {
5450
5315
  * consumed while that scope remains open. The first stream emits success values
5451
5316
  * from the filter, and the second emits failure values.
5452
5317
  *
5453
- * @category Filtering
5318
+ * @category filtering
5454
5319
  * @since 4.0.0
5455
5320
  */
5456
5321
  <A, Pass, Fail, EX, RX>(filter: Filter.FilterEffect<NoInfer<A>, Pass, Fail, EX, RX>, options?: {
@@ -5468,7 +5333,7 @@ export declare const partitionEffect: {
5468
5333
  * consumed while that scope remains open. The first stream emits success values
5469
5334
  * from the filter, and the second emits failure values.
5470
5335
  *
5471
- * @category Filtering
5336
+ * @category filtering
5472
5337
  * @since 4.0.0
5473
5338
  */
5474
5339
  <A, E, R, Pass, Fail, EX, RX>(self: Stream<A, E, R>, filter: Filter.FilterEffect<NoInfer<A>, Pass, Fail, EX, RX>, options?: {
@@ -5487,8 +5352,8 @@ export declare const partitionEffect: {
5487
5352
  * consumed while that scope remains open. The faster stream may advance up to
5488
5353
  * `bufferSize` elements ahead of the slower one.
5489
5354
  *
5490
- * @category Filtering
5491
- * @since 4.0.0
5355
+ * @category filtering
5356
+ * @since 2.0.0
5492
5357
  *
5493
5358
  * **Example** (Partitioning a stream)
5494
5359
  *
@@ -5518,8 +5383,8 @@ export declare const partition: {
5518
5383
  * consumed while that scope remains open. The faster stream may advance up to
5519
5384
  * `bufferSize` elements ahead of the slower one.
5520
5385
  *
5521
- * @category Filtering
5522
- * @since 4.0.0
5386
+ * @category filtering
5387
+ * @since 2.0.0
5523
5388
  *
5524
5389
  * **Example** (Partitioning a stream)
5525
5390
  *
@@ -5554,8 +5419,8 @@ export declare const partition: {
5554
5419
  * consumed while that scope remains open. The faster stream may advance up to
5555
5420
  * `bufferSize` elements ahead of the slower one.
5556
5421
  *
5557
- * @category Filtering
5558
- * @since 4.0.0
5422
+ * @category filtering
5423
+ * @since 2.0.0
5559
5424
  *
5560
5425
  * **Example** (Partitioning a stream)
5561
5426
  *
@@ -5603,7 +5468,7 @@ export declare const partition: {
5603
5468
  * // Output: []
5604
5469
  * ```
5605
5470
  *
5606
- * @category Filtering
5471
+ * @category filtering
5607
5472
  * @since 2.0.0
5608
5473
  */
5609
5474
  export declare const when: {
@@ -5627,7 +5492,7 @@ export declare const when: {
5627
5492
  * // Output: []
5628
5493
  * ```
5629
5494
  *
5630
- * @category Filtering
5495
+ * @category filtering
5631
5496
  * @since 2.0.0
5632
5497
  */
5633
5498
  <EX = never, RX = never>(test: Effect.Effect<boolean, EX, RX>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>;
@@ -5651,7 +5516,7 @@ export declare const when: {
5651
5516
  * // Output: []
5652
5517
  * ```
5653
5518
  *
5654
- * @category Filtering
5519
+ * @category filtering
5655
5520
  * @since 2.0.0
5656
5521
  */
5657
5522
  <A, E, R, EX = never, RX = never>(self: Stream<A, E, R>, test: Effect.Effect<boolean, EX, RX>): Stream<A, E | EX, R | RX>;
@@ -5682,7 +5547,7 @@ export declare const when: {
5682
5547
  * // Output: [ [1, 2, 3], [4, 5, 6] ]
5683
5548
  * ```
5684
5549
  *
5685
- * @category Destructors
5550
+ * @category destructors
5686
5551
  * @since 2.0.0
5687
5552
  */
5688
5553
  export declare const peel: {
@@ -5712,7 +5577,7 @@ export declare const peel: {
5712
5577
  * // Output: [ [1, 2, 3], [4, 5, 6] ]
5713
5578
  * ```
5714
5579
  *
5715
- * @category Destructors
5580
+ * @category destructors
5716
5581
  * @since 2.0.0
5717
5582
  */
5718
5583
  <A2, A, E2, R2>(sink: Sink.Sink<A2, A, A, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<[A2, Stream<A, E, never>], E2 | E, Scope.Scope | R2 | R>;
@@ -5742,7 +5607,7 @@ export declare const peel: {
5742
5607
  * // Output: [ [1, 2, 3], [4, 5, 6] ]
5743
5608
  * ```
5744
5609
  *
5745
- * @category Destructors
5610
+ * @category destructors
5746
5611
  * @since 2.0.0
5747
5612
  */
5748
5613
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<A2, A, A, E2, R2>): Effect.Effect<[A2, Stream<A, E, never>], E | E2, Scope.Scope | R | R2>;
@@ -5857,12 +5722,6 @@ export declare const buffer: {
5857
5722
  * buffer is full. This combinator preserves chunking and is best with
5858
5723
  * power-of-2 capacities.
5859
5724
  *
5860
- * **Previously Known As**
5861
- *
5862
- * This API replaces the following from Effect 3.x:
5863
- *
5864
- * - `Stream.bufferChunks`
5865
- *
5866
5725
  * **Example** (Buffering stream chunks)
5867
5726
  *
5868
5727
  * ```ts
@@ -5880,7 +5739,7 @@ export declare const buffer: {
5880
5739
  * ```
5881
5740
  *
5882
5741
  * @category Rate Limiting
5883
- * @since 2.0.0
5742
+ * @since 4.0.0
5884
5743
  */
5885
5744
  export declare const bufferArray: {
5886
5745
  /**
@@ -5892,12 +5751,6 @@ export declare const bufferArray: {
5892
5751
  * buffer is full. This combinator preserves chunking and is best with
5893
5752
  * power-of-2 capacities.
5894
5753
  *
5895
- * **Previously Known As**
5896
- *
5897
- * This API replaces the following from Effect 3.x:
5898
- *
5899
- * - `Stream.bufferChunks`
5900
- *
5901
5754
  * **Example** (Buffering stream chunks)
5902
5755
  *
5903
5756
  * ```ts
@@ -5915,7 +5768,7 @@ export declare const bufferArray: {
5915
5768
  * ```
5916
5769
  *
5917
5770
  * @category Rate Limiting
5918
- * @since 2.0.0
5771
+ * @since 4.0.0
5919
5772
  */
5920
5773
  (options: {
5921
5774
  readonly capacity: "unbounded";
@@ -5932,12 +5785,6 @@ export declare const bufferArray: {
5932
5785
  * buffer is full. This combinator preserves chunking and is best with
5933
5786
  * power-of-2 capacities.
5934
5787
  *
5935
- * **Previously Known As**
5936
- *
5937
- * This API replaces the following from Effect 3.x:
5938
- *
5939
- * - `Stream.bufferChunks`
5940
- *
5941
5788
  * **Example** (Buffering stream chunks)
5942
5789
  *
5943
5790
  * ```ts
@@ -5955,7 +5802,7 @@ export declare const bufferArray: {
5955
5802
  * ```
5956
5803
  *
5957
5804
  * @category Rate Limiting
5958
- * @since 2.0.0
5805
+ * @since 4.0.0
5959
5806
  */
5960
5807
  <A, E, R>(self: Stream<A, E, R>, options: {
5961
5808
  readonly capacity: "unbounded";
@@ -5969,12 +5816,6 @@ export declare const bufferArray: {
5969
5816
  * one fails. Allows recovery from all causes of failure, including
5970
5817
  * interruption if the stream is uninterruptible.
5971
5818
  *
5972
- * **Previously Known As**
5973
- *
5974
- * This API replaces the following from Effect 3.x:
5975
- *
5976
- * - `Stream.catchAllCause`
5977
- *
5978
5819
  * **Example** (Catching stream causes)
5979
5820
  *
5980
5821
  * ```ts
@@ -5998,8 +5839,8 @@ export declare const bufferArray: {
5998
5839
  * // Output: [ 1, 2, 999 ]
5999
5840
  * ```
6000
5841
  *
6001
- * @category Error Handling
6002
- * @since 4.0.0
5842
+ * @category error handling
5843
+ * @since 2.0.0
6003
5844
  */
6004
5845
  export declare const catchCause: {
6005
5846
  /**
@@ -6007,12 +5848,6 @@ export declare const catchCause: {
6007
5848
  * one fails. Allows recovery from all causes of failure, including
6008
5849
  * interruption if the stream is uninterruptible.
6009
5850
  *
6010
- * **Previously Known As**
6011
- *
6012
- * This API replaces the following from Effect 3.x:
6013
- *
6014
- * - `Stream.catchAllCause`
6015
- *
6016
5851
  * **Example** (Catching stream causes)
6017
5852
  *
6018
5853
  * ```ts
@@ -6036,8 +5871,8 @@ export declare const catchCause: {
6036
5871
  * // Output: [ 1, 2, 999 ]
6037
5872
  * ```
6038
5873
  *
6039
- * @category Error Handling
6040
- * @since 4.0.0
5874
+ * @category error handling
5875
+ * @since 2.0.0
6041
5876
  */
6042
5877
  <E, A2, E2, R2>(f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A | A2, E2, R2 | R>;
6043
5878
  /**
@@ -6045,12 +5880,6 @@ export declare const catchCause: {
6045
5880
  * one fails. Allows recovery from all causes of failure, including
6046
5881
  * interruption if the stream is uninterruptible.
6047
5882
  *
6048
- * **Previously Known As**
6049
- *
6050
- * This API replaces the following from Effect 3.x:
6051
- *
6052
- * - `Stream.catchAllCause`
6053
- *
6054
5883
  * **Example** (Catching stream causes)
6055
5884
  *
6056
5885
  * ```ts
@@ -6074,8 +5903,8 @@ export declare const catchCause: {
6074
5903
  * // Output: [ 1, 2, 999 ]
6075
5904
  * ```
6076
5905
  *
6077
- * @category Error Handling
6078
- * @since 4.0.0
5906
+ * @category error handling
5907
+ * @since 2.0.0
6079
5908
  */
6080
5909
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>): Stream<A | A2, E2, R | R2>;
6081
5910
  };
@@ -6083,12 +5912,6 @@ export declare const catchCause: {
6083
5912
  * Runs an effect when the stream fails without changing its values or error,
6084
5913
  * unless the tap effect itself fails.
6085
5914
  *
6086
- * **Previously Known As**
6087
- *
6088
- * This API replaces the following from Effect 3.x:
6089
- *
6090
- * - `Stream.tapErrorCause`
6091
- *
6092
5915
  * **Example** (Tapping stream causes)
6093
5916
  *
6094
5917
  * ```ts
@@ -6110,20 +5933,14 @@ export declare const catchCause: {
6110
5933
  * // Output: [ 1, 2, 0 ]
6111
5934
  * ```
6112
5935
  *
6113
- * @category Error Handling
6114
- * @since 4.0.0
5936
+ * @category error handling
5937
+ * @since 2.0.0
6115
5938
  */
6116
5939
  export declare const tapCause: {
6117
5940
  /**
6118
5941
  * Runs an effect when the stream fails without changing its values or error,
6119
5942
  * unless the tap effect itself fails.
6120
5943
  *
6121
- * **Previously Known As**
6122
- *
6123
- * This API replaces the following from Effect 3.x:
6124
- *
6125
- * - `Stream.tapErrorCause`
6126
- *
6127
5944
  * **Example** (Tapping stream causes)
6128
5945
  *
6129
5946
  * ```ts
@@ -6145,20 +5962,14 @@ export declare const tapCause: {
6145
5962
  * // Output: [ 1, 2, 0 ]
6146
5963
  * ```
6147
5964
  *
6148
- * @category Error Handling
6149
- * @since 4.0.0
5965
+ * @category error handling
5966
+ * @since 2.0.0
6150
5967
  */
6151
5968
  <E, A2, E2, R2>(f: (cause: Cause.Cause<E>) => Effect.Effect<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>;
6152
5969
  /**
6153
5970
  * Runs an effect when the stream fails without changing its values or error,
6154
5971
  * unless the tap effect itself fails.
6155
5972
  *
6156
- * **Previously Known As**
6157
- *
6158
- * This API replaces the following from Effect 3.x:
6159
- *
6160
- * - `Stream.tapErrorCause`
6161
- *
6162
5973
  * **Example** (Tapping stream causes)
6163
5974
  *
6164
5975
  * ```ts
@@ -6180,8 +5991,8 @@ export declare const tapCause: {
6180
5991
  * // Output: [ 1, 2, 0 ]
6181
5992
  * ```
6182
5993
  *
6183
- * @category Error Handling
6184
- * @since 4.0.0
5994
+ * @category error handling
5995
+ * @since 2.0.0
6185
5996
  */
6186
5997
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (cause: Cause.Cause<E>) => Effect.Effect<A2, E2, R2>): Stream<A, E | E2, R | R2>;
6187
5998
  };
@@ -6193,12 +6004,6 @@ export {
6193
6004
  /**
6194
6005
  * Switches over to the stream produced by the provided function if this one fails.
6195
6006
  *
6196
- * **Previously Known As**
6197
- *
6198
- * This API replaces the following from Effect 3.x:
6199
- *
6200
- * - `Stream.catchAll`
6201
- *
6202
6007
  * **Example** (Catching stream failures)
6203
6008
  *
6204
6009
  * ```ts
@@ -6218,7 +6023,7 @@ export {
6218
6023
  * // Output: [ 1, 2, 999 ]
6219
6024
  * ```
6220
6025
  *
6221
- * @category Error Handling
6026
+ * @category error handling
6222
6027
  * @since 4.0.0
6223
6028
  */
6224
6029
  catch_ as catch };
@@ -6247,8 +6052,8 @@ catch_ as catch };
6247
6052
  * // [ 1, 2, 999 ]
6248
6053
  * ```
6249
6054
  *
6250
- * @category Error Handling
6251
- * @since 4.0.0
6055
+ * @category error handling
6056
+ * @since 2.0.0
6252
6057
  */
6253
6058
  export declare const tapError: {
6254
6059
  /**
@@ -6276,8 +6081,8 @@ export declare const tapError: {
6276
6081
  * // [ 1, 2, 999 ]
6277
6082
  * ```
6278
6083
  *
6279
- * @category Error Handling
6280
- * @since 4.0.0
6084
+ * @category error handling
6085
+ * @since 2.0.0
6281
6086
  */
6282
6087
  <E, A2, E2, R2>(f: (error: E) => Effect.Effect<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>;
6283
6088
  /**
@@ -6305,8 +6110,8 @@ export declare const tapError: {
6305
6110
  * // [ 1, 2, 999 ]
6306
6111
  * ```
6307
6112
  *
6308
- * @category Error Handling
6309
- * @since 4.0.0
6113
+ * @category error handling
6114
+ * @since 2.0.0
6310
6115
  */
6311
6116
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, f: (error: E) => Effect.Effect<A2, E2, R2>): Stream<A, E | E2, R | R2>;
6312
6117
  };
@@ -6317,12 +6122,6 @@ export declare const tapError: {
6317
6122
  * stream. Non-matching failures propagate downstream, so the error type is
6318
6123
  * preserved unless the filter narrows it.
6319
6124
  *
6320
- * **Previously Known As**
6321
- *
6322
- * This API replaces the following from Effect 3.x:
6323
- *
6324
- * - `Stream.catchSome`
6325
- *
6326
6125
  * **Example** (Catching matching failures)
6327
6126
  *
6328
6127
  * ```ts
@@ -6345,7 +6144,7 @@ export declare const tapError: {
6345
6144
  * Effect.runPromise(program)
6346
6145
  * ```
6347
6146
  *
6348
- * @category Error Handling
6147
+ * @category error handling
6349
6148
  * @since 4.0.0
6350
6149
  */
6351
6150
  export declare const catchIf: {
@@ -6356,12 +6155,6 @@ export declare const catchIf: {
6356
6155
  * stream. Non-matching failures propagate downstream, so the error type is
6357
6156
  * preserved unless the filter narrows it.
6358
6157
  *
6359
- * **Previously Known As**
6360
- *
6361
- * This API replaces the following from Effect 3.x:
6362
- *
6363
- * - `Stream.catchSome`
6364
- *
6365
6158
  * **Example** (Catching matching failures)
6366
6159
  *
6367
6160
  * ```ts
@@ -6384,7 +6177,7 @@ export declare const catchIf: {
6384
6177
  * Effect.runPromise(program)
6385
6178
  * ```
6386
6179
  *
6387
- * @category Error Handling
6180
+ * @category error handling
6388
6181
  * @since 4.0.0
6389
6182
  */
6390
6183
  <E, EB extends E, A2, E2, R2, A3 = never, E3 = Exclude<E, EB>, R3 = never>(refinement: Refinement<NoInfer<E>, EB>, f: (e: EB) => Stream<A2, E2, R2>, orElse?: ((e: Exclude<E, EB>) => Stream<A3, E3, R3>) | undefined): <A, R>(self: Stream<A, E, R>) => Stream<A2 | A | A3, E2 | E3, R2 | R | R3>;
@@ -6395,12 +6188,6 @@ export declare const catchIf: {
6395
6188
  * stream. Non-matching failures propagate downstream, so the error type is
6396
6189
  * preserved unless the filter narrows it.
6397
6190
  *
6398
- * **Previously Known As**
6399
- *
6400
- * This API replaces the following from Effect 3.x:
6401
- *
6402
- * - `Stream.catchSome`
6403
- *
6404
6191
  * **Example** (Catching matching failures)
6405
6192
  *
6406
6193
  * ```ts
@@ -6423,7 +6210,7 @@ export declare const catchIf: {
6423
6210
  * Effect.runPromise(program)
6424
6211
  * ```
6425
6212
  *
6426
- * @category Error Handling
6213
+ * @category error handling
6427
6214
  * @since 4.0.0
6428
6215
  */
6429
6216
  <E, A2, E2, R2, A3 = never, E3 = E, R3 = never>(predicate: Predicate<NoInfer<E>>, f: (e: NoInfer<E>) => Stream<A2, E2, R2>, orElse?: ((e: NoInfer<E>) => Stream<A3, E3, R3>) | undefined): <A, R>(self: Stream<A, E, R>) => Stream<A2 | A | A3, E2 | E3, R2 | R | R3>;
@@ -6434,12 +6221,6 @@ export declare const catchIf: {
6434
6221
  * stream. Non-matching failures propagate downstream, so the error type is
6435
6222
  * preserved unless the filter narrows it.
6436
6223
  *
6437
- * **Previously Known As**
6438
- *
6439
- * This API replaces the following from Effect 3.x:
6440
- *
6441
- * - `Stream.catchSome`
6442
- *
6443
6224
  * **Example** (Catching matching failures)
6444
6225
  *
6445
6226
  * ```ts
@@ -6462,7 +6243,7 @@ export declare const catchIf: {
6462
6243
  * Effect.runPromise(program)
6463
6244
  * ```
6464
6245
  *
6465
- * @category Error Handling
6246
+ * @category error handling
6466
6247
  * @since 4.0.0
6467
6248
  */
6468
6249
  <A, E, R, EB extends E, A2, E2, R2, A3 = never, E3 = Exclude<E, EB>, R3 = never>(self: Stream<A, E, R>, refinement: Refinement<E, EB>, f: (e: EB) => Stream<A2, E2, R2>, orElse?: ((e: Exclude<E, EB>) => Stream<A3, E3, R3>) | undefined): Stream<A | A2 | A3, E2 | E3, R | R2 | R3>;
@@ -6473,12 +6254,6 @@ export declare const catchIf: {
6473
6254
  * stream. Non-matching failures propagate downstream, so the error type is
6474
6255
  * preserved unless the filter narrows it.
6475
6256
  *
6476
- * **Previously Known As**
6477
- *
6478
- * This API replaces the following from Effect 3.x:
6479
- *
6480
- * - `Stream.catchSome`
6481
- *
6482
6257
  * **Example** (Catching matching failures)
6483
6258
  *
6484
6259
  * ```ts
@@ -6501,7 +6276,7 @@ export declare const catchIf: {
6501
6276
  * Effect.runPromise(program)
6502
6277
  * ```
6503
6278
  *
6504
- * @category Error Handling
6279
+ * @category error handling
6505
6280
  * @since 4.0.0
6506
6281
  */
6507
6282
  <A, E, R, A2, E2, R2, A3 = never, E3 = E, R3 = never>(self: Stream<A, E, R>, predicate: Predicate<E>, f: (e: E) => Stream<A2, E2, R2>, orElse?: ((e: E) => Stream<A3, E3, R3>) | undefined): Stream<A | A2 | A3, E2 | E3, R | R2 | R3>;
@@ -6510,7 +6285,7 @@ export declare const catchIf: {
6510
6285
  * Recovers from errors that match a `Filter` by switching to a recovery
6511
6286
  * stream.
6512
6287
  *
6513
- * @category Error Handling
6288
+ * @category error handling
6514
6289
  * @since 4.0.0
6515
6290
  */
6516
6291
  export declare const catchFilter: {
@@ -6518,7 +6293,7 @@ export declare const catchFilter: {
6518
6293
  * Recovers from errors that match a `Filter` by switching to a recovery
6519
6294
  * stream.
6520
6295
  *
6521
- * @category Error Handling
6296
+ * @category error handling
6522
6297
  * @since 4.0.0
6523
6298
  */
6524
6299
  <E, EB, A2, E2, R2, X, A3 = never, E3 = X, R3 = never>(filter: Filter.Filter<NoInfer<E>, EB, X>, f: (failure: EB) => Stream<A2, E2, R2>, orElse?: ((failure: X) => Stream<A3, E3, R3>) | undefined): <A, R>(self: Stream<A, E, R>) => Stream<A | A2 | A3, E2 | E3, R | R2 | R3>;
@@ -6526,7 +6301,7 @@ export declare const catchFilter: {
6526
6301
  * Recovers from errors that match a `Filter` by switching to a recovery
6527
6302
  * stream.
6528
6303
  *
6529
- * @category Error Handling
6304
+ * @category error handling
6530
6305
  * @since 4.0.0
6531
6306
  */
6532
6307
  <A, E, R, EB, A2, E2, R2, X, A3 = never, E3 = X, R3 = never>(self: Stream<A, E, R>, filter: Filter.Filter<NoInfer<E>, EB, X>, f: (failure: EB) => Stream<A2, E2, R2>, orElse?: ((failure: X) => Stream<A3, E3, R3>) | undefined): Stream<A | A2 | A3, E2 | E3, R | R2 | R3>;
@@ -6562,8 +6337,8 @@ export declare const catchFilter: {
6562
6337
  * Effect.runPromise(program)
6563
6338
  * ```
6564
6339
  *
6565
- * @category Error Handling
6566
- * @since 4.0.0
6340
+ * @category error handling
6341
+ * @since 2.0.0
6567
6342
  */
6568
6343
  export declare const catchTag: {
6569
6344
  /**
@@ -6597,8 +6372,8 @@ export declare const catchTag: {
6597
6372
  * Effect.runPromise(program)
6598
6373
  * ```
6599
6374
  *
6600
- * @category Error Handling
6601
- * @since 4.0.0
6375
+ * @category error handling
6376
+ * @since 2.0.0
6602
6377
  */
6603
6378
  <const K extends Tags<E> | Arr.NonEmptyReadonlyArray<Tags<E>>, E, A1, E1, R1, A2 = never, E2 = ExcludeTag<E, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, R2 = never>(k: K, f: (e: ExtractTag<NoInfer<E>, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Stream<A1, E1, R1>, orElse?: ((e: ExcludeTag<E, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Stream<A2, E2, R2>) | undefined): <A, R>(self: Stream<A, E, R>) => Stream<A1 | A | A2, E1 | E2, R1 | R | R2>;
6604
6379
  /**
@@ -6632,8 +6407,8 @@ export declare const catchTag: {
6632
6407
  * Effect.runPromise(program)
6633
6408
  * ```
6634
6409
  *
6635
- * @category Error Handling
6636
- * @since 4.0.0
6410
+ * @category error handling
6411
+ * @since 2.0.0
6637
6412
  */
6638
6413
  <A, E, R, const K extends Tags<E> | Arr.NonEmptyReadonlyArray<Tags<E>>, R1, E1, A1, A2 = never, E2 = ExcludeTag<E, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>, R2 = never>(self: Stream<A, E, R>, k: K, f: (e: ExtractTag<E, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Stream<A1, E1, R1>, orElse?: ((e: ExcludeTag<E, K extends Arr.NonEmptyReadonlyArray<string> ? K[number] : K>) => Stream<A2, E2, R2>) | undefined): Stream<A1 | A | A2, E1 | E2, R1 | R | R2>;
6639
6414
  };
@@ -6671,8 +6446,8 @@ export declare const catchTag: {
6671
6446
  * // Output: [ "fallback" ]
6672
6447
  * ```
6673
6448
  *
6674
- * @category Error Handling
6675
- * @since 4.0.0
6449
+ * @category error handling
6450
+ * @since 2.0.0
6676
6451
  */
6677
6452
  export declare const catchTags: {
6678
6453
  /**
@@ -6709,8 +6484,8 @@ export declare const catchTags: {
6709
6484
  * // Output: [ "fallback" ]
6710
6485
  * ```
6711
6486
  *
6712
- * @category Error Handling
6713
- * @since 4.0.0
6487
+ * @category error handling
6488
+ * @since 2.0.0
6714
6489
  */
6715
6490
  <E, Cases extends (E extends {
6716
6491
  _tag: string;
@@ -6763,8 +6538,8 @@ export declare const catchTags: {
6763
6538
  * // Output: [ "fallback" ]
6764
6539
  * ```
6765
6540
  *
6766
- * @category Error Handling
6767
- * @since 4.0.0
6541
+ * @category error handling
6542
+ * @since 2.0.0
6768
6543
  */
6769
6544
  <R, E, A, Cases extends (E extends {
6770
6545
  _tag: string;
@@ -6825,7 +6600,7 @@ export declare const catchTags: {
6825
6600
  * // Output: [ "retry: 60" ]
6826
6601
  * ```
6827
6602
  *
6828
- * @category Error Handling
6603
+ * @category error handling
6829
6604
  * @since 4.0.0
6830
6605
  */
6831
6606
  export declare const catchReason: {
@@ -6870,7 +6645,7 @@ export declare const catchReason: {
6870
6645
  * // Output: [ "retry: 60" ]
6871
6646
  * ```
6872
6647
  *
6873
- * @category Error Handling
6648
+ * @category error handling
6874
6649
  * @since 4.0.0
6875
6650
  */
6876
6651
  <K extends Tags<E>, E, RK extends ReasonTags<ExtractTag<NoInfer<E>, K>>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(errorTag: K, reasonTag: RK, f: (reason: ExtractReason<ExtractTag<NoInfer<E>, K>, RK>, error: NarrowReason<ExtractTag<NoInfer<E>, K>, RK>) => Stream<A2, E2, R2>, orElse?: ((reason: ExcludeReason<ExtractTag<NoInfer<E>, K>, RK>, error: OmitReason<ExtractTag<NoInfer<E>, K>, RK>) => Stream<A3, E3, R3>) | undefined): <A, R>(self: Stream<A, E, R>) => Stream<A | A2 | Exclude<A3, unassigned>, (A3 extends unassigned ? E : ExcludeTag<E, K>) | E2 | E3, R | R2 | R3>;
@@ -6915,7 +6690,7 @@ export declare const catchReason: {
6915
6690
  * // Output: [ "retry: 60" ]
6916
6691
  * ```
6917
6692
  *
6918
- * @category Error Handling
6693
+ * @category error handling
6919
6694
  * @since 4.0.0
6920
6695
  */
6921
6696
  <A, E, R, K extends Tags<E>, RK extends ReasonTags<ExtractTag<E, K>>, A2, E2, R2, A3 = unassigned, E3 = never, R3 = never>(self: Stream<A, E, R>, errorTag: K, reasonTag: RK, f: (reason: ExtractReason<ExtractTag<E, K>, RK>, error: NarrowReason<ExtractTag<E, K>, RK>) => Stream<A2, E2, R2>, orElse?: ((reason: ExcludeReason<ExtractTag<E, K>, RK>, error: OmitReason<ExtractTag<E, K>, RK>) => Stream<A3, E3, R3>) | undefined): Stream<A | A2 | Exclude<A3, unassigned>, (A3 extends unassigned ? E : ExcludeTag<E, K>) | E2 | E3, R | R2 | R3>;
@@ -6959,7 +6734,7 @@ export declare const catchReason: {
6959
6734
  * // Output: [ "retry: 60" ]
6960
6735
  * ```
6961
6736
  *
6962
- * @category Error Handling
6737
+ * @category error handling
6963
6738
  * @since 4.0.0
6964
6739
  */
6965
6740
  export declare const catchReasons: {
@@ -7002,7 +6777,7 @@ export declare const catchReasons: {
7002
6777
  * // Output: [ "retry: 60" ]
7003
6778
  * ```
7004
6779
  *
7005
- * @category Error Handling
6780
+ * @category error handling
7006
6781
  * @since 4.0.0
7007
6782
  */
7008
6783
  <K extends Tags<E>, E, Cases extends {
@@ -7053,7 +6828,7 @@ export declare const catchReasons: {
7053
6828
  * // Output: [ "retry: 60" ]
7054
6829
  * ```
7055
6830
  *
7056
- * @category Error Handling
6831
+ * @category error handling
7057
6832
  * @since 4.0.0
7058
6833
  */
7059
6834
  <A, E, R, K extends Tags<E>, Cases extends {
@@ -7087,7 +6862,7 @@ export declare const catchReasons: {
7087
6862
  * // Output: [ "recovered from mapped: bad" ]
7088
6863
  * ```
7089
6864
  *
7090
- * @category Error Handling
6865
+ * @category error handling
7091
6866
  * @since 2.0.0
7092
6867
  */
7093
6868
  export declare const mapError: {
@@ -7112,7 +6887,7 @@ export declare const mapError: {
7112
6887
  * // Output: [ "recovered from mapped: bad" ]
7113
6888
  * ```
7114
6889
  *
7115
- * @category Error Handling
6890
+ * @category error handling
7116
6891
  * @since 2.0.0
7117
6892
  */
7118
6893
  <E, E2>(f: (error: E) => E2): <A, R>(self: Stream<A, E, R>) => Stream<A, E2, R>;
@@ -7137,7 +6912,7 @@ export declare const mapError: {
7137
6912
  * // Output: [ "recovered from mapped: bad" ]
7138
6913
  * ```
7139
6914
  *
7140
- * @category Error Handling
6915
+ * @category error handling
7141
6916
  * @since 2.0.0
7142
6917
  */
7143
6918
  <A, E, R, E2>(self: Stream<A, E, R>, f: (error: E) => E2): Stream<A, E2, R>;
@@ -7146,12 +6921,6 @@ export declare const mapError: {
7146
6921
  * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream.
7147
6922
  * Non-matching causes are re-emitted as failures.
7148
6923
  *
7149
- * **Previously Known As**
7150
- *
7151
- * This API replaces the following from Effect 3.x:
7152
- *
7153
- * - `Stream.catchSomeCause`
7154
- *
7155
6924
  * **Example** (Catching matching causes)
7156
6925
  *
7157
6926
  * ```ts
@@ -7173,7 +6942,7 @@ export declare const mapError: {
7173
6942
  * // Output: [ "Recovered: NetworkError" ]
7174
6943
  * ```
7175
6944
  *
7176
- * @category Error Handling
6945
+ * @category error handling
7177
6946
  * @since 4.0.0
7178
6947
  */
7179
6948
  export declare const catchCauseIf: {
@@ -7181,12 +6950,6 @@ export declare const catchCauseIf: {
7181
6950
  * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream.
7182
6951
  * Non-matching causes are re-emitted as failures.
7183
6952
  *
7184
- * **Previously Known As**
7185
- *
7186
- * This API replaces the following from Effect 3.x:
7187
- *
7188
- * - `Stream.catchSomeCause`
7189
- *
7190
6953
  * **Example** (Catching matching causes)
7191
6954
  *
7192
6955
  * ```ts
@@ -7208,7 +6971,7 @@ export declare const catchCauseIf: {
7208
6971
  * // Output: [ "Recovered: NetworkError" ]
7209
6972
  * ```
7210
6973
  *
7211
- * @category Error Handling
6974
+ * @category error handling
7212
6975
  * @since 4.0.0
7213
6976
  */
7214
6977
  <E, A2, E2, R2>(predicate: Predicate<Cause.Cause<E>>, f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A | A2, E | E2, R2 | R>;
@@ -7216,12 +6979,6 @@ export declare const catchCauseIf: {
7216
6979
  * Recovers from stream failures by filtering the `Cause` and switching to a recovery stream.
7217
6980
  * Non-matching causes are re-emitted as failures.
7218
6981
  *
7219
- * **Previously Known As**
7220
- *
7221
- * This API replaces the following from Effect 3.x:
7222
- *
7223
- * - `Stream.catchSomeCause`
7224
- *
7225
6982
  * **Example** (Catching matching causes)
7226
6983
  *
7227
6984
  * ```ts
@@ -7243,7 +7000,7 @@ export declare const catchCauseIf: {
7243
7000
  * // Output: [ "Recovered: NetworkError" ]
7244
7001
  * ```
7245
7002
  *
7246
- * @category Error Handling
7003
+ * @category error handling
7247
7004
  * @since 4.0.0
7248
7005
  */
7249
7006
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, predicate: Predicate<Cause.Cause<E>>, f: (cause: Cause.Cause<E>) => Stream<A2, E2, R2>): Stream<A | A2, E | E2, R | R2>;
@@ -7252,7 +7009,7 @@ export declare const catchCauseIf: {
7252
7009
  * Recovers from stream failures by filtering the `Cause` and switching to a
7253
7010
  * recovery stream.
7254
7011
  *
7255
- * @category Error Handling
7012
+ * @category error handling
7256
7013
  * @since 4.0.0
7257
7014
  */
7258
7015
  export declare const catchCauseFilter: {
@@ -7260,7 +7017,7 @@ export declare const catchCauseFilter: {
7260
7017
  * Recovers from stream failures by filtering the `Cause` and switching to a
7261
7018
  * recovery stream.
7262
7019
  *
7263
- * @category Error Handling
7020
+ * @category error handling
7264
7021
  * @since 4.0.0
7265
7022
  */
7266
7023
  <E, EB, A2, E2, R2, X extends Cause.Cause<any>>(filter: Filter.Filter<Cause.Cause<E>, EB, X>, f: (failure: EB, cause: Cause.Cause<E>) => Stream<A2, E2, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A | A2, Cause.Cause.Error<X> | E2, R2 | R>;
@@ -7268,7 +7025,7 @@ export declare const catchCauseFilter: {
7268
7025
  * Recovers from stream failures by filtering the `Cause` and switching to a
7269
7026
  * recovery stream.
7270
7027
  *
7271
- * @category Error Handling
7028
+ * @category error handling
7272
7029
  * @since 4.0.0
7273
7030
  */
7274
7031
  <A, E, R, EB, A2, E2, R2, X extends Cause.Cause<any>>(self: Stream<A, E, R>, filter: Filter.Filter<Cause.Cause<E>, EB, X>, f: (failure: EB, cause: Cause.Cause<E>) => Stream<A2, E2, R2>): Stream<A | A2, Cause.Cause.Error<X> | E2, R | R2>;
@@ -7293,7 +7050,7 @@ export declare const catchCauseFilter: {
7293
7050
  * // Output: [ 1, 2 ]
7294
7051
  * ```
7295
7052
  *
7296
- * @category Error Handling
7053
+ * @category error handling
7297
7054
  * @since 2.0.0
7298
7055
  */
7299
7056
  export declare const orElseIfEmpty: {
@@ -7317,7 +7074,7 @@ export declare const orElseIfEmpty: {
7317
7074
  * // Output: [ 1, 2 ]
7318
7075
  * ```
7319
7076
  *
7320
- * @category Error Handling
7077
+ * @category error handling
7321
7078
  * @since 2.0.0
7322
7079
  */
7323
7080
  <E, A2, E2, R2>(orElse: LazyArg<Stream<A2, E2, R2>>): <A, R>(self: Stream<A, E, R>) => Stream<A | A2, E | E2, R | R2>;
@@ -7341,7 +7098,7 @@ export declare const orElseIfEmpty: {
7341
7098
  * // Output: [ 1, 2 ]
7342
7099
  * ```
7343
7100
  *
7344
- * @category Error Handling
7101
+ * @category error handling
7345
7102
  * @since 2.0.0
7346
7103
  */
7347
7104
  <A, E, R, A2, E2, R2>(self: Stream<A, E, R>, orElse: LazyArg<Stream<A2, E2, R2>>): Stream<A | A2, E | E2, R | R2>;
@@ -7367,7 +7124,7 @@ export declare const orElseIfEmpty: {
7367
7124
  * // Output: [ "Recovered: NetworkError" ]
7368
7125
  * ```
7369
7126
  *
7370
- * @category Error Handling
7127
+ * @category error handling
7371
7128
  * @since 2.0.0
7372
7129
  */
7373
7130
  export declare const orElseSucceed: {
@@ -7392,7 +7149,7 @@ export declare const orElseSucceed: {
7392
7149
  * // Output: [ "Recovered: NetworkError" ]
7393
7150
  * ```
7394
7151
  *
7395
- * @category Error Handling
7152
+ * @category error handling
7396
7153
  * @since 2.0.0
7397
7154
  */
7398
7155
  <E, A2>(f: (error: E) => A2): <A, R>(self: Stream<A, E, R>) => Stream<A | A2, never, R>;
@@ -7417,7 +7174,7 @@ export declare const orElseSucceed: {
7417
7174
  * // Output: [ "Recovered: NetworkError" ]
7418
7175
  * ```
7419
7176
  *
7420
- * @category Error Handling
7177
+ * @category error handling
7421
7178
  * @since 2.0.0
7422
7179
  */
7423
7180
  <A, E, R, A2>(self: Stream<A, E, R>, f: (error: E) => A2): Stream<A | A2, never, R>;
@@ -7443,7 +7200,7 @@ export declare const orElseSucceed: {
7443
7200
  * // Output: [ 1, 2, 3 ]
7444
7201
  * ```
7445
7202
  *
7446
- * @category Error Handling
7203
+ * @category error handling
7447
7204
  * @since 2.0.0
7448
7205
  */
7449
7206
  export declare const orDie: <A, E, R>(self: Stream<A, E, R>) => Stream<A, never, R>;
@@ -7486,7 +7243,7 @@ export declare const orDie: <A, E, R>(self: Stream<A, E, R>) => Stream<A, never,
7486
7243
  * // []
7487
7244
  * ```
7488
7245
  *
7489
- * @category Error Handling
7246
+ * @category error handling
7490
7247
  * @since 4.0.0
7491
7248
  */
7492
7249
  export declare const ignore: <Arg extends Stream<any, any, any> | {
@@ -7516,7 +7273,7 @@ export declare const ignore: <Arg extends Stream<any, any, any> | {
7516
7273
  * // [ 1, 2 ]
7517
7274
  * ```
7518
7275
  *
7519
- * @category Error Handling
7276
+ * @category error handling
7520
7277
  * @since 4.0.0
7521
7278
  */
7522
7279
  export declare const ignoreCause: <Arg extends Stream<any, any, any> | {
@@ -7553,7 +7310,7 @@ export declare const ignoreCause: <Arg extends Stream<any, any, any> | {
7553
7310
  * // Output: [ 1, 1 ]
7554
7311
  * ```
7555
7312
  *
7556
- * @category Error Handling
7313
+ * @category error handling
7557
7314
  * @since 2.0.0
7558
7315
  */
7559
7316
  export declare const retry: {
@@ -7586,7 +7343,7 @@ export declare const retry: {
7586
7343
  * // Output: [ 1, 1 ]
7587
7344
  * ```
7588
7345
  *
7589
- * @category Error Handling
7346
+ * @category error handling
7590
7347
  * @since 2.0.0
7591
7348
  */
7592
7349
  <E, X, E2, R2>(policy: Schedule.Schedule<X, NoInfer<E>, E2, R2> | (($: <SO, SE, SR>(_: Schedule.Schedule<SO, NoInfer<E>, SE, SR>) => Schedule.Schedule<SO, E, SE, SR>) => Schedule.Schedule<X, NoInfer<E>, E2, R2>)): <A, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R2 | R>;
@@ -7619,7 +7376,7 @@ export declare const retry: {
7619
7376
  * // Output: [ 1, 1 ]
7620
7377
  * ```
7621
7378
  *
7622
- * @category Error Handling
7379
+ * @category error handling
7623
7380
  * @since 2.0.0
7624
7381
  */
7625
7382
  <A, E, R, X, E2, R2>(self: Stream<A, E, R>, policy: Schedule.Schedule<X, NoInfer<E>, E2, R2> | (($: <SO, SE, SR>(_: Schedule.Schedule<SO, NoInfer<E>, SE, SR>) => Schedule.Schedule<SO, E, SE, SR>) => Schedule.Schedule<X, NoInfer<E>, E2, R2>)): Stream<A, E | E2, R2 | R>;
@@ -7635,7 +7392,7 @@ export declare const retry: {
7635
7392
  * **Example** (Applying an execution plan)
7636
7393
  *
7637
7394
  * ```ts
7638
- * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect"
7395
+ * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect"
7639
7396
  *
7640
7397
  * class Service extends Context.Service<Service>()("Service", {
7641
7398
  * make: Effect.succeed({
@@ -7662,9 +7419,8 @@ export declare const retry: {
7662
7419
  * // Output: [ 1, 2, 3 ]
7663
7420
  * ```
7664
7421
  *
7665
- * @category Error Handling
7422
+ * @category error handling
7666
7423
  * @since 3.16.0
7667
- * @experimental
7668
7424
  */
7669
7425
  export declare const withExecutionPlan: {
7670
7426
  /**
@@ -7678,7 +7434,7 @@ export declare const withExecutionPlan: {
7678
7434
  * **Example** (Applying an execution plan)
7679
7435
  *
7680
7436
  * ```ts
7681
- * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect"
7437
+ * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect"
7682
7438
  *
7683
7439
  * class Service extends Context.Service<Service>()("Service", {
7684
7440
  * make: Effect.succeed({
@@ -7705,9 +7461,8 @@ export declare const withExecutionPlan: {
7705
7461
  * // Output: [ 1, 2, 3 ]
7706
7462
  * ```
7707
7463
  *
7708
- * @category Error Handling
7464
+ * @category error handling
7709
7465
  * @since 3.16.0
7710
- * @experimental
7711
7466
  */
7712
7467
  <Input, R2, Provides, PolicyE>(policy: ExecutionPlan.ExecutionPlan<{
7713
7468
  provides: Provides;
@@ -7728,7 +7483,7 @@ export declare const withExecutionPlan: {
7728
7483
  * **Example** (Applying an execution plan)
7729
7484
  *
7730
7485
  * ```ts
7731
- * import { Console, Effect, ExecutionPlan, Layer, Context, Stream } from "effect"
7486
+ * import { Console, Context, Effect, ExecutionPlan, Layer, Stream } from "effect"
7732
7487
  *
7733
7488
  * class Service extends Context.Service<Service>()("Service", {
7734
7489
  * make: Effect.succeed({
@@ -7755,9 +7510,8 @@ export declare const withExecutionPlan: {
7755
7510
  * // Output: [ 1, 2, 3 ]
7756
7511
  * ```
7757
7512
  *
7758
- * @category Error Handling
7513
+ * @category error handling
7759
7514
  * @since 3.16.0
7760
- * @experimental
7761
7515
  */
7762
7516
  <A, E extends Input, R, R2, Input, Provides, PolicyE>(self: Stream<A, E, R>, policy: ExecutionPlan.ExecutionPlan<{
7763
7517
  provides: Provides;
@@ -7788,7 +7542,7 @@ export declare const withExecutionPlan: {
7788
7542
  * // Output: [ 1, 2, 3 ]
7789
7543
  * ```
7790
7544
  *
7791
- * @category Filtering
7545
+ * @category filtering
7792
7546
  * @since 2.0.0
7793
7547
  */
7794
7548
  export declare const take: {
@@ -7812,7 +7566,7 @@ export declare const take: {
7812
7566
  * // Output: [ 1, 2, 3 ]
7813
7567
  * ```
7814
7568
  *
7815
- * @category Filtering
7569
+ * @category filtering
7816
7570
  * @since 2.0.0
7817
7571
  */
7818
7572
  (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
@@ -7836,7 +7590,7 @@ export declare const take: {
7836
7590
  * // Output: [ 1, 2, 3 ]
7837
7591
  * ```
7838
7592
  *
7839
- * @category Filtering
7593
+ * @category filtering
7840
7594
  * @since 2.0.0
7841
7595
  */
7842
7596
  <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>;
@@ -7861,7 +7615,7 @@ export declare const take: {
7861
7615
  * // Output: [ 4, 5, 6 ]
7862
7616
  * ```
7863
7617
  *
7864
- * @category Filtering
7618
+ * @category filtering
7865
7619
  * @since 2.0.0
7866
7620
  */
7867
7621
  export declare const takeRight: {
@@ -7885,7 +7639,7 @@ export declare const takeRight: {
7885
7639
  * // Output: [ 4, 5, 6 ]
7886
7640
  * ```
7887
7641
  *
7888
- * @category Filtering
7642
+ * @category filtering
7889
7643
  * @since 2.0.0
7890
7644
  */
7891
7645
  (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
@@ -7909,7 +7663,7 @@ export declare const takeRight: {
7909
7663
  * // Output: [ 4, 5, 6 ]
7910
7664
  * ```
7911
7665
  *
7912
- * @category Filtering
7666
+ * @category filtering
7913
7667
  * @since 2.0.0
7914
7668
  */
7915
7669
  <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>;
@@ -7943,7 +7697,7 @@ export declare const takeRight: {
7943
7697
  * })
7944
7698
  * ```
7945
7699
  *
7946
- * @category Filtering
7700
+ * @category filtering
7947
7701
  * @since 2.0.0
7948
7702
  */
7949
7703
  export declare const takeUntil: {
@@ -7976,7 +7730,7 @@ export declare const takeUntil: {
7976
7730
  * })
7977
7731
  * ```
7978
7732
  *
7979
- * @category Filtering
7733
+ * @category filtering
7980
7734
  * @since 2.0.0
7981
7735
  */
7982
7736
  <A>(predicate: (a: NoInfer<A>, n: number) => boolean, options?: {
@@ -8011,7 +7765,7 @@ export declare const takeUntil: {
8011
7765
  * })
8012
7766
  * ```
8013
7767
  *
8014
- * @category Filtering
7768
+ * @category filtering
8015
7769
  * @since 2.0.0
8016
7770
  */
8017
7771
  <A, E, R>(self: Stream<A, E, R>, predicate: (a: A, n: number) => boolean, options?: {
@@ -8038,7 +7792,7 @@ export declare const takeUntil: {
8038
7792
  * // Output: [ 1, 2, 3 ]
8039
7793
  * ```
8040
7794
  *
8041
- * @category Filtering
7795
+ * @category filtering
8042
7796
  * @since 2.0.0
8043
7797
  */
8044
7798
  export declare const takeUntilEffect: {
@@ -8062,7 +7816,7 @@ export declare const takeUntilEffect: {
8062
7816
  * // Output: [ 1, 2, 3 ]
8063
7817
  * ```
8064
7818
  *
8065
- * @category Filtering
7819
+ * @category filtering
8066
7820
  * @since 2.0.0
8067
7821
  */
8068
7822
  <A, E2, R2>(predicate: (a: NoInfer<A>, n: number) => Effect.Effect<boolean, E2, R2>, options?: {
@@ -8088,7 +7842,7 @@ export declare const takeUntilEffect: {
8088
7842
  * // Output: [ 1, 2, 3 ]
8089
7843
  * ```
8090
7844
  *
8091
- * @category Filtering
7845
+ * @category filtering
8092
7846
  * @since 2.0.0
8093
7847
  */
8094
7848
  <A, E, R, E2, R2>(self: Stream<A, E, R>, predicate: (a: A, n: number) => Effect.Effect<boolean, E2, R2>, options?: {
@@ -8116,7 +7870,7 @@ export declare const takeUntilEffect: {
8116
7870
  * // Output: [ 1, 2 ]
8117
7871
  * ```
8118
7872
  *
8119
- * @category Filtering
7873
+ * @category filtering
8120
7874
  * @since 2.0.0
8121
7875
  */
8122
7876
  export declare const takeWhile: {
@@ -8141,7 +7895,7 @@ export declare const takeWhile: {
8141
7895
  * // Output: [ 1, 2 ]
8142
7896
  * ```
8143
7897
  *
8144
- * @category Filtering
7898
+ * @category filtering
8145
7899
  * @since 2.0.0
8146
7900
  */
8147
7901
  <A, B extends A>(refinement: (a: NoInfer<A>, n: number) => a is B): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>;
@@ -8166,7 +7920,7 @@ export declare const takeWhile: {
8166
7920
  * // Output: [ 1, 2 ]
8167
7921
  * ```
8168
7922
  *
8169
- * @category Filtering
7923
+ * @category filtering
8170
7924
  * @since 2.0.0
8171
7925
  */
8172
7926
  <A>(predicate: (a: NoInfer<A>, n: number) => boolean): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
@@ -8191,7 +7945,7 @@ export declare const takeWhile: {
8191
7945
  * // Output: [ 1, 2 ]
8192
7946
  * ```
8193
7947
  *
8194
- * @category Filtering
7948
+ * @category filtering
8195
7949
  * @since 2.0.0
8196
7950
  */
8197
7951
  <A, E, R, B extends A>(self: Stream<A, E, R>, refinement: (a: NoInfer<A>, n: number) => a is B): Stream<B, E, R>;
@@ -8216,7 +7970,7 @@ export declare const takeWhile: {
8216
7970
  * // Output: [ 1, 2 ]
8217
7971
  * ```
8218
7972
  *
8219
- * @category Filtering
7973
+ * @category filtering
8220
7974
  * @since 2.0.0
8221
7975
  */
8222
7976
  <A, E, R>(self: Stream<A, E, R>, predicate: (a: NoInfer<A>, n: number) => boolean): Stream<A, E, R>;
@@ -8227,7 +7981,7 @@ export declare const takeWhile: {
8227
7981
  *
8228
7982
  * The stream stops at the first `Result.fail` returned by the filter.
8229
7983
  *
8230
- * @category Filtering
7984
+ * @category filtering
8231
7985
  * @since 4.0.0
8232
7986
  */
8233
7987
  export declare const takeWhileFilter: {
@@ -8237,7 +7991,7 @@ export declare const takeWhileFilter: {
8237
7991
  *
8238
7992
  * The stream stops at the first `Result.fail` returned by the filter.
8239
7993
  *
8240
- * @category Filtering
7994
+ * @category filtering
8241
7995
  * @since 4.0.0
8242
7996
  */
8243
7997
  <A, B, X>(f: Filter.Filter<NoInfer<A>, B, X>): <E, R>(self: Stream<A, E, R>) => Stream<B, E, R>;
@@ -8247,7 +8001,7 @@ export declare const takeWhileFilter: {
8247
8001
  *
8248
8002
  * The stream stops at the first `Result.fail` returned by the filter.
8249
8003
  *
8250
- * @category Filtering
8004
+ * @category filtering
8251
8005
  * @since 4.0.0
8252
8006
  */
8253
8007
  <A, E, R, B, X>(self: Stream<A, E, R>, f: Filter.Filter<NoInfer<A>, B, X>): Stream<B, E, R>;
@@ -8272,8 +8026,8 @@ export declare const takeWhileFilter: {
8272
8026
  * // Output: [ 1, 2 ]
8273
8027
  * ```
8274
8028
  *
8275
- * @category Filtering
8276
- * @since 2.0.0
8029
+ * @category filtering
8030
+ * @since 4.0.0
8277
8031
  */
8278
8032
  export declare const takeWhileEffect: {
8279
8033
  /**
@@ -8296,8 +8050,8 @@ export declare const takeWhileEffect: {
8296
8050
  * // Output: [ 1, 2 ]
8297
8051
  * ```
8298
8052
  *
8299
- * @category Filtering
8300
- * @since 2.0.0
8053
+ * @category filtering
8054
+ * @since 4.0.0
8301
8055
  */
8302
8056
  <A, E2, R2>(predicate: (a: NoInfer<A>, n: number) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E | E2, R | R2>;
8303
8057
  /**
@@ -8320,8 +8074,8 @@ export declare const takeWhileEffect: {
8320
8074
  * // Output: [ 1, 2 ]
8321
8075
  * ```
8322
8076
  *
8323
- * @category Filtering
8324
- * @since 2.0.0
8077
+ * @category filtering
8078
+ * @since 4.0.0
8325
8079
  */
8326
8080
  <A, E, R, E2, R2>(self: Stream<A, E, R>, predicate: (a: NoInfer<A>, n: number) => Effect.Effect<boolean, E2, R2>): Stream<A, E | E2, R | R2>;
8327
8081
  };
@@ -8345,7 +8099,7 @@ export declare const takeWhileEffect: {
8345
8099
  * // Output: [ 3, 4, 5 ]
8346
8100
  * ```
8347
8101
  *
8348
- * @category Filtering
8102
+ * @category filtering
8349
8103
  * @since 2.0.0
8350
8104
  */
8351
8105
  export declare const drop: {
@@ -8369,7 +8123,7 @@ export declare const drop: {
8369
8123
  * // Output: [ 3, 4, 5 ]
8370
8124
  * ```
8371
8125
  *
8372
- * @category Filtering
8126
+ * @category filtering
8373
8127
  * @since 2.0.0
8374
8128
  */
8375
8129
  (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
@@ -8393,7 +8147,7 @@ export declare const drop: {
8393
8147
  * // Output: [ 3, 4, 5 ]
8394
8148
  * ```
8395
8149
  *
8396
- * @category Filtering
8150
+ * @category filtering
8397
8151
  * @since 2.0.0
8398
8152
  */
8399
8153
  <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>;
@@ -8416,7 +8170,7 @@ export declare const drop: {
8416
8170
  * })
8417
8171
  * ```
8418
8172
  *
8419
- * @category Filtering
8173
+ * @category filtering
8420
8174
  * @since 2.0.0
8421
8175
  */
8422
8176
  export declare const dropUntil: {
@@ -8438,7 +8192,7 @@ export declare const dropUntil: {
8438
8192
  * })
8439
8193
  * ```
8440
8194
  *
8441
- * @category Filtering
8195
+ * @category filtering
8442
8196
  * @since 2.0.0
8443
8197
  */
8444
8198
  <A>(predicate: (a: NoInfer<A>, index: number) => boolean): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
@@ -8460,7 +8214,7 @@ export declare const dropUntil: {
8460
8214
  * })
8461
8215
  * ```
8462
8216
  *
8463
- * @category Filtering
8217
+ * @category filtering
8464
8218
  * @since 2.0.0
8465
8219
  */
8466
8220
  <A, E, R>(self: Stream<A, E, R>, predicate: (a: NoInfer<A>, index: number) => boolean): Stream<A, E, R>;
@@ -8488,7 +8242,7 @@ export declare const dropUntil: {
8488
8242
  * // Output: [ 4, 5 ]
8489
8243
  * ```
8490
8244
  *
8491
- * @category Filtering
8245
+ * @category filtering
8492
8246
  * @since 2.0.0
8493
8247
  */
8494
8248
  export declare const dropUntilEffect: {
@@ -8515,7 +8269,7 @@ export declare const dropUntilEffect: {
8515
8269
  * // Output: [ 4, 5 ]
8516
8270
  * ```
8517
8271
  *
8518
- * @category Filtering
8272
+ * @category filtering
8519
8273
  * @since 2.0.0
8520
8274
  */
8521
8275
  <A, E2, R2>(predicate: (a: NoInfer<A>, index: number) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
@@ -8542,7 +8296,7 @@ export declare const dropUntilEffect: {
8542
8296
  * // Output: [ 4, 5 ]
8543
8297
  * ```
8544
8298
  *
8545
- * @category Filtering
8299
+ * @category filtering
8546
8300
  * @since 2.0.0
8547
8301
  */
8548
8302
  <A, E, R, E2, R2>(self: Stream<A, E, R>, predicate: (a: NoInfer<A>, index: number) => Effect.Effect<boolean, E2, R2>): Stream<A, E | E2, R | R2>;
@@ -8567,7 +8321,7 @@ export declare const dropUntilEffect: {
8567
8321
  * // Output: [ 3, 4, 5 ]
8568
8322
  * ```
8569
8323
  *
8570
- * @category Filtering
8324
+ * @category filtering
8571
8325
  * @since 2.0.0
8572
8326
  */
8573
8327
  export declare const dropWhile: {
@@ -8591,7 +8345,7 @@ export declare const dropWhile: {
8591
8345
  * // Output: [ 3, 4, 5 ]
8592
8346
  * ```
8593
8347
  *
8594
- * @category Filtering
8348
+ * @category filtering
8595
8349
  * @since 2.0.0
8596
8350
  */
8597
8351
  <A>(predicate: (a: NoInfer<A>, index: number) => boolean): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
@@ -8615,7 +8369,7 @@ export declare const dropWhile: {
8615
8369
  * // Output: [ 3, 4, 5 ]
8616
8370
  * ```
8617
8371
  *
8618
- * @category Filtering
8372
+ * @category filtering
8619
8373
  * @since 2.0.0
8620
8374
  */
8621
8375
  <A, E, R>(self: Stream<A, E, R>, predicate: (a: NoInfer<A>, index: number) => boolean): Stream<A, E, R>;
@@ -8623,21 +8377,21 @@ export declare const dropWhile: {
8623
8377
  /**
8624
8378
  * Drops elements while the filter succeeds.
8625
8379
  *
8626
- * @category Filtering
8380
+ * @category filtering
8627
8381
  * @since 4.0.0
8628
8382
  */
8629
8383
  export declare const dropWhileFilter: {
8630
8384
  /**
8631
8385
  * Drops elements while the filter succeeds.
8632
8386
  *
8633
- * @category Filtering
8387
+ * @category filtering
8634
8388
  * @since 4.0.0
8635
8389
  */
8636
8390
  <A, B, X>(filter: Filter.Filter<NoInfer<A>, B, X>): <E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
8637
8391
  /**
8638
8392
  * Drops elements while the filter succeeds.
8639
8393
  *
8640
- * @category Filtering
8394
+ * @category filtering
8641
8395
  * @since 4.0.0
8642
8396
  */
8643
8397
  <A, E, R, B, X>(self: Stream<A, E, R>, filter: Filter.Filter<NoInfer<A>, B, X>): Stream<A, E, R>;
@@ -8662,7 +8416,7 @@ export declare const dropWhileFilter: {
8662
8416
  * // Output: [ 3, 4, 5 ]
8663
8417
  * ```
8664
8418
  *
8665
- * @category Filtering
8419
+ * @category filtering
8666
8420
  * @since 2.0.0
8667
8421
  */
8668
8422
  export declare const dropWhileEffect: {
@@ -8686,7 +8440,7 @@ export declare const dropWhileEffect: {
8686
8440
  * // Output: [ 3, 4, 5 ]
8687
8441
  * ```
8688
8442
  *
8689
- * @category Filtering
8443
+ * @category filtering
8690
8444
  * @since 2.0.0
8691
8445
  */
8692
8446
  <A, E2, R2>(predicate: (a: NoInfer<A>, index: number) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>;
@@ -8710,7 +8464,7 @@ export declare const dropWhileEffect: {
8710
8464
  * // Output: [ 3, 4, 5 ]
8711
8465
  * ```
8712
8466
  *
8713
- * @category Filtering
8467
+ * @category filtering
8714
8468
  * @since 2.0.0
8715
8469
  */
8716
8470
  <A, E, R, E2, R2>(self: Stream<A, E, R>, predicate: (a: A, index: number) => Effect.Effect<boolean, E2, R2>): Stream<A, E | E2, R | R2>;
@@ -8737,7 +8491,7 @@ export declare const dropWhileEffect: {
8737
8491
  * // Output: [ 1, 2, 3 ]
8738
8492
  * ```
8739
8493
  *
8740
- * @category Filtering
8494
+ * @category filtering
8741
8495
  * @since 2.0.0
8742
8496
  */
8743
8497
  export declare const dropRight: {
@@ -8763,7 +8517,7 @@ export declare const dropRight: {
8763
8517
  * // Output: [ 1, 2, 3 ]
8764
8518
  * ```
8765
8519
  *
8766
- * @category Filtering
8520
+ * @category filtering
8767
8521
  * @since 2.0.0
8768
8522
  */
8769
8523
  (n: number): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R>;
@@ -8789,7 +8543,7 @@ export declare const dropRight: {
8789
8543
  * // Output: [ 1, 2, 3 ]
8790
8544
  * ```
8791
8545
  *
8792
- * @category Filtering
8546
+ * @category filtering
8793
8547
  * @since 2.0.0
8794
8548
  */
8795
8549
  <A, E, R>(self: Stream<A, E, R>, n: number): Stream<A, E, R>;
@@ -8907,7 +8661,7 @@ export declare const rechunk: {
8907
8661
  * **Example** (Emitting sliding windows)
8908
8662
  *
8909
8663
  * ```ts
8910
- * import { Console, Effect, Stream, pipe } from "effect"
8664
+ * import { Console, Effect, pipe, Stream } from "effect"
8911
8665
  *
8912
8666
  * Effect.gen(function*() {
8913
8667
  * const result = yield* pipe(
@@ -8930,7 +8684,7 @@ export declare const sliding: {
8930
8684
  * **Example** (Emitting sliding windows)
8931
8685
  *
8932
8686
  * ```ts
8933
- * import { Console, Effect, Stream, pipe } from "effect"
8687
+ * import { Console, Effect, pipe, Stream } from "effect"
8934
8688
  *
8935
8689
  * Effect.gen(function*() {
8936
8690
  * const result = yield* pipe(
@@ -8953,7 +8707,7 @@ export declare const sliding: {
8953
8707
  * **Example** (Emitting sliding windows)
8954
8708
  *
8955
8709
  * ```ts
8956
- * import { Console, Effect, Stream, pipe } from "effect"
8710
+ * import { Console, Effect, pipe, Stream } from "effect"
8957
8711
  *
8958
8712
  * Effect.gen(function*() {
8959
8713
  * const result = yield* pipe(
@@ -9288,12 +9042,6 @@ export declare const combine: {
9288
9042
  * internal state to control the combining process, with the initial state
9289
9043
  * being specified by `s`.
9290
9044
  *
9291
- * **Previously Known As**
9292
- *
9293
- * This API replaces the following from Effect 3.x:
9294
- *
9295
- * - `Stream.combineChunks`
9296
- *
9297
9045
  * **Example** (Combining stream chunks with state)
9298
9046
  *
9299
9047
  * ```ts
@@ -9320,8 +9068,8 @@ export declare const combine: {
9320
9068
  * // Output: [ 1, 2, 10, 20 ]
9321
9069
  * ```
9322
9070
  *
9323
- * @category Sequencing
9324
- * @since 2.0.0
9071
+ * @category sequencing
9072
+ * @since 4.0.0
9325
9073
  */
9326
9074
  export declare const combineArray: {
9327
9075
  /**
@@ -9331,12 +9079,6 @@ export declare const combineArray: {
9331
9079
  * internal state to control the combining process, with the initial state
9332
9080
  * being specified by `s`.
9333
9081
  *
9334
- * **Previously Known As**
9335
- *
9336
- * This API replaces the following from Effect 3.x:
9337
- *
9338
- * - `Stream.combineChunks`
9339
- *
9340
9082
  * **Example** (Combining stream chunks with state)
9341
9083
  *
9342
9084
  * ```ts
@@ -9363,8 +9105,8 @@ export declare const combineArray: {
9363
9105
  * // Output: [ 1, 2, 10, 20 ]
9364
9106
  * ```
9365
9107
  *
9366
- * @category Sequencing
9367
- * @since 2.0.0
9108
+ * @category sequencing
9109
+ * @since 4.0.0
9368
9110
  */
9369
9111
  <A2, E2, R2, S, E, A, A3, E3, R3>(that: Stream<A2, E2, R2>, s: LazyArg<S>, f: (s: S, pullLeft: Pull.Pull<Arr.NonEmptyReadonlyArray<A>, E, void>, pullRight: Pull.Pull<Arr.NonEmptyReadonlyArray<A2>, E2, void>) => Effect.Effect<readonly [Arr.NonEmptyReadonlyArray<A3>, S], E3, R3>): <R>(self: Stream<A, E, R>) => Stream<A3, Pull.ExcludeDone<E3>, R2 | R3 | R>;
9370
9112
  /**
@@ -9374,12 +9116,6 @@ export declare const combineArray: {
9374
9116
  * internal state to control the combining process, with the initial state
9375
9117
  * being specified by `s`.
9376
9118
  *
9377
- * **Previously Known As**
9378
- *
9379
- * This API replaces the following from Effect 3.x:
9380
- *
9381
- * - `Stream.combineChunks`
9382
- *
9383
9119
  * **Example** (Combining stream chunks with state)
9384
9120
  *
9385
9121
  * ```ts
@@ -9406,8 +9142,8 @@ export declare const combineArray: {
9406
9142
  * // Output: [ 1, 2, 10, 20 ]
9407
9143
  * ```
9408
9144
  *
9409
- * @category Sequencing
9410
- * @since 2.0.0
9145
+ * @category sequencing
9146
+ * @since 4.0.0
9411
9147
  */
9412
9148
  <R, A2, E2, R2, S, E, A, A3, E3, R3>(self: Stream<A, E, R>, that: Stream<A2, E2, R2>, s: LazyArg<S>, f: (s: S, pullLeft: Pull.Pull<Arr.NonEmptyReadonlyArray<A>, E, void>, pullRight: Pull.Pull<Arr.NonEmptyReadonlyArray<A2>, E2, void>) => Effect.Effect<readonly [Arr.NonEmptyReadonlyArray<A3>, S], E3, R3>): Stream<A3, Pull.ExcludeDone<E3>, R | R2 | R3>;
9413
9149
  };
@@ -9435,7 +9171,7 @@ export declare const combineArray: {
9435
9171
  * // Output: [ 0, 1, 3, 6, 10, 15, 21 ]
9436
9172
  * ```
9437
9173
  *
9438
- * @category Mapping
9174
+ * @category mapping
9439
9175
  * @since 2.0.0
9440
9176
  */
9441
9177
  export declare const mapAccum: {
@@ -9463,7 +9199,7 @@ export declare const mapAccum: {
9463
9199
  * // Output: [ 0, 1, 3, 6, 10, 15, 21 ]
9464
9200
  * ```
9465
9201
  *
9466
- * @category Mapping
9202
+ * @category mapping
9467
9203
  * @since 2.0.0
9468
9204
  */
9469
9205
  <S, A, B>(initial: LazyArg<S>, f: (s: S, a: A) => readonly [state: S, values: ReadonlyArray<B>], options?: {
@@ -9493,7 +9229,7 @@ export declare const mapAccum: {
9493
9229
  * // Output: [ 0, 1, 3, 6, 10, 15, 21 ]
9494
9230
  * ```
9495
9231
  *
9496
- * @category Mapping
9232
+ * @category mapping
9497
9233
  * @since 2.0.0
9498
9234
  */
9499
9235
  <A, E, R, S, B>(self: Stream<A, E, R>, initial: LazyArg<S>, f: (s: S, a: A) => readonly [state: S, values: ReadonlyArray<B>], options?: {
@@ -9526,8 +9262,8 @@ export declare const mapAccum: {
9526
9262
  * // Output: [ 3, 10, 21 ]
9527
9263
  * ```
9528
9264
  *
9529
- * @category Mapping
9530
- * @since 2.0.0
9265
+ * @category mapping
9266
+ * @since 4.0.0
9531
9267
  */
9532
9268
  export declare const mapAccumArray: {
9533
9269
  /**
@@ -9556,8 +9292,8 @@ export declare const mapAccumArray: {
9556
9292
  * // Output: [ 3, 10, 21 ]
9557
9293
  * ```
9558
9294
  *
9559
- * @category Mapping
9560
- * @since 2.0.0
9295
+ * @category mapping
9296
+ * @since 4.0.0
9561
9297
  */
9562
9298
  <S, A, B>(initial: LazyArg<S>, f: (s: S, a: Arr.NonEmptyReadonlyArray<A>) => readonly [state: S, values: ReadonlyArray<B>], options?: {
9563
9299
  readonly onHalt?: ((state: S) => ReadonlyArray<B>) | undefined;
@@ -9588,8 +9324,8 @@ export declare const mapAccumArray: {
9588
9324
  * // Output: [ 3, 10, 21 ]
9589
9325
  * ```
9590
9326
  *
9591
- * @category Mapping
9592
- * @since 2.0.0
9327
+ * @category mapping
9328
+ * @since 4.0.0
9593
9329
  */
9594
9330
  <A, E, R, S, B>(self: Stream<A, E, R>, initial: LazyArg<S>, f: (s: S, a: Arr.NonEmptyReadonlyArray<A>) => readonly [state: S, values: ReadonlyArray<B>], options?: {
9595
9331
  readonly onHalt?: ((state: S) => Array<B>) | undefined;
@@ -9623,7 +9359,7 @@ export declare const mapAccumArray: {
9623
9359
  * // Output: [ 1, 2, 3 ]
9624
9360
  * ```
9625
9361
  *
9626
- * @category Mapping
9362
+ * @category mapping
9627
9363
  * @since 2.0.0
9628
9364
  */
9629
9365
  export declare const mapAccumEffect: {
@@ -9655,7 +9391,7 @@ export declare const mapAccumEffect: {
9655
9391
  * // Output: [ 1, 2, 3 ]
9656
9392
  * ```
9657
9393
  *
9658
- * @category Mapping
9394
+ * @category mapping
9659
9395
  * @since 2.0.0
9660
9396
  */
9661
9397
  <S, A, B, E2, R2>(initial: LazyArg<S>, f: (s: S, a: A) => Effect.Effect<readonly [state: S, values: ReadonlyArray<B>], E2, R2>, options?: {
@@ -9689,7 +9425,7 @@ export declare const mapAccumEffect: {
9689
9425
  * // Output: [ 1, 2, 3 ]
9690
9426
  * ```
9691
9427
  *
9692
- * @category Mapping
9428
+ * @category mapping
9693
9429
  * @since 2.0.0
9694
9430
  */
9695
9431
  <A, E, R, S, B, E2, R2>(self: Stream<A, E, R>, initial: LazyArg<S>, f: (s: S, a: A) => Effect.Effect<readonly [state: S, values: ReadonlyArray<B>], E2, R2>, options?: {
@@ -9726,8 +9462,8 @@ export declare const mapAccumEffect: {
9726
9462
  * // Output: [ 3, 10 ]
9727
9463
  * ```
9728
9464
  *
9729
- * @category Mapping
9730
- * @since 2.0.0
9465
+ * @category mapping
9466
+ * @since 4.0.0
9731
9467
  */
9732
9468
  export declare const mapAccumArrayEffect: {
9733
9469
  /**
@@ -9760,8 +9496,8 @@ export declare const mapAccumArrayEffect: {
9760
9496
  * // Output: [ 3, 10 ]
9761
9497
  * ```
9762
9498
  *
9763
- * @category Mapping
9764
- * @since 2.0.0
9499
+ * @category mapping
9500
+ * @since 4.0.0
9765
9501
  */
9766
9502
  <S, A, B, E2, R2>(initial: LazyArg<S>, f: (s: S, a: Arr.NonEmptyReadonlyArray<A>) => Effect.Effect<readonly [state: S, values: ReadonlyArray<B>], E2, R2>, options?: {
9767
9503
  readonly onHalt?: ((state: S) => ReadonlyArray<B>) | undefined;
@@ -9796,8 +9532,8 @@ export declare const mapAccumArrayEffect: {
9796
9532
  * // Output: [ 3, 10 ]
9797
9533
  * ```
9798
9534
  *
9799
- * @category Mapping
9800
- * @since 2.0.0
9535
+ * @category mapping
9536
+ * @since 4.0.0
9801
9537
  */
9802
9538
  <A, E, R, S, B, E2, R2>(self: Stream<A, E, R>, initial: LazyArg<S>, f: (s: S, a: Arr.NonEmptyReadonlyArray<A>) => Effect.Effect<readonly [state: S, values: ReadonlyArray<B>], E2, R2>, options?: {
9803
9539
  readonly onHalt?: ((state: S) => ReadonlyArray<B>) | undefined;
@@ -10858,6 +10594,139 @@ export declare const aggregateWithin: {
10858
10594
  */
10859
10595
  <A, E, R, B, A2, E2, R2, C, E3, R3>(self: Stream<A, E, R>, sink: Sink.Sink<B, A | A2, A2, E2, R2>, schedule: Schedule.Schedule<C, Option.Option<B>, E3, R3>): Stream<B, E | E2 | E3, R | R2 | R3>;
10860
10596
  };
10597
+ /**
10598
+ * Fan out the stream, producing a fixed-size tuple of streams that each emit
10599
+ * the same elements as the source stream.
10600
+ *
10601
+ * The source stream starts after all downstream streams have been subscribed.
10602
+ * With the default suspend strategy, the source can only advance `capacity`
10603
+ * chunks ahead of the slowest downstream stream. If a downstream stream is
10604
+ * interrupted, it unsubscribes from the broadcast so it no longer contributes
10605
+ * backpressure.
10606
+ *
10607
+ * **Example** (Broadcasting to two consumers)
10608
+ *
10609
+ * ```ts
10610
+ * import { Console, Effect, Stream } from "effect"
10611
+ *
10612
+ * const program = Effect.scoped(
10613
+ * Effect.gen(function*() {
10614
+ * const [left, right] = yield* Stream.make(1, 2, 3).pipe(
10615
+ * Stream.broadcastN({ n: 2, capacity: 8 })
10616
+ * )
10617
+ *
10618
+ * const values = yield* Effect.all([
10619
+ * Stream.runCollect(left),
10620
+ * Stream.runCollect(right)
10621
+ * ], { concurrency: "unbounded" })
10622
+ *
10623
+ * yield* Console.log(values)
10624
+ * })
10625
+ * )
10626
+ *
10627
+ * Effect.runPromise(program)
10628
+ * // Output: [[1, 2, 3], [1, 2, 3]]
10629
+ * ```
10630
+ *
10631
+ * @category Broadcast
10632
+ * @since 4.0.0
10633
+ */
10634
+ export declare const broadcastN: {
10635
+ /**
10636
+ * Fan out the stream, producing a fixed-size tuple of streams that each emit
10637
+ * the same elements as the source stream.
10638
+ *
10639
+ * The source stream starts after all downstream streams have been subscribed.
10640
+ * With the default suspend strategy, the source can only advance `capacity`
10641
+ * chunks ahead of the slowest downstream stream. If a downstream stream is
10642
+ * interrupted, it unsubscribes from the broadcast so it no longer contributes
10643
+ * backpressure.
10644
+ *
10645
+ * **Example** (Broadcasting to two consumers)
10646
+ *
10647
+ * ```ts
10648
+ * import { Console, Effect, Stream } from "effect"
10649
+ *
10650
+ * const program = Effect.scoped(
10651
+ * Effect.gen(function*() {
10652
+ * const [left, right] = yield* Stream.make(1, 2, 3).pipe(
10653
+ * Stream.broadcastN({ n: 2, capacity: 8 })
10654
+ * )
10655
+ *
10656
+ * const values = yield* Effect.all([
10657
+ * Stream.runCollect(left),
10658
+ * Stream.runCollect(right)
10659
+ * ], { concurrency: "unbounded" })
10660
+ *
10661
+ * yield* Console.log(values)
10662
+ * })
10663
+ * )
10664
+ *
10665
+ * Effect.runPromise(program)
10666
+ * // Output: [[1, 2, 3], [1, 2, 3]]
10667
+ * ```
10668
+ *
10669
+ * @category Broadcast
10670
+ * @since 4.0.0
10671
+ */
10672
+ <const N extends number>(options: {
10673
+ readonly n: N;
10674
+ readonly capacity: "unbounded";
10675
+ readonly replay?: number | undefined;
10676
+ } | {
10677
+ readonly n: N;
10678
+ readonly capacity: number;
10679
+ readonly strategy?: "sliding" | "dropping" | "suspend" | undefined;
10680
+ readonly replay?: number | undefined;
10681
+ }): <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<TupleOf<N, Stream<A, E>>, never, Scope.Scope | R>;
10682
+ /**
10683
+ * Fan out the stream, producing a fixed-size tuple of streams that each emit
10684
+ * the same elements as the source stream.
10685
+ *
10686
+ * The source stream starts after all downstream streams have been subscribed.
10687
+ * With the default suspend strategy, the source can only advance `capacity`
10688
+ * chunks ahead of the slowest downstream stream. If a downstream stream is
10689
+ * interrupted, it unsubscribes from the broadcast so it no longer contributes
10690
+ * backpressure.
10691
+ *
10692
+ * **Example** (Broadcasting to two consumers)
10693
+ *
10694
+ * ```ts
10695
+ * import { Console, Effect, Stream } from "effect"
10696
+ *
10697
+ * const program = Effect.scoped(
10698
+ * Effect.gen(function*() {
10699
+ * const [left, right] = yield* Stream.make(1, 2, 3).pipe(
10700
+ * Stream.broadcastN({ n: 2, capacity: 8 })
10701
+ * )
10702
+ *
10703
+ * const values = yield* Effect.all([
10704
+ * Stream.runCollect(left),
10705
+ * Stream.runCollect(right)
10706
+ * ], { concurrency: "unbounded" })
10707
+ *
10708
+ * yield* Console.log(values)
10709
+ * })
10710
+ * )
10711
+ *
10712
+ * Effect.runPromise(program)
10713
+ * // Output: [[1, 2, 3], [1, 2, 3]]
10714
+ * ```
10715
+ *
10716
+ * @category Broadcast
10717
+ * @since 4.0.0
10718
+ */
10719
+ <A, E, R, const N extends number>(self: Stream<A, E, R>, options: {
10720
+ readonly n: N;
10721
+ readonly capacity: "unbounded";
10722
+ readonly replay?: number | undefined;
10723
+ } | {
10724
+ readonly capacity: number;
10725
+ readonly n: N;
10726
+ readonly strategy?: "sliding" | "dropping" | "suspend" | undefined;
10727
+ readonly replay?: number | undefined;
10728
+ }): Effect.Effect<TupleOf<N, Stream<A, E>>, never, Scope.Scope | R>;
10729
+ };
10861
10730
  /**
10862
10731
  * Creates a PubSub-backed stream that multicasts the source to all subscribers.
10863
10732
  *
@@ -11005,7 +10874,7 @@ export declare const broadcast: {
11005
10874
  * ```
11006
10875
  *
11007
10876
  * @category Broadcast
11008
- * @since 2.0.0
10877
+ * @since 3.8.0
11009
10878
  */
11010
10879
  export declare const share: {
11011
10880
  /**
@@ -11038,7 +10907,7 @@ export declare const share: {
11038
10907
  * ```
11039
10908
  *
11040
10909
  * @category Broadcast
11041
- * @since 2.0.0
10910
+ * @since 3.8.0
11042
10911
  */
11043
10912
  (options: {
11044
10913
  readonly capacity: "unbounded";
@@ -11080,7 +10949,7 @@ export declare const share: {
11080
10949
  * ```
11081
10950
  *
11082
10951
  * @category Broadcast
11083
- * @since 2.0.0
10952
+ * @since 3.8.0
11084
10953
  */
11085
10954
  <A, E, R>(self: Stream<A, E, R>, options: {
11086
10955
  readonly capacity: "unbounded";
@@ -11401,7 +11270,7 @@ export declare const pipeThrough: {
11401
11270
  * ```
11402
11271
  *
11403
11272
  * @category Accumulation
11404
- * @since 2.0.0
11273
+ * @since 4.0.0
11405
11274
  */
11406
11275
  export declare const collect: <A, E, R>(self: Stream<A, E, R>) => Stream<Array<A>, E, R>;
11407
11276
  /**
@@ -11636,7 +11505,7 @@ export declare const changesWithEffect: {
11636
11505
  * // ["Hello", " World"]
11637
11506
  * ```
11638
11507
  *
11639
- * @category Encoding
11508
+ * @category encoding
11640
11509
  * @since 2.0.0
11641
11510
  */
11642
11511
  export declare const decodeText: <Arg extends Stream<Uint8Array, any, any> | {
@@ -11666,7 +11535,7 @@ export declare const decodeText: <Arg extends Stream<Uint8Array, any, any> | {
11666
11535
  * // [[72, 101, 108, 108, 111], [32], [87, 111, 114, 108, 100]]
11667
11536
  * ```
11668
11537
  *
11669
- * @category Encoding
11538
+ * @category encoding
11670
11539
  * @since 2.0.0
11671
11540
  */
11672
11541
  export declare const encodeText: <E, R>(self: Stream<string, E, R>) => Stream<Uint8Array, E, R>;
@@ -11687,7 +11556,7 @@ export declare const encodeText: <E, R>(self: Stream<string, E, R>) => Stream<Ui
11687
11556
  * // ["a", "b", "c"]
11688
11557
  * ```
11689
11558
  *
11690
- * @category Encoding
11559
+ * @category encoding
11691
11560
  * @since 2.0.0
11692
11561
  */
11693
11562
  export declare const splitLines: <E, R>(self: Stream<string, E, R>) => Stream<string, E, R>;
@@ -11709,7 +11578,7 @@ export declare const splitLines: <E, R>(self: Stream<string, E, R>) => Stream<st
11709
11578
  * // [1, 0, 2, 0, 3, 0, 4]
11710
11579
  * ```
11711
11580
  *
11712
- * @category Sequencing
11581
+ * @category sequencing
11713
11582
  * @since 2.0.0
11714
11583
  */
11715
11584
  export declare const intersperse: {
@@ -11731,7 +11600,7 @@ export declare const intersperse: {
11731
11600
  * // [1, 0, 2, 0, 3, 0, 4]
11732
11601
  * ```
11733
11602
  *
11734
- * @category Sequencing
11603
+ * @category sequencing
11735
11604
  * @since 2.0.0
11736
11605
  */
11737
11606
  <A2>(element: A2): <A, E, R>(self: Stream<A, E, R>) => Stream<A2 | A, E, R>;
@@ -11753,7 +11622,7 @@ export declare const intersperse: {
11753
11622
  * // [1, 0, 2, 0, 3, 0, 4]
11754
11623
  * ```
11755
11624
  *
11756
- * @category Sequencing
11625
+ * @category sequencing
11757
11626
  * @since 2.0.0
11758
11627
  */
11759
11628
  <A, E, R, A2>(self: Stream<A, E, R>, element: A2): Stream<A | A2, E, R>;
@@ -11781,7 +11650,7 @@ export declare const intersperse: {
11781
11650
  * // [ "[", "a", ",", "b", ",", "c", "]" ]
11782
11651
  * ```
11783
11652
  *
11784
- * @category Sequencing
11653
+ * @category sequencing
11785
11654
  * @since 2.0.0
11786
11655
  */
11787
11656
  export declare const intersperseAffixes: {
@@ -11808,7 +11677,7 @@ export declare const intersperseAffixes: {
11808
11677
  * // [ "[", "a", ",", "b", ",", "c", "]" ]
11809
11678
  * ```
11810
11679
  *
11811
- * @category Sequencing
11680
+ * @category sequencing
11812
11681
  * @since 2.0.0
11813
11682
  */
11814
11683
  <A2, A3, A4>(options: {
@@ -11839,7 +11708,7 @@ export declare const intersperseAffixes: {
11839
11708
  * // [ "[", "a", ",", "b", ",", "c", "]" ]
11840
11709
  * ```
11841
11710
  *
11842
- * @category Sequencing
11711
+ * @category sequencing
11843
11712
  * @since 2.0.0
11844
11713
  */
11845
11714
  <A, E, R, A2, A3, A4>(self: Stream<A, E, R>, options: {
@@ -12325,7 +12194,7 @@ export declare const onExit: {
12325
12194
  * // Stream failed: boom
12326
12195
  * ```
12327
12196
  *
12328
- * @category Error Handling
12197
+ * @category error handling
12329
12198
  * @since 2.0.0
12330
12199
  */
12331
12200
  export declare const onError: {
@@ -12354,7 +12223,7 @@ export declare const onError: {
12354
12223
  * // Stream failed: boom
12355
12224
  * ```
12356
12225
  *
12357
- * @category Error Handling
12226
+ * @category error handling
12358
12227
  * @since 2.0.0
12359
12228
  */
12360
12229
  <E, X, R2>(cleanup: (cause: Cause.Cause<E>) => Effect.Effect<X, never, R2>): <A, R>(self: Stream<A, E, R>) => Stream<A, E, R2 | R>;
@@ -12383,7 +12252,7 @@ export declare const onError: {
12383
12252
  * // Stream failed: boom
12384
12253
  * ```
12385
12254
  *
12386
- * @category Error Handling
12255
+ * @category error handling
12387
12256
  * @since 2.0.0
12388
12257
  */
12389
12258
  <A, E, R, X, R2>(self: Stream<A, E, R>, cleanup: (cause: Cause.Cause<E>) => Effect.Effect<X, never, R2>): Stream<A, E, R | R2>;
@@ -12411,8 +12280,8 @@ export declare const onError: {
12411
12280
  * // [1, 2, 3]
12412
12281
  * ```
12413
12282
  *
12414
- * @category Sequencing
12415
- * @since 4.0.0
12283
+ * @category sequencing
12284
+ * @since 3.6.0
12416
12285
  */
12417
12286
  export declare const onStart: {
12418
12287
  /**
@@ -12438,8 +12307,8 @@ export declare const onStart: {
12438
12307
  * // [1, 2, 3]
12439
12308
  * ```
12440
12309
  *
12441
- * @category Sequencing
12442
- * @since 4.0.0
12310
+ * @category sequencing
12311
+ * @since 3.6.0
12443
12312
  */
12444
12313
  <X, EX, RX>(onStart: Effect.Effect<X, EX, RX>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>;
12445
12314
  /**
@@ -12465,8 +12334,8 @@ export declare const onStart: {
12465
12334
  * // [1, 2, 3]
12466
12335
  * ```
12467
12336
  *
12468
- * @category Sequencing
12469
- * @since 4.0.0
12337
+ * @category sequencing
12338
+ * @since 3.6.0
12470
12339
  */
12471
12340
  <A, E, R, X, EX, RX>(self: Stream<A, E, R>, onStart: Effect.Effect<X, EX, RX>): Stream<A, E | EX, R | RX>;
12472
12341
  };
@@ -12487,7 +12356,7 @@ export declare const onStart: {
12487
12356
  * // Output: first=1
12488
12357
  * ```
12489
12358
  *
12490
- * @category Sequencing
12359
+ * @category sequencing
12491
12360
  * @since 4.0.0
12492
12361
  */
12493
12362
  export declare const onFirst: {
@@ -12508,7 +12377,7 @@ export declare const onFirst: {
12508
12377
  * // Output: first=1
12509
12378
  * ```
12510
12379
  *
12511
- * @category Sequencing
12380
+ * @category sequencing
12512
12381
  * @since 4.0.0
12513
12382
  */
12514
12383
  <A, X, EX, RX>(onFirst: (element: NoInfer<A>) => Effect.Effect<X, EX, RX>): <E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>;
@@ -12529,7 +12398,7 @@ export declare const onFirst: {
12529
12398
  * // Output: first=1
12530
12399
  * ```
12531
12400
  *
12532
- * @category Sequencing
12401
+ * @category sequencing
12533
12402
  * @since 4.0.0
12534
12403
  */
12535
12404
  <A, E, R, X, EX, RX>(self: Stream<A, E, R>, onFirst: (element: NoInfer<A>) => Effect.Effect<X, EX, RX>): Stream<A, E | EX, R | RX>;
@@ -12555,8 +12424,8 @@ export declare const onFirst: {
12555
12424
  * // [1, 2, 3]
12556
12425
  * ```
12557
12426
  *
12558
- * @category Sequencing
12559
- * @since 4.0.0
12427
+ * @category sequencing
12428
+ * @since 3.6.0
12560
12429
  */
12561
12430
  export declare const onEnd: {
12562
12431
  /**
@@ -12580,8 +12449,8 @@ export declare const onEnd: {
12580
12449
  * // [1, 2, 3]
12581
12450
  * ```
12582
12451
  *
12583
- * @category Sequencing
12584
- * @since 4.0.0
12452
+ * @category sequencing
12453
+ * @since 3.6.0
12585
12454
  */
12586
12455
  <X, EX, RX>(onEnd: Effect.Effect<X, EX, RX>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | EX, R | RX>;
12587
12456
  /**
@@ -12605,8 +12474,8 @@ export declare const onEnd: {
12605
12474
  * // [1, 2, 3]
12606
12475
  * ```
12607
12476
  *
12608
- * @category Sequencing
12609
- * @since 4.0.0
12477
+ * @category sequencing
12478
+ * @since 3.6.0
12610
12479
  */
12611
12480
  <A, E, R, X, EX, RX>(self: Stream<A, E, R>, onEnd: Effect.Effect<X, EX, RX>): Stream<A, E | EX, R | RX>;
12612
12481
  };
@@ -12633,7 +12502,7 @@ export declare const onEnd: {
12633
12502
  * ```
12634
12503
  *
12635
12504
  * @category Finalization
12636
- * @since 4.0.0
12505
+ * @since 2.0.0
12637
12506
  */
12638
12507
  export declare const ensuring: {
12639
12508
  /**
@@ -12659,7 +12528,7 @@ export declare const ensuring: {
12659
12528
  * ```
12660
12529
  *
12661
12530
  * @category Finalization
12662
- * @since 4.0.0
12531
+ * @since 2.0.0
12663
12532
  */
12664
12533
  <R2>(finalizer: Effect.Effect<unknown, never, R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R | R2>;
12665
12534
  /**
@@ -12685,7 +12554,7 @@ export declare const ensuring: {
12685
12554
  * ```
12686
12555
  *
12687
12556
  * @category Finalization
12688
- * @since 4.0.0
12557
+ * @since 2.0.0
12689
12558
  */
12690
12559
  <A, E, R, R2>(self: Stream<A, E, R>, finalizer: Effect.Effect<unknown, never, R2>): Stream<A, E, R | R2>;
12691
12560
  };
@@ -12694,12 +12563,10 @@ export declare const ensuring: {
12694
12563
  * service requirements. Use `options.local` to build the layer every time; by
12695
12564
  * default, layers are shared between provide calls.
12696
12565
  *
12697
- * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`.
12698
- *
12699
12566
  * **Example** (Providing stream requirements)
12700
12567
  *
12701
12568
  * ```ts
12702
- * import { Console, Effect, Layer, Context, Stream } from "effect"
12569
+ * import { Console, Context, Effect, Layer, Stream } from "effect"
12703
12570
  *
12704
12571
  * class Env extends Context.Service<Env, { readonly name: string }>()("Env") {}
12705
12572
  *
@@ -12723,7 +12590,7 @@ export declare const ensuring: {
12723
12590
  * // ["Hello, Ada"]
12724
12591
  * ```
12725
12592
  *
12726
- * @category Services
12593
+ * @category services
12727
12594
  * @since 4.0.0
12728
12595
  */
12729
12596
  export declare const provide: {
@@ -12732,12 +12599,10 @@ export declare const provide: {
12732
12599
  * service requirements. Use `options.local` to build the layer every time; by
12733
12600
  * default, layers are shared between provide calls.
12734
12601
  *
12735
- * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`.
12736
- *
12737
12602
  * **Example** (Providing stream requirements)
12738
12603
  *
12739
12604
  * ```ts
12740
- * import { Console, Effect, Layer, Context, Stream } from "effect"
12605
+ * import { Console, Context, Effect, Layer, Stream } from "effect"
12741
12606
  *
12742
12607
  * class Env extends Context.Service<Env, { readonly name: string }>()("Env") {}
12743
12608
  *
@@ -12761,7 +12626,7 @@ export declare const provide: {
12761
12626
  * // ["Hello, Ada"]
12762
12627
  * ```
12763
12628
  *
12764
- * @category Services
12629
+ * @category services
12765
12630
  * @since 4.0.0
12766
12631
  */
12767
12632
  <AL, EL = never, RL = never>(layer: Layer.Layer<AL, EL, RL> | Context.Context<AL>, options?: {
@@ -12772,12 +12637,10 @@ export declare const provide: {
12772
12637
  * service requirements. Use `options.local` to build the layer every time; by
12773
12638
  * default, layers are shared between provide calls.
12774
12639
  *
12775
- * **Previously Known As:** `provideSomeLayer`, `provideSomeContext`.
12776
- *
12777
12640
  * **Example** (Providing stream requirements)
12778
12641
  *
12779
12642
  * ```ts
12780
- * import { Console, Effect, Layer, Context, Stream } from "effect"
12643
+ * import { Console, Context, Effect, Layer, Stream } from "effect"
12781
12644
  *
12782
12645
  * class Env extends Context.Service<Env, { readonly name: string }>()("Env") {}
12783
12646
  *
@@ -12801,7 +12664,7 @@ export declare const provide: {
12801
12664
  * // ["Hello, Ada"]
12802
12665
  * ```
12803
12666
  *
12804
- * @category Services
12667
+ * @category services
12805
12668
  * @since 4.0.0
12806
12669
  */
12807
12670
  <A, E, R, AL, EL = never, RL = never>(self: Stream<A, E, R>, layer: Layer.Layer<AL, EL, RL> | Context.Context<AL>, options?: {
@@ -12814,7 +12677,7 @@ export declare const provide: {
12814
12677
  * **Example** (Providing multiple services to the stream using a context)
12815
12678
  *
12816
12679
  * ```ts
12817
- * import { Console, Effect, Context, Stream } from "effect"
12680
+ * import { Console, Context, Effect, Stream } from "effect"
12818
12681
  *
12819
12682
  * class Config extends Context.Service<Config, { readonly prefix: string }>()("Config") {}
12820
12683
  * class Greeter extends Context.Service<Greeter, { greet: (name: string) => string }>()("Greeter") {}
@@ -12840,8 +12703,8 @@ export declare const provide: {
12840
12703
  * // ["Hello!"]
12841
12704
  * ```
12842
12705
  *
12843
- * @category Services
12844
- * @since 4.0.0
12706
+ * @category services
12707
+ * @since 2.0.0
12845
12708
  */
12846
12709
  export declare const provideContext: {
12847
12710
  /**
@@ -12850,7 +12713,7 @@ export declare const provideContext: {
12850
12713
  * **Example** (Providing multiple services to the stream using a context)
12851
12714
  *
12852
12715
  * ```ts
12853
- * import { Console, Effect, Context, Stream } from "effect"
12716
+ * import { Console, Context, Effect, Stream } from "effect"
12854
12717
  *
12855
12718
  * class Config extends Context.Service<Config, { readonly prefix: string }>()("Config") {}
12856
12719
  * class Greeter extends Context.Service<Greeter, { greet: (name: string) => string }>()("Greeter") {}
@@ -12876,8 +12739,8 @@ export declare const provideContext: {
12876
12739
  * // ["Hello!"]
12877
12740
  * ```
12878
12741
  *
12879
- * @category Services
12880
- * @since 4.0.0
12742
+ * @category services
12743
+ * @since 2.0.0
12881
12744
  */
12882
12745
  <R2>(context: Context.Context<R2>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Exclude<R, R2>>;
12883
12746
  /**
@@ -12886,7 +12749,7 @@ export declare const provideContext: {
12886
12749
  * **Example** (Providing multiple services to the stream using a context)
12887
12750
  *
12888
12751
  * ```ts
12889
- * import { Console, Effect, Context, Stream } from "effect"
12752
+ * import { Console, Context, Effect, Stream } from "effect"
12890
12753
  *
12891
12754
  * class Config extends Context.Service<Config, { readonly prefix: string }>()("Config") {}
12892
12755
  * class Greeter extends Context.Service<Greeter, { greet: (name: string) => string }>()("Greeter") {}
@@ -12912,8 +12775,8 @@ export declare const provideContext: {
12912
12775
  * // ["Hello!"]
12913
12776
  * ```
12914
12777
  *
12915
- * @category Services
12916
- * @since 4.0.0
12778
+ * @category services
12779
+ * @since 2.0.0
12917
12780
  */
12918
12781
  <A, E, R, R2>(self: Stream<A, E, R>, context: Context.Context<R2>): Stream<A, E, Exclude<R, R2>>;
12919
12782
  };
@@ -12924,7 +12787,7 @@ export declare const provideContext: {
12924
12787
  * **Example** (Providing a stream service)
12925
12788
  *
12926
12789
  * ```ts
12927
- * import { Console, Effect, Context, Stream } from "effect"
12790
+ * import { Console, Context, Effect, Stream } from "effect"
12928
12791
  *
12929
12792
  * class Greeter extends Context.Service<Greeter, {
12930
12793
  * greet: (name: string) => string
@@ -12951,8 +12814,8 @@ export declare const provideContext: {
12951
12814
  * //=> ["Hello, Ada"]
12952
12815
  * ```
12953
12816
  *
12954
- * @category Services
12955
- * @since 4.0.0
12817
+ * @category services
12818
+ * @since 2.0.0
12956
12819
  */
12957
12820
  export declare const provideService: {
12958
12821
  /**
@@ -12962,7 +12825,7 @@ export declare const provideService: {
12962
12825
  * **Example** (Providing a stream service)
12963
12826
  *
12964
12827
  * ```ts
12965
- * import { Console, Effect, Context, Stream } from "effect"
12828
+ * import { Console, Context, Effect, Stream } from "effect"
12966
12829
  *
12967
12830
  * class Greeter extends Context.Service<Greeter, {
12968
12831
  * greet: (name: string) => string
@@ -12989,8 +12852,8 @@ export declare const provideService: {
12989
12852
  * //=> ["Hello, Ada"]
12990
12853
  * ```
12991
12854
  *
12992
- * @category Services
12993
- * @since 4.0.0
12855
+ * @category services
12856
+ * @since 2.0.0
12994
12857
  */
12995
12858
  <I, S>(key: Context.Key<I, S>, service: NoInfer<S>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Exclude<R, I>>;
12996
12859
  /**
@@ -13000,7 +12863,7 @@ export declare const provideService: {
13000
12863
  * **Example** (Providing a stream service)
13001
12864
  *
13002
12865
  * ```ts
13003
- * import { Console, Effect, Context, Stream } from "effect"
12866
+ * import { Console, Context, Effect, Stream } from "effect"
13004
12867
  *
13005
12868
  * class Greeter extends Context.Service<Greeter, {
13006
12869
  * greet: (name: string) => string
@@ -13027,8 +12890,8 @@ export declare const provideService: {
13027
12890
  * //=> ["Hello, Ada"]
13028
12891
  * ```
13029
12892
  *
13030
- * @category Services
13031
- * @since 4.0.0
12893
+ * @category services
12894
+ * @since 2.0.0
13032
12895
  */
13033
12896
  <A, E, R, I, S>(self: Stream<A, E, R>, key: Context.Key<I, S>, service: NoInfer<S>): Stream<A, E, Exclude<R, I>>;
13034
12897
  };
@@ -13038,7 +12901,7 @@ export declare const provideService: {
13038
12901
  * **Example** (Providing a stream service effectfully)
13039
12902
  *
13040
12903
  * ```ts
13041
- * import { Console, Effect, Context, Stream } from "effect"
12904
+ * import { Console, Context, Effect, Stream } from "effect"
13042
12905
  *
13043
12906
  * class ApiConfig extends Context.Service<ApiConfig, { readonly baseUrl: string }>()("ApiConfig") {}
13044
12907
  *
@@ -13068,8 +12931,8 @@ export declare const provideService: {
13068
12931
  * // ["https://example.com"]
13069
12932
  * ```
13070
12933
  *
13071
- * @category Services
13072
- * @since 4.0.0
12934
+ * @category services
12935
+ * @since 2.0.0
13073
12936
  */
13074
12937
  export declare const provideServiceEffect: {
13075
12938
  /**
@@ -13078,7 +12941,7 @@ export declare const provideServiceEffect: {
13078
12941
  * **Example** (Providing a stream service effectfully)
13079
12942
  *
13080
12943
  * ```ts
13081
- * import { Console, Effect, Context, Stream } from "effect"
12944
+ * import { Console, Context, Effect, Stream } from "effect"
13082
12945
  *
13083
12946
  * class ApiConfig extends Context.Service<ApiConfig, { readonly baseUrl: string }>()("ApiConfig") {}
13084
12947
  *
@@ -13108,8 +12971,8 @@ export declare const provideServiceEffect: {
13108
12971
  * // ["https://example.com"]
13109
12972
  * ```
13110
12973
  *
13111
- * @category Services
13112
- * @since 4.0.0
12974
+ * @category services
12975
+ * @since 2.0.0
13113
12976
  */
13114
12977
  <I, S, ES, RS>(key: Context.Key<I, S>, service: Effect.Effect<NoInfer<S>, ES, RS>): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E | ES, Exclude<R, I> | RS>;
13115
12978
  /**
@@ -13118,7 +12981,7 @@ export declare const provideServiceEffect: {
13118
12981
  * **Example** (Providing a stream service effectfully)
13119
12982
  *
13120
12983
  * ```ts
13121
- * import { Console, Effect, Context, Stream } from "effect"
12984
+ * import { Console, Context, Effect, Stream } from "effect"
13122
12985
  *
13123
12986
  * class ApiConfig extends Context.Service<ApiConfig, { readonly baseUrl: string }>()("ApiConfig") {}
13124
12987
  *
@@ -13148,8 +13011,8 @@ export declare const provideServiceEffect: {
13148
13011
  * // ["https://example.com"]
13149
13012
  * ```
13150
13013
  *
13151
- * @category Services
13152
- * @since 4.0.0
13014
+ * @category services
13015
+ * @since 2.0.0
13153
13016
  */
13154
13017
  <A, E, R, I, S, ES, RS>(self: Stream<A, E, R>, key: Context.Key<I, S>, service: Effect.Effect<NoInfer<S>, ES, RS>): Stream<A, E | ES, Exclude<R, I> | RS>;
13155
13018
  };
@@ -13160,7 +13023,7 @@ export declare const provideServiceEffect: {
13160
13023
  * **Example** (Updating the stream context)
13161
13024
  *
13162
13025
  * ```ts
13163
- * import { Console, Effect, Context, Stream } from "effect"
13026
+ * import { Console, Context, Effect, Stream } from "effect"
13164
13027
  *
13165
13028
  * class Logger extends Context.Service<Logger, { prefix: string }>()("Logger") {}
13166
13029
  * class Config extends Context.Service<Config, { name: string }>()("Config") {}
@@ -13190,8 +13053,8 @@ export declare const provideServiceEffect: {
13190
13053
  * //=> [ "Hello World" ]
13191
13054
  * ```
13192
13055
  *
13193
- * @category Services
13194
- * @since 2.0.0
13056
+ * @category services
13057
+ * @since 4.0.0
13195
13058
  */
13196
13059
  export declare const updateContext: {
13197
13060
  /**
@@ -13201,7 +13064,7 @@ export declare const updateContext: {
13201
13064
  * **Example** (Updating the stream context)
13202
13065
  *
13203
13066
  * ```ts
13204
- * import { Console, Effect, Context, Stream } from "effect"
13067
+ * import { Console, Context, Effect, Stream } from "effect"
13205
13068
  *
13206
13069
  * class Logger extends Context.Service<Logger, { prefix: string }>()("Logger") {}
13207
13070
  * class Config extends Context.Service<Config, { name: string }>()("Config") {}
@@ -13231,8 +13094,8 @@ export declare const updateContext: {
13231
13094
  * //=> [ "Hello World" ]
13232
13095
  * ```
13233
13096
  *
13234
- * @category Services
13235
- * @since 2.0.0
13097
+ * @category services
13098
+ * @since 4.0.0
13236
13099
  */
13237
13100
  <R, R2>(f: (context: Context.Context<R2>) => Context.Context<R>): <A, E>(self: Stream<A, E, R>) => Stream<A, E, R2>;
13238
13101
  /**
@@ -13242,7 +13105,7 @@ export declare const updateContext: {
13242
13105
  * **Example** (Updating the stream context)
13243
13106
  *
13244
13107
  * ```ts
13245
- * import { Console, Effect, Context, Stream } from "effect"
13108
+ * import { Console, Context, Effect, Stream } from "effect"
13246
13109
  *
13247
13110
  * class Logger extends Context.Service<Logger, { prefix: string }>()("Logger") {}
13248
13111
  * class Config extends Context.Service<Config, { name: string }>()("Config") {}
@@ -13272,8 +13135,8 @@ export declare const updateContext: {
13272
13135
  * //=> [ "Hello World" ]
13273
13136
  * ```
13274
13137
  *
13275
- * @category Services
13276
- * @since 2.0.0
13138
+ * @category services
13139
+ * @since 4.0.0
13277
13140
  */
13278
13141
  <A, E, R, R2>(self: Stream<A, E, R>, f: (context: Context.Context<R2>) => Context.Context<R>): Stream<A, E, R2>;
13279
13142
  };
@@ -13283,7 +13146,7 @@ export declare const updateContext: {
13283
13146
  * **Example** (Updating a stream service)
13284
13147
  *
13285
13148
  * ```ts
13286
- * import { Console, Effect, Context, Stream } from "effect"
13149
+ * import { Console, Context, Effect, Stream } from "effect"
13287
13150
  *
13288
13151
  * class Counter extends Context.Service<Counter, { count: number }>()("Counter") {}
13289
13152
  *
@@ -13300,7 +13163,7 @@ export declare const updateContext: {
13300
13163
  * // Output: Updated count: 1
13301
13164
  * ```
13302
13165
  *
13303
- * @category Services
13166
+ * @category services
13304
13167
  * @since 2.0.0
13305
13168
  */
13306
13169
  export declare const updateService: {
@@ -13310,7 +13173,7 @@ export declare const updateService: {
13310
13173
  * **Example** (Updating a stream service)
13311
13174
  *
13312
13175
  * ```ts
13313
- * import { Console, Effect, Context, Stream } from "effect"
13176
+ * import { Console, Context, Effect, Stream } from "effect"
13314
13177
  *
13315
13178
  * class Counter extends Context.Service<Counter, { count: number }>()("Counter") {}
13316
13179
  *
@@ -13327,7 +13190,7 @@ export declare const updateService: {
13327
13190
  * // Output: Updated count: 1
13328
13191
  * ```
13329
13192
  *
13330
- * @category Services
13193
+ * @category services
13331
13194
  * @since 2.0.0
13332
13195
  */
13333
13196
  <I, S>(key: Context.Key<I, S>, f: (service: NoInfer<S>) => S): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, R | I>;
@@ -13337,7 +13200,7 @@ export declare const updateService: {
13337
13200
  * **Example** (Updating a stream service)
13338
13201
  *
13339
13202
  * ```ts
13340
- * import { Console, Effect, Context, Stream } from "effect"
13203
+ * import { Console, Context, Effect, Stream } from "effect"
13341
13204
  *
13342
13205
  * class Counter extends Context.Service<Counter, { count: number }>()("Counter") {}
13343
13206
  *
@@ -13354,7 +13217,7 @@ export declare const updateService: {
13354
13217
  * // Output: Updated count: 1
13355
13218
  * ```
13356
13219
  *
13357
- * @category Services
13220
+ * @category services
13358
13221
  * @since 2.0.0
13359
13222
  */
13360
13223
  <A, E, R, I, S>(self: Stream<A, E, R>, key: Context.Key<I, S>, f: (service: NoInfer<S>) => S): Stream<A, E, R | I>;
@@ -13378,8 +13241,8 @@ export declare const updateService: {
13378
13241
  * // [1, 2, 3]
13379
13242
  * ```
13380
13243
  *
13381
- * @category Tracing
13382
- * @since 4.0.0
13244
+ * @category tracing
13245
+ * @since 2.0.0
13383
13246
  */
13384
13247
  export declare const withSpan: {
13385
13248
  /**
@@ -13401,8 +13264,8 @@ export declare const withSpan: {
13401
13264
  * // [1, 2, 3]
13402
13265
  * ```
13403
13266
  *
13404
- * @category Tracing
13405
- * @since 4.0.0
13267
+ * @category tracing
13268
+ * @since 2.0.0
13406
13269
  */
13407
13270
  (name: string, options?: SpanOptions): <A, E, R>(self: Stream<A, E, R>) => Stream<A, E, Exclude<R, ParentSpan>>;
13408
13271
  /**
@@ -13424,8 +13287,8 @@ export declare const withSpan: {
13424
13287
  * // [1, 2, 3]
13425
13288
  * ```
13426
13289
  *
13427
- * @category Tracing
13428
- * @since 4.0.0
13290
+ * @category tracing
13291
+ * @since 2.0.0
13429
13292
  */
13430
13293
  <A, E, R>(self: Stream<A, E, R>, name: string, options?: SpanOptions): Stream<A, E, Exclude<R, ParentSpan>>;
13431
13294
  };
@@ -13435,7 +13298,7 @@ export declare const withSpan: {
13435
13298
  * **Example** (Starting stream do notation)
13436
13299
  *
13437
13300
  * ```ts
13438
- * import { Console, Effect, Stream, pipe } from "effect"
13301
+ * import { Console, Effect, pipe, Stream } from "effect"
13439
13302
  *
13440
13303
  * const program = pipe(
13441
13304
  * Stream.Do,
@@ -13453,7 +13316,7 @@ export declare const withSpan: {
13453
13316
  * ```
13454
13317
  *
13455
13318
  * @category Do Notation
13456
- * @since 4.0.0
13319
+ * @since 2.0.0
13457
13320
  */
13458
13321
  export declare const Do: Stream<{}>;
13459
13322
  declare const let_: {
@@ -13488,7 +13351,7 @@ export {
13488
13351
  * ```
13489
13352
  *
13490
13353
  * @category Do Notation
13491
- * @since 4.0.0
13354
+ * @since 2.0.0
13492
13355
  */
13493
13356
  let_ as let };
13494
13357
  /**
@@ -13511,7 +13374,7 @@ let_ as let };
13511
13374
  * ```
13512
13375
  *
13513
13376
  * @category Do Notation
13514
- * @since 4.0.0
13377
+ * @since 2.0.0
13515
13378
  */
13516
13379
  export declare const bind: {
13517
13380
  /**
@@ -13534,7 +13397,7 @@ export declare const bind: {
13534
13397
  * ```
13535
13398
  *
13536
13399
  * @category Do Notation
13537
- * @since 4.0.0
13400
+ * @since 2.0.0
13538
13401
  */
13539
13402
  <N extends string, A, B, E2, R2>(tag: Exclude<N, keyof A>, f: (_: NoInfer<A>) => Stream<B, E2, R2>, options?: {
13540
13403
  readonly concurrency?: number | "unbounded" | undefined;
@@ -13562,7 +13425,7 @@ export declare const bind: {
13562
13425
  * ```
13563
13426
  *
13564
13427
  * @category Do Notation
13565
- * @since 4.0.0
13428
+ * @since 2.0.0
13566
13429
  */
13567
13430
  <A, E, R, N extends string, B, E2, R2>(self: Stream<A, E, R>, tag: Exclude<N, keyof A>, f: (_: NoInfer<A>) => Stream<B, E2, R2>, options?: {
13568
13431
  readonly concurrency?: number | "unbounded" | undefined;
@@ -13594,7 +13457,7 @@ export declare const bind: {
13594
13457
  * ```
13595
13458
  *
13596
13459
  * @category Do Notation
13597
- * @since 4.0.0
13460
+ * @since 2.0.0
13598
13461
  */
13599
13462
  export declare const bindEffect: {
13600
13463
  /**
@@ -13620,7 +13483,7 @@ export declare const bindEffect: {
13620
13483
  * ```
13621
13484
  *
13622
13485
  * @category Do Notation
13623
- * @since 4.0.0
13486
+ * @since 2.0.0
13624
13487
  */
13625
13488
  <N extends string, A, B, E2, R2>(tag: Exclude<N, keyof A>, f: (_: NoInfer<A>) => Effect.Effect<B, E2, R2>, options?: {
13626
13489
  readonly concurrency?: number | "unbounded" | undefined;
@@ -13652,7 +13515,7 @@ export declare const bindEffect: {
13652
13515
  * ```
13653
13516
  *
13654
13517
  * @category Do Notation
13655
- * @since 4.0.0
13518
+ * @since 2.0.0
13656
13519
  */
13657
13520
  <A, E, R, N extends string, B, E2, R2>(self: Stream<A, E, R>, tag: Exclude<N, keyof A>, f: (_: NoInfer<A>) => Effect.Effect<B, E2, R2>, options?: {
13658
13521
  readonly concurrency?: number | "unbounded" | undefined;
@@ -13679,7 +13542,7 @@ export declare const bindEffect: {
13679
13542
  * ```
13680
13543
  *
13681
13544
  * @category Do Notation
13682
- * @since 4.0.0
13545
+ * @since 2.0.0
13683
13546
  */
13684
13547
  export declare const bindTo: {
13685
13548
  /**
@@ -13699,7 +13562,7 @@ export declare const bindTo: {
13699
13562
  * ```
13700
13563
  *
13701
13564
  * @category Do Notation
13702
- * @since 4.0.0
13565
+ * @since 2.0.0
13703
13566
  */
13704
13567
  <N extends string>(name: N): <A, E, R>(self: Stream<A, E, R>) => Stream<{
13705
13568
  [K in N]: A;
@@ -13721,7 +13584,7 @@ export declare const bindTo: {
13721
13584
  * ```
13722
13585
  *
13723
13586
  * @category Do Notation
13724
- * @since 4.0.0
13587
+ * @since 2.0.0
13725
13588
  */
13726
13589
  <A, E, R, N extends string>(self: Stream<A, E, R>, name: N): Stream<{
13727
13590
  [K in N]: A;
@@ -13741,7 +13604,7 @@ export declare const bindTo: {
13741
13604
  * // 6
13742
13605
  * ```
13743
13606
  *
13744
- * @category Destructors
13607
+ * @category destructors
13745
13608
  * @since 2.0.0
13746
13609
  */
13747
13610
  export declare const run: {
@@ -13759,7 +13622,7 @@ export declare const run: {
13759
13622
  * // 6
13760
13623
  * ```
13761
13624
  *
13762
- * @category Destructors
13625
+ * @category destructors
13763
13626
  * @since 2.0.0
13764
13627
  */
13765
13628
  <A2, A, L, E2, R2>(sink: Sink.Sink<A2, A, L, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<A2, E2 | E, R | R2>;
@@ -13777,7 +13640,7 @@ export declare const run: {
13777
13640
  * // 6
13778
13641
  * ```
13779
13642
  *
13780
- * @category Destructors
13643
+ * @category destructors
13781
13644
  * @since 2.0.0
13782
13645
  */
13783
13646
  <A, E, R, L, A2, E2, R2>(self: Stream<A, E, R>, sink: Sink.Sink<A2, A, L, E2, R2>): Effect.Effect<A2, E | E2, R | R2>;
@@ -13801,7 +13664,7 @@ export declare const run: {
13801
13664
  * // [1, 2, 3, 4, 5]
13802
13665
  * ```
13803
13666
  *
13804
- * @category Destructors
13667
+ * @category destructors
13805
13668
  * @since 2.0.0
13806
13669
  */
13807
13670
  export declare const runCollect: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<Array<A>, E, R>;
@@ -13824,7 +13687,7 @@ export declare const runCollect: <A, E, R>(self: Stream<A, E, R>) => Effect.Effe
13824
13687
  * // 5
13825
13688
  * ```
13826
13689
  *
13827
- * @category Destructors
13690
+ * @category destructors
13828
13691
  * @since 2.0.0
13829
13692
  */
13830
13693
  export declare const runCount: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<number, E, R>;
@@ -13845,7 +13708,7 @@ export declare const runCount: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect
13845
13708
  * // 6
13846
13709
  * ```
13847
13710
  *
13848
- * @category Destructors
13711
+ * @category destructors
13849
13712
  * @since 2.0.0
13850
13713
  */
13851
13714
  export declare const runSum: <E, R>(self: Stream<number, E, R>) => Effect.Effect<number, E, R>;
@@ -13870,7 +13733,7 @@ export declare const runSum: <E, R>(self: Stream<number, E, R>) => Effect.Effect
13870
13733
  * // 6
13871
13734
  * ```
13872
13735
  *
13873
- * @category Destructors
13736
+ * @category destructors
13874
13737
  * @since 2.0.0
13875
13738
  */
13876
13739
  export declare const runFold: {
@@ -13895,7 +13758,7 @@ export declare const runFold: {
13895
13758
  * // 6
13896
13759
  * ```
13897
13760
  *
13898
- * @category Destructors
13761
+ * @category destructors
13899
13762
  * @since 2.0.0
13900
13763
  */
13901
13764
  <Z, A>(initial: LazyArg<Z>, f: (acc: Z, a: A) => Z): <E, R>(self: Stream<A, E, R>) => Effect.Effect<Z, E, R>;
@@ -13920,7 +13783,7 @@ export declare const runFold: {
13920
13783
  * // 6
13921
13784
  * ```
13922
13785
  *
13923
- * @category Destructors
13786
+ * @category destructors
13924
13787
  * @since 2.0.0
13925
13788
  */
13926
13789
  <A, E, R, Z>(self: Stream<A, E, R>, initial: LazyArg<Z>, f: (acc: Z, a: A) => Z): Effect.Effect<Z, E, R>;
@@ -13946,7 +13809,7 @@ export declare const runFold: {
13946
13809
  * // 6
13947
13810
  * ```
13948
13811
  *
13949
- * @category Destructors
13812
+ * @category destructors
13950
13813
  * @since 2.0.0
13951
13814
  */
13952
13815
  export declare const runFoldEffect: {
@@ -13971,7 +13834,7 @@ export declare const runFoldEffect: {
13971
13834
  * // 6
13972
13835
  * ```
13973
13836
  *
13974
- * @category Destructors
13837
+ * @category destructors
13975
13838
  * @since 2.0.0
13976
13839
  */
13977
13840
  <Z, A, EX, RX>(initial: LazyArg<Z>, f: (acc: Z, a: A) => Effect.Effect<Z, EX, RX>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<Z, E | EX, R | RX>;
@@ -13996,7 +13859,7 @@ export declare const runFoldEffect: {
13996
13859
  * // 6
13997
13860
  * ```
13998
13861
  *
13999
- * @category Destructors
13862
+ * @category destructors
14000
13863
  * @since 2.0.0
14001
13864
  */
14002
13865
  <A, E, R, Z, EX, RX>(self: Stream<A, E, R>, initial: LazyArg<Z>, f: (acc: Z, a: A) => Effect.Effect<Z, EX, RX>): Effect.Effect<Z, E | EX, R | RX>;
@@ -14018,14 +13881,14 @@ export declare const runFoldEffect: {
14018
13881
  * // 1
14019
13882
  * ```
14020
13883
  *
14021
- * @category Destructors
13884
+ * @category destructors
14022
13885
  * @since 2.0.0
14023
13886
  */
14024
13887
  export declare const runHead: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<Option.Option<A>, E, R>;
14025
13888
  /**
14026
13889
  * Runs the stream and returns the last element as an `Option`.
14027
13890
  *
14028
- * @category Destructors
13891
+ * @category destructors
14029
13892
  * @since 2.0.0
14030
13893
  */
14031
13894
  export declare const runLast: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<Option.Option<A>, E, R>;
@@ -14049,7 +13912,7 @@ export declare const runLast: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<
14049
13912
  * // Processing: 3
14050
13913
  * ```
14051
13914
  *
14052
- * @category Destructors
13915
+ * @category destructors
14053
13916
  * @since 2.0.0
14054
13917
  */
14055
13918
  export declare const runForEach: {
@@ -14073,7 +13936,7 @@ export declare const runForEach: {
14073
13936
  * // Processing: 3
14074
13937
  * ```
14075
13938
  *
14076
- * @category Destructors
13939
+ * @category destructors
14077
13940
  * @since 2.0.0
14078
13941
  */
14079
13942
  <A, X, E2, R2>(f: (a: A) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>;
@@ -14097,7 +13960,7 @@ export declare const runForEach: {
14097
13960
  * // Processing: 3
14098
13961
  * ```
14099
13962
  *
14100
- * @category Destructors
13963
+ * @category destructors
14101
13964
  * @since 2.0.0
14102
13965
  */
14103
13966
  <A, E, R, X, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<X, E2, R2>): Effect.Effect<void, E | E2, R | R2>;
@@ -14128,7 +13991,7 @@ export declare const runForEach: {
14128
13991
  * // Processing: 3
14129
13992
  * ```
14130
13993
  *
14131
- * @category Destructors
13994
+ * @category destructors
14132
13995
  * @since 2.0.0
14133
13996
  */
14134
13997
  export declare const runForEachWhile: {
@@ -14158,7 +14021,7 @@ export declare const runForEachWhile: {
14158
14021
  * // Processing: 3
14159
14022
  * ```
14160
14023
  *
14161
- * @category Destructors
14024
+ * @category destructors
14162
14025
  * @since 2.0.0
14163
14026
  */
14164
14027
  <A, E2, R2>(f: (a: A) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>;
@@ -14188,7 +14051,7 @@ export declare const runForEachWhile: {
14188
14051
  * // Processing: 3
14189
14052
  * ```
14190
14053
  *
14191
- * @category Destructors
14054
+ * @category destructors
14192
14055
  * @since 2.0.0
14193
14056
  */
14194
14057
  <A, E, R, E2, R2>(self: Stream<A, E, R>, f: (a: A) => Effect.Effect<boolean, E2, R2>): Effect.Effect<void, E | E2, R | R2>;
@@ -14213,8 +14076,8 @@ export declare const runForEachWhile: {
14213
14076
  * // Processing chunk: 1, 2, 3, 4, 5
14214
14077
  * ```
14215
14078
  *
14216
- * @category Destructors
14217
- * @since 2.0.0
14079
+ * @category destructors
14080
+ * @since 4.0.0
14218
14081
  */
14219
14082
  export declare const runForEachArray: {
14220
14083
  /**
@@ -14237,8 +14100,8 @@ export declare const runForEachArray: {
14237
14100
  * // Processing chunk: 1, 2, 3, 4, 5
14238
14101
  * ```
14239
14102
  *
14240
- * @category Destructors
14241
- * @since 2.0.0
14103
+ * @category destructors
14104
+ * @since 4.0.0
14242
14105
  */
14243
14106
  <A, X, E2, R2>(f: (a: Arr.NonEmptyReadonlyArray<A>) => Effect.Effect<X, E2, R2>): <E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E2 | E, R2 | R>;
14244
14107
  /**
@@ -14261,8 +14124,8 @@ export declare const runForEachArray: {
14261
14124
  * // Processing chunk: 1, 2, 3, 4, 5
14262
14125
  * ```
14263
14126
  *
14264
- * @category Destructors
14265
- * @since 2.0.0
14127
+ * @category destructors
14128
+ * @since 4.0.0
14266
14129
  */
14267
14130
  <A, E, R, X, E2, R2>(self: Stream<A, E, R>, f: (a: Arr.NonEmptyReadonlyArray<A>) => Effect.Effect<X, E2, R2>): Effect.Effect<void, E | E2, R | R2>;
14268
14131
  };
@@ -14288,7 +14151,7 @@ export declare const runForEachArray: {
14288
14151
  * // Processing: 3
14289
14152
  * ```
14290
14153
  *
14291
- * @category Destructors
14154
+ * @category destructors
14292
14155
  * @since 2.0.0
14293
14156
  */
14294
14157
  export declare const runDrain: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<void, E, R>;
@@ -14317,7 +14180,7 @@ export declare const runDrain: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect
14317
14180
  * // [1, 2, 3]
14318
14181
  * ```
14319
14182
  *
14320
- * @category Destructors
14183
+ * @category destructors
14321
14184
  * @since 2.0.0
14322
14185
  */
14323
14186
  export declare const toPull: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<Pull.Pull<Arr.NonEmptyReadonlyArray<A>, E>, never, R | Scope.Scope>;
@@ -14339,7 +14202,7 @@ export declare const toPull: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<P
14339
14202
  * // Hello World!
14340
14203
  * ```
14341
14204
  *
14342
- * @category Destructors
14205
+ * @category destructors
14343
14206
  * @since 2.0.0
14344
14207
  */
14345
14208
  export declare const mkString: <E, R>(self: Stream<string, E, R>) => Effect.Effect<string, E, R>;
@@ -14361,7 +14224,7 @@ export declare const mkString: <E, R>(self: Stream<string, E, R>) => Effect.Effe
14361
14224
  * // [1, 2, 3, 4]
14362
14225
  * ```
14363
14226
  *
14364
- * @category Destructors
14227
+ * @category destructors
14365
14228
  * @since 4.0.0
14366
14229
  */
14367
14230
  export declare const mkUint8Array: <E, R>(self: Stream<Uint8Array, E, R>) => Effect.Effect<Uint8Array, E, R>;
@@ -14379,8 +14242,8 @@ export declare const mkUint8Array: <E, R>(self: Stream<Uint8Array, E, R>) => Eff
14379
14242
  * const readableStream = Stream.toReadableStreamWith(stream, Context.empty())
14380
14243
  * ```
14381
14244
  *
14382
- * @category Destructors
14383
- * @since 2.0.0
14245
+ * @category destructors
14246
+ * @since 4.0.0
14384
14247
  */
14385
14248
  export declare const toReadableStreamWith: (<A, XR>(context: Context.Context<XR>, options?: {
14386
14249
  readonly strategy?: QueuingStrategy<A> | undefined;
@@ -14401,7 +14264,7 @@ export declare const toReadableStreamWith: (<A, XR>(context: Context.Context<XR>
14401
14264
  * const reader = readableStream.getReader()
14402
14265
  * ```
14403
14266
  *
14404
- * @category Destructors
14267
+ * @category destructors
14405
14268
  * @since 2.0.0
14406
14269
  */
14407
14270
  export declare const toReadableStream: {
@@ -14419,7 +14282,7 @@ export declare const toReadableStream: {
14419
14282
  * const reader = readableStream.getReader()
14420
14283
  * ```
14421
14284
  *
14422
- * @category Destructors
14285
+ * @category destructors
14423
14286
  * @since 2.0.0
14424
14287
  */
14425
14288
  <A>(options?: {
@@ -14439,7 +14302,7 @@ export declare const toReadableStream: {
14439
14302
  * const reader = readableStream.getReader()
14440
14303
  * ```
14441
14304
  *
14442
- * @category Destructors
14305
+ * @category destructors
14443
14306
  * @since 2.0.0
14444
14307
  */
14445
14308
  <A, E>(self: Stream<A, E>, options?: {
@@ -14466,7 +14329,7 @@ export declare const toReadableStream: {
14466
14329
  * Effect.runPromise(effect)
14467
14330
  * ```
14468
14331
  *
14469
- * @category Destructors
14332
+ * @category destructors
14470
14333
  * @since 2.0.0
14471
14334
  */
14472
14335
  export declare const toReadableStreamEffect: {
@@ -14490,7 +14353,7 @@ export declare const toReadableStreamEffect: {
14490
14353
  * Effect.runPromise(effect)
14491
14354
  * ```
14492
14355
  *
14493
- * @category Destructors
14356
+ * @category destructors
14494
14357
  * @since 2.0.0
14495
14358
  */
14496
14359
  <A>(options?: {
@@ -14516,7 +14379,7 @@ export declare const toReadableStreamEffect: {
14516
14379
  * Effect.runPromise(effect)
14517
14380
  * ```
14518
14381
  *
14519
- * @category Destructors
14382
+ * @category destructors
14520
14383
  * @since 2.0.0
14521
14384
  */
14522
14385
  <A, E, R>(self: Stream<A, E, R>, options?: {
@@ -14546,8 +14409,8 @@ export declare const toReadableStreamEffect: {
14546
14409
  * // [ 1, 2, 3 ]
14547
14410
  * ```
14548
14411
  *
14549
- * @category Destructors
14550
- * @since 2.0.0
14412
+ * @category destructors
14413
+ * @since 4.0.0
14551
14414
  */
14552
14415
  export declare const toAsyncIterableWith: {
14553
14416
  /**
@@ -14573,8 +14436,8 @@ export declare const toAsyncIterableWith: {
14573
14436
  * // [ 1, 2, 3 ]
14574
14437
  * ```
14575
14438
  *
14576
- * @category Destructors
14577
- * @since 2.0.0
14439
+ * @category destructors
14440
+ * @since 4.0.0
14578
14441
  */
14579
14442
  <XR>(context: Context.Context<XR>): <A, E, R extends XR>(self: Stream<A, E, R>) => AsyncIterable<A>;
14580
14443
  /**
@@ -14600,8 +14463,8 @@ export declare const toAsyncIterableWith: {
14600
14463
  * // [ 1, 2, 3 ]
14601
14464
  * ```
14602
14465
  *
14603
- * @category Destructors
14604
- * @since 2.0.0
14466
+ * @category destructors
14467
+ * @since 4.0.0
14605
14468
  */
14606
14469
  <A, E, XR, R extends XR>(self: Stream<A, E, R>, context: Context.Context<XR>): AsyncIterable<A>;
14607
14470
  };
@@ -14631,8 +14494,8 @@ export declare const toAsyncIterableWith: {
14631
14494
  * // [ 1, 2, 3 ]
14632
14495
  * ```
14633
14496
  *
14634
- * @category Destructors
14635
- * @since 2.0.0
14497
+ * @category destructors
14498
+ * @since 3.15.0
14636
14499
  */
14637
14500
  export declare const toAsyncIterableEffect: <A, E, R>(self: Stream<A, E, R>) => Effect.Effect<AsyncIterable<A>, never, R>;
14638
14501
  /**
@@ -14658,8 +14521,8 @@ export declare const toAsyncIterableEffect: <A, E, R>(self: Stream<A, E, R>) =>
14658
14521
  * // [ 1, 2, 3 ]
14659
14522
  * ```
14660
14523
  *
14661
- * @category Destructors
14662
- * @since 2.0.0
14524
+ * @category destructors
14525
+ * @since 3.15.0
14663
14526
  */
14664
14527
  export declare const toAsyncIterable: <A, E>(self: Stream<A, E>) => AsyncIterable<A>;
14665
14528
  /**
@@ -14691,7 +14554,7 @@ export declare const toAsyncIterable: <A, E>(self: Stream<A, E>) => AsyncIterabl
14691
14554
  * //=> 2
14692
14555
  * ```
14693
14556
  *
14694
- * @category Destructors
14557
+ * @category destructors
14695
14558
  * @since 2.0.0
14696
14559
  */
14697
14560
  export declare const runIntoPubSub: {
@@ -14724,7 +14587,7 @@ export declare const runIntoPubSub: {
14724
14587
  * //=> 2
14725
14588
  * ```
14726
14589
  *
14727
- * @category Destructors
14590
+ * @category destructors
14728
14591
  * @since 2.0.0
14729
14592
  */
14730
14593
  <A>(pubsub: PubSub.PubSub<A>, options?: {
@@ -14759,7 +14622,7 @@ export declare const runIntoPubSub: {
14759
14622
  * //=> 2
14760
14623
  * ```
14761
14624
  *
14762
- * @category Destructors
14625
+ * @category destructors
14763
14626
  * @since 2.0.0
14764
14627
  */
14765
14628
  <A, E, R>(self: Stream<A, E, R>, pubsub: PubSub.PubSub<A>, options?: {
@@ -14788,7 +14651,7 @@ export declare const runIntoPubSub: {
14788
14651
  * }))
14789
14652
  * ```
14790
14653
  *
14791
- * @category Destructors
14654
+ * @category destructors
14792
14655
  * @since 2.0.0
14793
14656
  */
14794
14657
  export declare const toPubSub: {
@@ -14814,7 +14677,7 @@ export declare const toPubSub: {
14814
14677
  * }))
14815
14678
  * ```
14816
14679
  *
14817
- * @category Destructors
14680
+ * @category destructors
14818
14681
  * @since 2.0.0
14819
14682
  */
14820
14683
  (options: {
@@ -14849,7 +14712,7 @@ export declare const toPubSub: {
14849
14712
  * }))
14850
14713
  * ```
14851
14714
  *
14852
- * @category Destructors
14715
+ * @category destructors
14853
14716
  * @since 2.0.0
14854
14717
  */
14855
14718
  <A, E, R>(self: Stream<A, E, R>, options: {
@@ -14886,7 +14749,7 @@ export declare const toPubSub: {
14886
14749
  * })
14887
14750
  * ```
14888
14751
  *
14889
- * @category Destructors
14752
+ * @category destructors
14890
14753
  * @since 4.0.0
14891
14754
  */
14892
14755
  export declare const toPubSubTake: {
@@ -14913,7 +14776,7 @@ export declare const toPubSubTake: {
14913
14776
  * })
14914
14777
  * ```
14915
14778
  *
14916
- * @category Destructors
14779
+ * @category destructors
14917
14780
  * @since 4.0.0
14918
14781
  */
14919
14782
  (options: {
@@ -14947,7 +14810,7 @@ export declare const toPubSubTake: {
14947
14810
  * })
14948
14811
  * ```
14949
14812
  *
14950
- * @category Destructors
14813
+ * @category destructors
14951
14814
  * @since 4.0.0
14952
14815
  */
14953
14816
  <A, E, R>(self: Stream<A, E, R>, options: {
@@ -14979,7 +14842,7 @@ export declare const toPubSubTake: {
14979
14842
  * })
14980
14843
  * ```
14981
14844
  *
14982
- * @category Destructors
14845
+ * @category destructors
14983
14846
  * @since 2.0.0
14984
14847
  */
14985
14848
  export declare const toQueue: {
@@ -15003,7 +14866,7 @@ export declare const toQueue: {
15003
14866
  * })
15004
14867
  * ```
15005
14868
  *
15006
- * @category Destructors
14869
+ * @category destructors
15007
14870
  * @since 2.0.0
15008
14871
  */
15009
14872
  (options: {
@@ -15032,7 +14895,7 @@ export declare const toQueue: {
15032
14895
  * })
15033
14896
  * ```
15034
14897
  *
15035
- * @category Destructors
14898
+ * @category destructors
15036
14899
  * @since 2.0.0
15037
14900
  */
15038
14901
  <A, E, R>(self: Stream<A, E, R>, options: {
@@ -15069,7 +14932,7 @@ export declare const toQueue: {
15069
14932
  * })
15070
14933
  * ```
15071
14934
  *
15072
- * @category Destructors
14935
+ * @category destructors
15073
14936
  * @since 2.0.0
15074
14937
  */
15075
14938
  export declare const runIntoQueue: {
@@ -15100,7 +14963,7 @@ export declare const runIntoQueue: {
15100
14963
  * })
15101
14964
  * ```
15102
14965
  *
15103
- * @category Destructors
14966
+ * @category destructors
15104
14967
  * @since 2.0.0
15105
14968
  */
15106
14969
  <A, E>(queue: Queue.Queue<A, E | Cause.Done>): <R>(self: Stream<A, E, R>) => Effect.Effect<void, never, R>;
@@ -15131,7 +14994,7 @@ export declare const runIntoQueue: {
15131
14994
  * })
15132
14995
  * ```
15133
14996
  *
15134
- * @category Destructors
14997
+ * @category destructors
15135
14998
  * @since 2.0.0
15136
14999
  */
15137
15000
  <A, E, R>(self: Stream<A, E, R>, queue: Queue.Queue<A, E | Cause.Done>): Effect.Effect<void, never, R>;