effect 2.0.0-next.5 → 2.0.0-next.50

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 (2384) hide show
  1. package/BigInt/dist/effect-BigInt.cjs.d.mts +2 -0
  2. package/BigInt/dist/effect-BigInt.cjs.d.mts.map +1 -0
  3. package/BigInt/dist/effect-BigInt.cjs.d.ts +2 -0
  4. package/BigInt/dist/effect-BigInt.cjs.d.ts.map +1 -0
  5. package/BigInt/dist/effect-BigInt.cjs.dev.js +520 -0
  6. package/BigInt/dist/effect-BigInt.cjs.js +7 -0
  7. package/BigInt/dist/effect-BigInt.cjs.mjs +28 -0
  8. package/BigInt/dist/effect-BigInt.cjs.prod.js +520 -0
  9. package/BigInt/dist/effect-BigInt.esm.js +482 -0
  10. package/BigInt/package.json +4 -0
  11. package/Boolean/dist/effect-Boolean.cjs.d.mts +2 -0
  12. package/Boolean/dist/effect-Boolean.cjs.d.mts.map +1 -0
  13. package/Boolean/dist/effect-Boolean.cjs.d.ts +2 -0
  14. package/Boolean/dist/effect-Boolean.cjs.d.ts.map +1 -0
  15. package/Boolean/dist/effect-Boolean.cjs.dev.js +247 -0
  16. package/Boolean/dist/effect-Boolean.cjs.js +7 -0
  17. package/Boolean/dist/effect-Boolean.cjs.mjs +16 -0
  18. package/Boolean/dist/effect-Boolean.cjs.prod.js +247 -0
  19. package/Boolean/dist/effect-Boolean.esm.js +230 -0
  20. package/Boolean/package.json +4 -0
  21. package/Brand/dist/effect-Brand.cjs.d.mts +2 -0
  22. package/Brand/dist/effect-Brand.cjs.d.mts.map +1 -0
  23. package/Brand/dist/effect-Brand.cjs.d.ts +2 -0
  24. package/Brand/dist/effect-Brand.cjs.d.ts.map +1 -0
  25. package/Brand/dist/effect-Brand.cjs.dev.js +228 -0
  26. package/Brand/dist/effect-Brand.cjs.js +7 -0
  27. package/Brand/dist/effect-Brand.cjs.mjs +9 -0
  28. package/Brand/dist/effect-Brand.cjs.prod.js +228 -0
  29. package/Brand/dist/effect-Brand.esm.js +204 -0
  30. package/Brand/package.json +4 -0
  31. package/Cache/dist/effect-Cache.cjs.d.mts +2 -0
  32. package/Cache/dist/effect-Cache.cjs.d.mts.map +1 -0
  33. package/Cache/dist/effect-Cache.cjs.d.ts +2 -0
  34. package/Cache/dist/effect-Cache.cjs.d.ts.map +1 -0
  35. package/Cache/dist/effect-Cache.cjs.dev.js +191 -0
  36. package/Cache/dist/effect-Cache.cjs.js +7 -0
  37. package/Cache/dist/effect-Cache.cjs.mjs +7 -0
  38. package/Cache/dist/effect-Cache.cjs.prod.js +191 -0
  39. package/Cache/dist/effect-Cache.esm.js +111 -0
  40. package/Cache/package.json +4 -0
  41. package/Cause/dist/effect-Cause.cjs.d.mts +2 -0
  42. package/Cause/dist/effect-Cause.cjs.d.mts.map +1 -0
  43. package/Cause/dist/effect-Cause.cjs.d.ts +2 -0
  44. package/Cause/dist/effect-Cause.cjs.d.ts.map +1 -0
  45. package/Cause/dist/effect-Cause.cjs.dev.js +759 -0
  46. package/Cause/dist/effect-Cause.cjs.js +7 -0
  47. package/Cause/dist/effect-Cause.cjs.mjs +61 -0
  48. package/Cause/dist/effect-Cause.cjs.prod.js +759 -0
  49. package/Cause/dist/effect-Cause.esm.js +668 -0
  50. package/Cause/package.json +4 -0
  51. package/Channel/dist/effect-Channel.cjs.d.mts +2 -0
  52. package/Channel/dist/effect-Channel.cjs.d.mts.map +1 -0
  53. package/Channel/dist/effect-Channel.cjs.d.ts +2 -0
  54. package/Channel/dist/effect-Channel.cjs.d.ts.map +1 -0
  55. package/Channel/dist/effect-Channel.cjs.dev.js +1221 -0
  56. package/Channel/dist/effect-Channel.cjs.js +7 -0
  57. package/Channel/dist/effect-Channel.cjs.mjs +109 -0
  58. package/Channel/dist/effect-Channel.cjs.prod.js +1221 -0
  59. package/Channel/dist/effect-Channel.esm.js +1009 -0
  60. package/Channel/package.json +4 -0
  61. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.d.mts +2 -0
  62. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.d.mts.map +1 -0
  63. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.d.ts +2 -0
  64. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.d.ts.map +1 -0
  65. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.dev.js +125 -0
  66. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.js +7 -0
  67. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.mjs +11 -0
  68. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.cjs.prod.js +125 -0
  69. package/ChannelChildExecutorDecision/dist/effect-ChannelChildExecutorDecision.esm.js +112 -0
  70. package/ChannelChildExecutorDecision/package.json +4 -0
  71. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.d.mts +2 -0
  72. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.d.mts.map +1 -0
  73. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.d.ts +2 -0
  74. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.d.ts.map +1 -0
  75. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.dev.js +70 -0
  76. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.js +7 -0
  77. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.mjs +8 -0
  78. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.cjs.prod.js +70 -0
  79. package/ChannelMergeDecision/dist/effect-ChannelMergeDecision.esm.js +60 -0
  80. package/ChannelMergeDecision/package.json +4 -0
  81. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.d.mts +2 -0
  82. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.d.mts.map +1 -0
  83. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.d.ts +2 -0
  84. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.d.ts.map +1 -0
  85. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.dev.js +114 -0
  86. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.js +7 -0
  87. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.mjs +11 -0
  88. package/ChannelMergeState/dist/effect-ChannelMergeState.cjs.prod.js +114 -0
  89. package/ChannelMergeState/dist/effect-ChannelMergeState.esm.js +101 -0
  90. package/ChannelMergeState/package.json +4 -0
  91. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.d.mts +2 -0
  92. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.d.mts.map +1 -0
  93. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.d.ts +2 -0
  94. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.d.ts.map +1 -0
  95. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.dev.js +95 -0
  96. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.js +7 -0
  97. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.mjs +9 -0
  98. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.cjs.prod.js +95 -0
  99. package/ChannelMergeStrategy/dist/effect-ChannelMergeStrategy.esm.js +84 -0
  100. package/ChannelMergeStrategy/package.json +4 -0
  101. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.d.mts +2 -0
  102. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.d.mts.map +1 -0
  103. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.d.ts +2 -0
  104. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.d.ts.map +1 -0
  105. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.dev.js +138 -0
  106. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.js +7 -0
  107. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.mjs +3 -0
  108. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.cjs.prod.js +138 -0
  109. package/ChannelSingleProducerAsyncInput/dist/effect-ChannelSingleProducerAsyncInput.esm.js +47 -0
  110. package/ChannelSingleProducerAsyncInput/package.json +4 -0
  111. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.d.mts +2 -0
  112. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.d.mts.map +1 -0
  113. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.d.ts +2 -0
  114. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.d.ts.map +1 -0
  115. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.dev.js +95 -0
  116. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.js +7 -0
  117. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.mjs +9 -0
  118. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.cjs.prod.js +95 -0
  119. package/ChannelUpstreamPullRequest/dist/effect-ChannelUpstreamPullRequest.esm.js +84 -0
  120. package/ChannelUpstreamPullRequest/package.json +4 -0
  121. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.d.mts +2 -0
  122. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.d.mts.map +1 -0
  123. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.d.ts +2 -0
  124. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.d.ts.map +1 -0
  125. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.dev.js +94 -0
  126. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.js +7 -0
  127. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.mjs +9 -0
  128. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.cjs.prod.js +94 -0
  129. package/ChannelUpstreamPullStrategy/dist/effect-ChannelUpstreamPullStrategy.esm.js +83 -0
  130. package/ChannelUpstreamPullStrategy/package.json +4 -0
  131. package/Chunk/dist/effect-Chunk.cjs.d.mts +2 -0
  132. package/Chunk/dist/effect-Chunk.cjs.d.mts.map +1 -0
  133. package/Chunk/dist/effect-Chunk.cjs.d.ts +2 -0
  134. package/Chunk/dist/effect-Chunk.cjs.d.ts.map +1 -0
  135. package/Chunk/dist/effect-Chunk.cjs.dev.js +1183 -0
  136. package/Chunk/dist/effect-Chunk.cjs.js +7 -0
  137. package/Chunk/dist/effect-Chunk.cjs.mjs +82 -0
  138. package/Chunk/dist/effect-Chunk.cjs.prod.js +1183 -0
  139. package/Chunk/dist/effect-Chunk.esm.js +1092 -0
  140. package/Chunk/package.json +4 -0
  141. package/Clock/dist/effect-Clock.cjs.d.mts +2 -0
  142. package/Clock/dist/effect-Clock.cjs.d.mts.map +1 -0
  143. package/Clock/dist/effect-Clock.cjs.d.ts +2 -0
  144. package/Clock/dist/effect-Clock.cjs.d.ts.map +1 -0
  145. package/Clock/dist/effect-Clock.cjs.dev.js +127 -0
  146. package/Clock/dist/effect-Clock.cjs.js +7 -0
  147. package/Clock/dist/effect-Clock.cjs.mjs +9 -0
  148. package/Clock/dist/effect-Clock.cjs.prod.js +127 -0
  149. package/Clock/dist/effect-Clock.esm.js +78 -0
  150. package/Clock/package.json +4 -0
  151. package/Config/dist/effect-Config.cjs.d.mts +2 -0
  152. package/Config/dist/effect-Config.cjs.d.mts.map +1 -0
  153. package/Config/dist/effect-Config.cjs.d.ts +2 -0
  154. package/Config/dist/effect-Config.cjs.d.ts.map +1 -0
  155. package/Config/dist/effect-Config.cjs.dev.js +391 -0
  156. package/Config/dist/effect-Config.cjs.js +7 -0
  157. package/Config/dist/effect-Config.cjs.mjs +35 -0
  158. package/Config/dist/effect-Config.cjs.prod.js +391 -0
  159. package/Config/dist/effect-Config.esm.js +321 -0
  160. package/Config/package.json +4 -0
  161. package/ConfigError/dist/effect-ConfigError.cjs.d.mts +2 -0
  162. package/ConfigError/dist/effect-ConfigError.cjs.d.mts.map +1 -0
  163. package/ConfigError/dist/effect-ConfigError.cjs.d.ts +2 -0
  164. package/ConfigError/dist/effect-ConfigError.cjs.d.ts.map +1 -0
  165. package/ConfigError/dist/effect-ConfigError.cjs.dev.js +223 -0
  166. package/ConfigError/dist/effect-ConfigError.cjs.js +7 -0
  167. package/ConfigError/dist/effect-ConfigError.cjs.mjs +19 -0
  168. package/ConfigError/dist/effect-ConfigError.cjs.prod.js +223 -0
  169. package/ConfigError/dist/effect-ConfigError.esm.js +185 -0
  170. package/ConfigError/package.json +4 -0
  171. package/ConfigProvider/dist/effect-ConfigProvider.cjs.d.mts +2 -0
  172. package/ConfigProvider/dist/effect-ConfigProvider.cjs.d.mts.map +1 -0
  173. package/ConfigProvider/dist/effect-ConfigProvider.cjs.d.ts +2 -0
  174. package/ConfigProvider/dist/effect-ConfigProvider.cjs.d.ts.map +1 -0
  175. package/ConfigProvider/dist/effect-ConfigProvider.cjs.dev.js +256 -0
  176. package/ConfigProvider/dist/effect-ConfigProvider.cjs.js +7 -0
  177. package/ConfigProvider/dist/effect-ConfigProvider.cjs.mjs +20 -0
  178. package/ConfigProvider/dist/effect-ConfigProvider.cjs.prod.js +256 -0
  179. package/ConfigProvider/dist/effect-ConfigProvider.esm.js +198 -0
  180. package/ConfigProvider/package.json +4 -0
  181. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.d.mts +2 -0
  182. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.d.mts.map +1 -0
  183. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.d.ts +2 -0
  184. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.d.ts.map +1 -0
  185. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.dev.js +99 -0
  186. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.js +7 -0
  187. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.mjs +7 -0
  188. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.cjs.prod.js +99 -0
  189. package/ConfigProviderPathPatch/dist/effect-ConfigProviderPathPatch.esm.js +70 -0
  190. package/ConfigProviderPathPatch/package.json +4 -0
  191. package/ConfigSecret/dist/effect-ConfigSecret.cjs.d.mts +2 -0
  192. package/ConfigSecret/dist/effect-ConfigSecret.cjs.d.mts.map +1 -0
  193. package/ConfigSecret/dist/effect-ConfigSecret.cjs.d.ts +2 -0
  194. package/ConfigSecret/dist/effect-ConfigSecret.cjs.d.ts.map +1 -0
  195. package/ConfigSecret/dist/effect-ConfigSecret.cjs.dev.js +92 -0
  196. package/ConfigSecret/dist/effect-ConfigSecret.cjs.js +7 -0
  197. package/ConfigSecret/dist/effect-ConfigSecret.cjs.mjs +9 -0
  198. package/ConfigSecret/dist/effect-ConfigSecret.cjs.prod.js +92 -0
  199. package/ConfigSecret/dist/effect-ConfigSecret.esm.js +63 -0
  200. package/ConfigSecret/package.json +4 -0
  201. package/Console/dist/effect-Console.cjs.d.mts +2 -0
  202. package/Console/dist/effect-Console.cjs.d.mts.map +1 -0
  203. package/Console/dist/effect-Console.cjs.d.ts +2 -0
  204. package/Console/dist/effect-Console.cjs.d.ts.map +1 -0
  205. package/Console/dist/effect-Console.cjs.dev.js +322 -0
  206. package/Console/dist/effect-Console.cjs.js +7 -0
  207. package/Console/dist/effect-Console.cjs.mjs +24 -0
  208. package/Console/dist/effect-Console.cjs.prod.js +322 -0
  209. package/Console/dist/effect-Console.esm.js +154 -0
  210. package/Console/package.json +4 -0
  211. package/Context/dist/effect-Context.cjs.d.mts +2 -0
  212. package/Context/dist/effect-Context.cjs.d.mts.map +1 -0
  213. package/Context/dist/effect-Context.cjs.d.ts +2 -0
  214. package/Context/dist/effect-Context.cjs.d.ts.map +1 -0
  215. package/Context/dist/effect-Context.cjs.dev.js +321 -0
  216. package/Context/dist/effect-Context.cjs.js +7 -0
  217. package/Context/dist/effect-Context.cjs.mjs +15 -0
  218. package/Context/dist/effect-Context.cjs.prod.js +321 -0
  219. package/Context/dist/effect-Context.esm.js +295 -0
  220. package/Context/package.json +4 -0
  221. package/Data/dist/effect-Data.cjs.d.mts +2 -0
  222. package/Data/dist/effect-Data.cjs.d.mts.map +1 -0
  223. package/Data/dist/effect-Data.cjs.d.ts +2 -0
  224. package/Data/dist/effect-Data.cjs.d.ts.map +1 -0
  225. package/Data/dist/effect-Data.cjs.dev.js +318 -0
  226. package/Data/dist/effect-Data.cjs.js +7 -0
  227. package/Data/dist/effect-Data.cjs.mjs +15 -0
  228. package/Data/dist/effect-Data.cjs.prod.js +318 -0
  229. package/Data/dist/effect-Data.esm.js +217 -0
  230. package/Data/package.json +4 -0
  231. package/DefaultServices/dist/effect-DefaultServices.cjs.d.mts +2 -0
  232. package/DefaultServices/dist/effect-DefaultServices.cjs.d.mts.map +1 -0
  233. package/DefaultServices/dist/effect-DefaultServices.cjs.d.ts +2 -0
  234. package/DefaultServices/dist/effect-DefaultServices.cjs.d.ts.map +1 -0
  235. package/DefaultServices/dist/effect-DefaultServices.cjs.dev.js +69 -0
  236. package/DefaultServices/dist/effect-DefaultServices.cjs.js +7 -0
  237. package/DefaultServices/dist/effect-DefaultServices.cjs.mjs +4 -0
  238. package/DefaultServices/dist/effect-DefaultServices.cjs.prod.js +69 -0
  239. package/DefaultServices/dist/effect-DefaultServices.esm.js +24 -0
  240. package/DefaultServices/package.json +4 -0
  241. package/Deferred/dist/effect-Deferred.cjs.d.mts +2 -0
  242. package/Deferred/dist/effect-Deferred.cjs.d.mts.map +1 -0
  243. package/Deferred/dist/effect-Deferred.cjs.d.ts +2 -0
  244. package/Deferred/dist/effect-Deferred.cjs.d.ts.map +1 -0
  245. package/Deferred/dist/effect-Deferred.cjs.dev.js +259 -0
  246. package/Deferred/dist/effect-Deferred.cjs.js +7 -0
  247. package/Deferred/dist/effect-Deferred.cjs.mjs +23 -0
  248. package/Deferred/dist/effect-Deferred.cjs.prod.js +259 -0
  249. package/Deferred/dist/effect-Deferred.esm.js +206 -0
  250. package/Deferred/package.json +4 -0
  251. package/Differ/dist/effect-Differ.cjs.d.mts +2 -0
  252. package/Differ/dist/effect-Differ.cjs.d.mts.map +1 -0
  253. package/Differ/dist/effect-Differ.cjs.d.ts +2 -0
  254. package/Differ/dist/effect-Differ.cjs.d.ts.map +1 -0
  255. package/Differ/dist/effect-Differ.cjs.dev.js +990 -0
  256. package/Differ/dist/effect-Differ.cjs.js +7 -0
  257. package/Differ/dist/effect-Differ.cjs.mjs +17 -0
  258. package/Differ/dist/effect-Differ.cjs.prod.js +990 -0
  259. package/Differ/dist/effect-Differ.esm.js +137 -0
  260. package/Differ/package.json +4 -0
  261. package/Duration/dist/effect-Duration.cjs.d.mts +2 -0
  262. package/Duration/dist/effect-Duration.cjs.d.mts.map +1 -0
  263. package/Duration/dist/effect-Duration.cjs.d.ts +2 -0
  264. package/Duration/dist/effect-Duration.cjs.d.ts.map +1 -0
  265. package/Duration/dist/effect-Duration.cjs.dev.js +479 -0
  266. package/Duration/dist/effect-Duration.cjs.js +7 -0
  267. package/Duration/dist/effect-Duration.cjs.mjs +34 -0
  268. package/Duration/dist/effect-Duration.cjs.prod.js +479 -0
  269. package/Duration/dist/effect-Duration.esm.js +438 -0
  270. package/Duration/package.json +4 -0
  271. package/Effect/dist/effect-Effect.cjs.d.mts +2 -0
  272. package/Effect/dist/effect-Effect.cjs.d.mts.map +1 -0
  273. package/Effect/dist/effect-Effect.cjs.d.ts +2 -0
  274. package/Effect/dist/effect-Effect.cjs.d.ts.map +1 -0
  275. package/Effect/dist/effect-Effect.cjs.dev.js +3402 -0
  276. package/Effect/dist/effect-Effect.cjs.js +7 -0
  277. package/Effect/dist/effect-Effect.cjs.mjs +312 -0
  278. package/Effect/dist/effect-Effect.cjs.prod.js +3402 -0
  279. package/Effect/dist/effect-Effect.esm.js +3014 -0
  280. package/Effect/package.json +4 -0
  281. package/Effectable/dist/effect-Effectable.cjs.d.mts +2 -0
  282. package/Effectable/dist/effect-Effectable.cjs.d.mts.map +1 -0
  283. package/Effectable/dist/effect-Effectable.cjs.d.ts +2 -0
  284. package/Effectable/dist/effect-Effectable.cjs.d.ts.map +1 -0
  285. package/Effectable/dist/effect-Effectable.cjs.dev.js +106 -0
  286. package/Effectable/dist/effect-Effectable.cjs.js +7 -0
  287. package/Effectable/dist/effect-Effectable.cjs.mjs +11 -0
  288. package/Effectable/dist/effect-Effectable.cjs.prod.js +106 -0
  289. package/Effectable/dist/effect-Effectable.esm.js +87 -0
  290. package/Effectable/package.json +4 -0
  291. package/Either/dist/effect-Either.cjs.d.mts +2 -0
  292. package/Either/dist/effect-Either.cjs.d.mts.map +1 -0
  293. package/Either/dist/effect-Either.cjs.d.ts +2 -0
  294. package/Either/dist/effect-Either.cjs.d.ts.map +1 -0
  295. package/Either/dist/effect-Either.cjs.dev.js +493 -0
  296. package/Either/dist/effect-Either.cjs.js +7 -0
  297. package/Either/dist/effect-Either.cjs.mjs +31 -0
  298. package/Either/dist/effect-Either.cjs.prod.js +493 -0
  299. package/Either/dist/effect-Either.esm.js +454 -0
  300. package/Either/package.json +4 -0
  301. package/Encoding/dist/effect-Encoding.cjs.d.mts +2 -0
  302. package/Encoding/dist/effect-Encoding.cjs.d.mts.map +1 -0
  303. package/Encoding/dist/effect-Encoding.cjs.d.ts +2 -0
  304. package/Encoding/dist/effect-Encoding.cjs.d.ts.map +1 -0
  305. package/Encoding/dist/effect-Encoding.cjs.dev.js +306 -0
  306. package/Encoding/dist/effect-Encoding.cjs.js +7 -0
  307. package/Encoding/dist/effect-Encoding.cjs.mjs +14 -0
  308. package/Encoding/dist/effect-Encoding.cjs.prod.js +306 -0
  309. package/Encoding/dist/effect-Encoding.esm.js +123 -0
  310. package/Encoding/package.json +4 -0
  311. package/Equal/dist/effect-Equal.cjs.d.mts +2 -0
  312. package/Equal/dist/effect-Equal.cjs.d.mts.map +1 -0
  313. package/Equal/dist/effect-Equal.cjs.d.ts +2 -0
  314. package/Equal/dist/effect-Equal.cjs.d.ts.map +1 -0
  315. package/Equal/dist/effect-Equal.cjs.dev.js +68 -0
  316. package/Equal/dist/effect-Equal.cjs.js +7 -0
  317. package/Equal/dist/effect-Equal.cjs.mjs +6 -0
  318. package/Equal/dist/effect-Equal.cjs.prod.js +68 -0
  319. package/Equal/dist/effect-Equal.esm.js +57 -0
  320. package/Equal/package.json +4 -0
  321. package/Equivalence/dist/effect-Equivalence.cjs.d.mts +2 -0
  322. package/Equivalence/dist/effect-Equivalence.cjs.d.mts.map +1 -0
  323. package/Equivalence/dist/effect-Equivalence.cjs.d.ts +2 -0
  324. package/Equivalence/dist/effect-Equivalence.cjs.d.ts.map +1 -0
  325. package/Equivalence/dist/effect-Equivalence.cjs.dev.js +217 -0
  326. package/Equivalence/dist/effect-Equivalence.cjs.js +7 -0
  327. package/Equivalence/dist/effect-Equivalence.cjs.mjs +20 -0
  328. package/Equivalence/dist/effect-Equivalence.cjs.prod.js +217 -0
  329. package/Equivalence/dist/effect-Equivalence.esm.js +196 -0
  330. package/Equivalence/package.json +4 -0
  331. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.d.mts +2 -0
  332. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.d.mts.map +1 -0
  333. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.d.ts +2 -0
  334. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.d.ts.map +1 -0
  335. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.dev.js +16 -0
  336. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.js +7 -0
  337. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.mjs +9 -0
  338. package/ExecutionStrategy/dist/effect-ExecutionStrategy.cjs.prod.js +16 -0
  339. package/ExecutionStrategy/dist/effect-ExecutionStrategy.esm.js +99 -0
  340. package/ExecutionStrategy/package.json +4 -0
  341. package/Exit/dist/effect-Exit.cjs.d.mts +2 -0
  342. package/Exit/dist/effect-Exit.cjs.d.mts.map +1 -0
  343. package/Exit/dist/effect-Exit.cjs.d.ts +2 -0
  344. package/Exit/dist/effect-Exit.cjs.d.ts.map +1 -0
  345. package/Exit/dist/effect-Exit.cjs.dev.js +400 -0
  346. package/Exit/dist/effect-Exit.cjs.js +7 -0
  347. package/Exit/dist/effect-Exit.cjs.mjs +37 -0
  348. package/Exit/dist/effect-Exit.cjs.prod.js +400 -0
  349. package/Exit/dist/effect-Exit.esm.js +332 -0
  350. package/Exit/package.json +4 -0
  351. package/Fiber/dist/effect-Fiber.cjs.d.mts +2 -0
  352. package/Fiber/dist/effect-Fiber.cjs.d.mts.map +1 -0
  353. package/Fiber/dist/effect-Fiber.cjs.d.ts +2 -0
  354. package/Fiber/dist/effect-Fiber.cjs.d.ts.map +1 -0
  355. package/Fiber/dist/effect-Fiber.cjs.dev.js +544 -0
  356. package/Fiber/dist/effect-Fiber.cjs.js +7 -0
  357. package/Fiber/dist/effect-Fiber.cjs.mjs +48 -0
  358. package/Fiber/dist/effect-Fiber.cjs.prod.js +544 -0
  359. package/Fiber/dist/effect-Fiber.esm.js +423 -0
  360. package/Fiber/package.json +4 -0
  361. package/FiberId/dist/effect-FiberId.cjs.d.mts +2 -0
  362. package/FiberId/dist/effect-FiberId.cjs.d.mts.map +1 -0
  363. package/FiberId/dist/effect-FiberId.cjs.d.ts +2 -0
  364. package/FiberId/dist/effect-FiberId.cjs.d.ts.map +1 -0
  365. package/FiberId/dist/effect-FiberId.cjs.dev.js +43 -0
  366. package/FiberId/dist/effect-FiberId.cjs.js +7 -0
  367. package/FiberId/dist/effect-FiberId.cjs.mjs +19 -0
  368. package/FiberId/dist/effect-FiberId.cjs.prod.js +43 -0
  369. package/FiberId/dist/effect-FiberId.esm.js +161 -0
  370. package/FiberId/package.json +4 -0
  371. package/FiberRef/dist/effect-FiberRef.cjs.d.mts +2 -0
  372. package/FiberRef/dist/effect-FiberRef.cjs.d.mts.map +1 -0
  373. package/FiberRef/dist/effect-FiberRef.cjs.d.ts +2 -0
  374. package/FiberRef/dist/effect-FiberRef.cjs.d.ts.map +1 -0
  375. package/FiberRef/dist/effect-FiberRef.cjs.dev.js +400 -0
  376. package/FiberRef/dist/effect-FiberRef.cjs.js +7 -0
  377. package/FiberRef/dist/effect-FiberRef.cjs.mjs +46 -0
  378. package/FiberRef/dist/effect-FiberRef.cjs.prod.js +400 -0
  379. package/FiberRef/dist/effect-FiberRef.esm.js +283 -0
  380. package/FiberRef/package.json +4 -0
  381. package/FiberRefs/dist/effect-FiberRefs.cjs.d.mts +2 -0
  382. package/FiberRefs/dist/effect-FiberRefs.cjs.d.mts.map +1 -0
  383. package/FiberRefs/dist/effect-FiberRefs.cjs.d.ts +2 -0
  384. package/FiberRefs/dist/effect-FiberRefs.cjs.d.ts.map +1 -0
  385. package/FiberRefs/dist/effect-FiberRefs.cjs.dev.js +152 -0
  386. package/FiberRefs/dist/effect-FiberRefs.cjs.js +7 -0
  387. package/FiberRefs/dist/effect-FiberRefs.cjs.mjs +13 -0
  388. package/FiberRefs/dist/effect-FiberRefs.cjs.prod.js +152 -0
  389. package/FiberRefs/dist/effect-FiberRefs.esm.js +107 -0
  390. package/FiberRefs/package.json +4 -0
  391. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.d.mts +2 -0
  392. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.d.mts.map +1 -0
  393. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.d.ts +2 -0
  394. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.d.ts.map +1 -0
  395. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.dev.js +115 -0
  396. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.js +7 -0
  397. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.mjs +6 -0
  398. package/FiberRefsPatch/dist/effect-FiberRefsPatch.cjs.prod.js +115 -0
  399. package/FiberRefsPatch/dist/effect-FiberRefsPatch.esm.js +76 -0
  400. package/FiberRefsPatch/package.json +4 -0
  401. package/FiberStatus/dist/effect-FiberStatus.cjs.d.mts +2 -0
  402. package/FiberStatus/dist/effect-FiberStatus.cjs.d.mts.map +1 -0
  403. package/FiberStatus/dist/effect-FiberStatus.cjs.d.ts +2 -0
  404. package/FiberStatus/dist/effect-FiberStatus.cjs.d.ts.map +1 -0
  405. package/FiberStatus/dist/effect-FiberStatus.cjs.dev.js +189 -0
  406. package/FiberStatus/dist/effect-FiberStatus.cjs.js +7 -0
  407. package/FiberStatus/dist/effect-FiberStatus.cjs.mjs +10 -0
  408. package/FiberStatus/dist/effect-FiberStatus.cjs.prod.js +189 -0
  409. package/FiberStatus/dist/effect-FiberStatus.esm.js +89 -0
  410. package/FiberStatus/package.json +4 -0
  411. package/Function/dist/effect-Function.cjs.d.mts +2 -0
  412. package/Function/dist/effect-Function.cjs.d.mts.map +1 -0
  413. package/Function/dist/effect-Function.cjs.d.ts +2 -0
  414. package/Function/dist/effect-Function.cjs.d.ts.map +1 -0
  415. package/Function/dist/effect-Function.cjs.dev.js +515 -0
  416. package/Function/dist/effect-Function.cjs.js +7 -0
  417. package/Function/dist/effect-Function.cjs.mjs +22 -0
  418. package/Function/dist/effect-Function.cjs.prod.js +515 -0
  419. package/Function/dist/effect-Function.esm.js +492 -0
  420. package/Function/package.json +4 -0
  421. package/GlobalValue/dist/effect-GlobalValue.cjs.d.mts +2 -0
  422. package/GlobalValue/dist/effect-GlobalValue.cjs.d.mts.map +1 -0
  423. package/GlobalValue/dist/effect-GlobalValue.cjs.d.ts +2 -0
  424. package/GlobalValue/dist/effect-GlobalValue.cjs.d.ts.map +1 -0
  425. package/GlobalValue/dist/effect-GlobalValue.cjs.dev.js +24 -0
  426. package/GlobalValue/dist/effect-GlobalValue.cjs.js +7 -0
  427. package/GlobalValue/dist/effect-GlobalValue.cjs.mjs +3 -0
  428. package/GlobalValue/dist/effect-GlobalValue.cjs.prod.js +24 -0
  429. package/GlobalValue/dist/effect-GlobalValue.esm.js +20 -0
  430. package/GlobalValue/package.json +4 -0
  431. package/GroupBy/dist/effect-GroupBy.cjs.d.mts +2 -0
  432. package/GroupBy/dist/effect-GroupBy.cjs.d.mts.map +1 -0
  433. package/GroupBy/dist/effect-GroupBy.cjs.d.ts +2 -0
  434. package/GroupBy/dist/effect-GroupBy.cjs.d.ts.map +1 -0
  435. package/GroupBy/dist/effect-GroupBy.cjs.dev.js +177 -0
  436. package/GroupBy/dist/effect-GroupBy.cjs.js +7 -0
  437. package/GroupBy/dist/effect-GroupBy.cjs.mjs +7 -0
  438. package/GroupBy/dist/effect-GroupBy.cjs.prod.js +177 -0
  439. package/GroupBy/dist/effect-GroupBy.esm.js +63 -0
  440. package/GroupBy/package.json +4 -0
  441. package/HKT/dist/effect-HKT.cjs.d.mts +2 -0
  442. package/HKT/dist/effect-HKT.cjs.d.mts.map +1 -0
  443. package/HKT/dist/effect-HKT.cjs.d.ts +2 -0
  444. package/HKT/dist/effect-HKT.cjs.d.ts.map +1 -0
  445. package/HKT/dist/effect-HKT.cjs.dev.js +2 -0
  446. package/HKT/dist/effect-HKT.cjs.js +7 -0
  447. package/HKT/dist/effect-HKT.cjs.mjs +1 -0
  448. package/HKT/dist/effect-HKT.cjs.prod.js +2 -0
  449. package/HKT/dist/effect-HKT.esm.js +1 -0
  450. package/HKT/package.json +4 -0
  451. package/Hash/dist/effect-Hash.cjs.d.mts +2 -0
  452. package/Hash/dist/effect-Hash.cjs.d.mts.map +1 -0
  453. package/Hash/dist/effect-Hash.cjs.d.ts +2 -0
  454. package/Hash/dist/effect-Hash.cjs.d.ts.map +1 -0
  455. package/Hash/dist/effect-Hash.cjs.dev.js +179 -0
  456. package/Hash/dist/effect-Hash.cjs.js +7 -0
  457. package/Hash/dist/effect-Hash.cjs.mjs +13 -0
  458. package/Hash/dist/effect-Hash.cjs.prod.js +179 -0
  459. package/Hash/dist/effect-Hash.esm.js +164 -0
  460. package/Hash/package.json +4 -0
  461. package/HashMap/dist/effect-HashMap.cjs.d.mts +2 -0
  462. package/HashMap/dist/effect-HashMap.cjs.d.mts.map +1 -0
  463. package/HashMap/dist/effect-HashMap.cjs.d.ts +2 -0
  464. package/HashMap/dist/effect-HashMap.cjs.d.ts.map +1 -0
  465. package/HashMap/dist/effect-HashMap.cjs.dev.js +341 -0
  466. package/HashMap/dist/effect-HashMap.cjs.js +7 -0
  467. package/HashMap/dist/effect-HashMap.cjs.mjs +34 -0
  468. package/HashMap/dist/effect-HashMap.cjs.prod.js +341 -0
  469. package/HashMap/dist/effect-HashMap.esm.js +287 -0
  470. package/HashMap/package.json +4 -0
  471. package/HashSet/dist/effect-HashSet.cjs.d.mts +2 -0
  472. package/HashSet/dist/effect-HashSet.cjs.d.mts.map +1 -0
  473. package/HashSet/dist/effect-HashSet.cjs.d.ts +2 -0
  474. package/HashSet/dist/effect-HashSet.cjs.d.ts.map +1 -0
  475. package/HashSet/dist/effect-HashSet.cjs.dev.js +270 -0
  476. package/HashSet/dist/effect-HashSet.cjs.js +7 -0
  477. package/HashSet/dist/effect-HashSet.cjs.mjs +27 -0
  478. package/HashSet/dist/effect-HashSet.cjs.prod.js +270 -0
  479. package/HashSet/dist/effect-HashSet.esm.js +227 -0
  480. package/HashSet/package.json +4 -0
  481. package/Inspectable/dist/effect-Inspectable.cjs.d.mts +2 -0
  482. package/Inspectable/dist/effect-Inspectable.cjs.d.mts.map +1 -0
  483. package/Inspectable/dist/effect-Inspectable.cjs.d.ts +2 -0
  484. package/Inspectable/dist/effect-Inspectable.cjs.d.ts.map +1 -0
  485. package/Inspectable/dist/effect-Inspectable.cjs.dev.js +44 -0
  486. package/Inspectable/dist/effect-Inspectable.cjs.js +7 -0
  487. package/Inspectable/dist/effect-Inspectable.cjs.mjs +5 -0
  488. package/Inspectable/dist/effect-Inspectable.cjs.prod.js +44 -0
  489. package/Inspectable/dist/effect-Inspectable.esm.js +38 -0
  490. package/Inspectable/package.json +4 -0
  491. package/KeyedPool/dist/effect-KeyedPool.cjs.d.mts +2 -0
  492. package/KeyedPool/dist/effect-KeyedPool.cjs.d.mts.map +1 -0
  493. package/KeyedPool/dist/effect-KeyedPool.cjs.d.ts +2 -0
  494. package/KeyedPool/dist/effect-KeyedPool.cjs.d.ts.map +1 -0
  495. package/KeyedPool/dist/effect-KeyedPool.cjs.dev.js +334 -0
  496. package/KeyedPool/dist/effect-KeyedPool.cjs.js +7 -0
  497. package/KeyedPool/dist/effect-KeyedPool.cjs.mjs +9 -0
  498. package/KeyedPool/dist/effect-KeyedPool.cjs.prod.js +334 -0
  499. package/KeyedPool/dist/effect-KeyedPool.esm.js +104 -0
  500. package/KeyedPool/package.json +4 -0
  501. package/Layer/dist/effect-Layer.cjs.d.mts +2 -0
  502. package/Layer/dist/effect-Layer.cjs.d.mts.map +1 -0
  503. package/Layer/dist/effect-Layer.cjs.d.ts +2 -0
  504. package/Layer/dist/effect-Layer.cjs.d.ts.map +1 -0
  505. package/Layer/dist/effect-Layer.cjs.dev.js +802 -0
  506. package/Layer/dist/effect-Layer.cjs.js +7 -0
  507. package/Layer/dist/effect-Layer.cjs.mjs +77 -0
  508. package/Layer/dist/effect-Layer.cjs.prod.js +802 -0
  509. package/Layer/dist/effect-Layer.esm.js +646 -0
  510. package/Layer/package.json +4 -0
  511. package/List/dist/effect-List.cjs.d.mts +2 -0
  512. package/List/dist/effect-List.cjs.d.mts.map +1 -0
  513. package/List/dist/effect-List.cjs.d.ts +2 -0
  514. package/List/dist/effect-List.cjs.d.ts.map +1 -0
  515. package/List/dist/effect-List.cjs.dev.js +879 -0
  516. package/List/dist/effect-List.cjs.js +7 -0
  517. package/List/dist/effect-List.cjs.mjs +48 -0
  518. package/List/dist/effect-List.cjs.prod.js +879 -0
  519. package/List/dist/effect-List.esm.js +822 -0
  520. package/List/package.json +4 -0
  521. package/LogLevel/dist/effect-LogLevel.cjs.d.mts +2 -0
  522. package/LogLevel/dist/effect-LogLevel.cjs.d.mts.map +1 -0
  523. package/LogLevel/dist/effect-LogLevel.cjs.d.ts +2 -0
  524. package/LogLevel/dist/effect-LogLevel.cjs.d.ts.map +1 -0
  525. package/LogLevel/dist/effect-LogLevel.cjs.dev.js +249 -0
  526. package/LogLevel/dist/effect-LogLevel.cjs.js +7 -0
  527. package/LogLevel/dist/effect-LogLevel.cjs.mjs +18 -0
  528. package/LogLevel/dist/effect-LogLevel.cjs.prod.js +249 -0
  529. package/LogLevel/dist/effect-LogLevel.esm.js +202 -0
  530. package/LogLevel/package.json +4 -0
  531. package/LogSpan/dist/effect-LogSpan.cjs.d.mts +2 -0
  532. package/LogSpan/dist/effect-LogSpan.cjs.d.mts.map +1 -0
  533. package/LogSpan/dist/effect-LogSpan.cjs.d.ts +2 -0
  534. package/LogSpan/dist/effect-LogSpan.cjs.d.ts.map +1 -0
  535. package/LogSpan/dist/effect-LogSpan.cjs.dev.js +41 -0
  536. package/LogSpan/dist/effect-LogSpan.cjs.js +7 -0
  537. package/LogSpan/dist/effect-LogSpan.cjs.mjs +4 -0
  538. package/LogSpan/dist/effect-LogSpan.cjs.prod.js +41 -0
  539. package/LogSpan/dist/effect-LogSpan.esm.js +24 -0
  540. package/LogSpan/package.json +4 -0
  541. package/Logger/dist/effect-Logger.cjs.d.mts +2 -0
  542. package/Logger/dist/effect-Logger.cjs.d.mts.map +1 -0
  543. package/Logger/dist/effect-Logger.cjs.d.ts +2 -0
  544. package/Logger/dist/effect-Logger.cjs.d.ts.map +1 -0
  545. package/Logger/dist/effect-Logger.cjs.dev.js +314 -0
  546. package/Logger/dist/effect-Logger.cjs.js +7 -0
  547. package/Logger/dist/effect-Logger.cjs.mjs +29 -0
  548. package/Logger/dist/effect-Logger.cjs.prod.js +314 -0
  549. package/Logger/dist/effect-Logger.esm.js +193 -0
  550. package/Logger/package.json +4 -0
  551. package/Match/dist/effect-Match.cjs.d.mts +2 -0
  552. package/Match/dist/effect-Match.cjs.d.mts.map +1 -0
  553. package/Match/dist/effect-Match.cjs.d.ts +2 -0
  554. package/Match/dist/effect-Match.cjs.d.ts.map +1 -0
  555. package/Match/dist/effect-Match.cjs.dev.js +619 -0
  556. package/Match/dist/effect-Match.cjs.js +7 -0
  557. package/Match/dist/effect-Match.cjs.mjs +39 -0
  558. package/Match/dist/effect-Match.cjs.prod.js +619 -0
  559. package/Match/dist/effect-Match.esm.js +258 -0
  560. package/Match/package.json +4 -0
  561. package/Metric/dist/effect-Metric.cjs.d.mts +2 -0
  562. package/Metric/dist/effect-Metric.cjs.d.mts.map +1 -0
  563. package/Metric/dist/effect-Metric.cjs.d.ts +2 -0
  564. package/Metric/dist/effect-Metric.cjs.d.ts.map +1 -0
  565. package/Metric/dist/effect-Metric.cjs.dev.js +592 -0
  566. package/Metric/dist/effect-Metric.cjs.js +7 -0
  567. package/Metric/dist/effect-Metric.cjs.mjs +46 -0
  568. package/Metric/dist/effect-Metric.cjs.prod.js +592 -0
  569. package/Metric/dist/effect-Metric.esm.js +477 -0
  570. package/Metric/package.json +4 -0
  571. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.d.mts +2 -0
  572. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.d.mts.map +1 -0
  573. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.d.ts +2 -0
  574. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.d.ts.map +1 -0
  575. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.dev.js +79 -0
  576. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.js +7 -0
  577. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.mjs +7 -0
  578. package/MetricBoundaries/dist/effect-MetricBoundaries.cjs.prod.js +79 -0
  579. package/MetricBoundaries/dist/effect-MetricBoundaries.esm.js +52 -0
  580. package/MetricBoundaries/package.json +4 -0
  581. package/MetricHook/dist/effect-MetricHook.cjs.d.mts +2 -0
  582. package/MetricHook/dist/effect-MetricHook.cjs.d.mts.map +1 -0
  583. package/MetricHook/dist/effect-MetricHook.cjs.d.ts +2 -0
  584. package/MetricHook/dist/effect-MetricHook.cjs.d.ts.map +1 -0
  585. package/MetricHook/dist/effect-MetricHook.cjs.dev.js +104 -0
  586. package/MetricHook/dist/effect-MetricHook.cjs.js +7 -0
  587. package/MetricHook/dist/effect-MetricHook.cjs.mjs +10 -0
  588. package/MetricHook/dist/effect-MetricHook.cjs.prod.js +104 -0
  589. package/MetricHook/dist/effect-MetricHook.esm.js +68 -0
  590. package/MetricHook/package.json +4 -0
  591. package/MetricKey/dist/effect-MetricKey.cjs.d.mts +2 -0
  592. package/MetricKey/dist/effect-MetricKey.cjs.d.mts.map +1 -0
  593. package/MetricKey/dist/effect-MetricKey.cjs.d.ts +2 -0
  594. package/MetricKey/dist/effect-MetricKey.cjs.d.ts.map +1 -0
  595. package/MetricKey/dist/effect-MetricKey.cjs.dev.js +137 -0
  596. package/MetricKey/dist/effect-MetricKey.cjs.js +7 -0
  597. package/MetricKey/dist/effect-MetricKey.cjs.mjs +12 -0
  598. package/MetricKey/dist/effect-MetricKey.cjs.prod.js +137 -0
  599. package/MetricKey/dist/effect-MetricKey.esm.js +104 -0
  600. package/MetricKey/package.json +4 -0
  601. package/MetricKeyType/dist/effect-MetricKeyType.cjs.d.mts +2 -0
  602. package/MetricKeyType/dist/effect-MetricKeyType.cjs.d.mts.map +1 -0
  603. package/MetricKeyType/dist/effect-MetricKeyType.cjs.d.ts +2 -0
  604. package/MetricKeyType/dist/effect-MetricKeyType.cjs.d.ts.map +1 -0
  605. package/MetricKeyType/dist/effect-MetricKeyType.cjs.dev.js +182 -0
  606. package/MetricKeyType/dist/effect-MetricKeyType.cjs.js +7 -0
  607. package/MetricKeyType/dist/effect-MetricKeyType.cjs.mjs +19 -0
  608. package/MetricKeyType/dist/effect-MetricKeyType.cjs.prod.js +182 -0
  609. package/MetricKeyType/dist/effect-MetricKeyType.esm.js +147 -0
  610. package/MetricKeyType/package.json +4 -0
  611. package/MetricLabel/dist/effect-MetricLabel.cjs.d.mts +2 -0
  612. package/MetricLabel/dist/effect-MetricLabel.cjs.d.mts.map +1 -0
  613. package/MetricLabel/dist/effect-MetricLabel.cjs.d.ts +2 -0
  614. package/MetricLabel/dist/effect-MetricLabel.cjs.d.ts.map +1 -0
  615. package/MetricLabel/dist/effect-MetricLabel.cjs.dev.js +54 -0
  616. package/MetricLabel/dist/effect-MetricLabel.cjs.js +7 -0
  617. package/MetricLabel/dist/effect-MetricLabel.cjs.mjs +5 -0
  618. package/MetricLabel/dist/effect-MetricLabel.cjs.prod.js +54 -0
  619. package/MetricLabel/dist/effect-MetricLabel.esm.js +41 -0
  620. package/MetricLabel/package.json +4 -0
  621. package/MetricPair/dist/effect-MetricPair.cjs.d.mts +2 -0
  622. package/MetricPair/dist/effect-MetricPair.cjs.d.mts.map +1 -0
  623. package/MetricPair/dist/effect-MetricPair.cjs.d.ts +2 -0
  624. package/MetricPair/dist/effect-MetricPair.cjs.d.ts.map +1 -0
  625. package/MetricPair/dist/effect-MetricPair.cjs.dev.js +45 -0
  626. package/MetricPair/dist/effect-MetricPair.cjs.js +7 -0
  627. package/MetricPair/dist/effect-MetricPair.cjs.mjs +5 -0
  628. package/MetricPair/dist/effect-MetricPair.cjs.prod.js +45 -0
  629. package/MetricPair/dist/effect-MetricPair.esm.js +38 -0
  630. package/MetricPair/package.json +4 -0
  631. package/MetricPolling/dist/effect-MetricPolling.cjs.d.mts +2 -0
  632. package/MetricPolling/dist/effect-MetricPolling.cjs.d.mts.map +1 -0
  633. package/MetricPolling/dist/effect-MetricPolling.cjs.d.ts +2 -0
  634. package/MetricPolling/dist/effect-MetricPolling.cjs.d.ts.map +1 -0
  635. package/MetricPolling/dist/effect-MetricPolling.cjs.dev.js +236 -0
  636. package/MetricPolling/dist/effect-MetricPolling.cjs.js +7 -0
  637. package/MetricPolling/dist/effect-MetricPolling.cjs.mjs +10 -0
  638. package/MetricPolling/dist/effect-MetricPolling.cjs.prod.js +236 -0
  639. package/MetricPolling/dist/effect-MetricPolling.esm.js +84 -0
  640. package/MetricPolling/package.json +4 -0
  641. package/MetricRegistry/dist/effect-MetricRegistry.cjs.d.mts +2 -0
  642. package/MetricRegistry/dist/effect-MetricRegistry.cjs.d.mts.map +1 -0
  643. package/MetricRegistry/dist/effect-MetricRegistry.cjs.d.ts +2 -0
  644. package/MetricRegistry/dist/effect-MetricRegistry.cjs.d.ts.map +1 -0
  645. package/MetricRegistry/dist/effect-MetricRegistry.cjs.dev.js +64 -0
  646. package/MetricRegistry/dist/effect-MetricRegistry.cjs.js +7 -0
  647. package/MetricRegistry/dist/effect-MetricRegistry.cjs.mjs +4 -0
  648. package/MetricRegistry/dist/effect-MetricRegistry.cjs.prod.js +64 -0
  649. package/MetricRegistry/dist/effect-MetricRegistry.esm.js +28 -0
  650. package/MetricRegistry/package.json +4 -0
  651. package/MetricState/dist/effect-MetricState.cjs.d.mts +2 -0
  652. package/MetricState/dist/effect-MetricState.cjs.d.mts.map +1 -0
  653. package/MetricState/dist/effect-MetricState.cjs.d.ts +2 -0
  654. package/MetricState/dist/effect-MetricState.cjs.d.ts.map +1 -0
  655. package/MetricState/dist/effect-MetricState.cjs.dev.js +178 -0
  656. package/MetricState/dist/effect-MetricState.cjs.js +7 -0
  657. package/MetricState/dist/effect-MetricState.cjs.mjs +19 -0
  658. package/MetricState/dist/effect-MetricState.cjs.prod.js +178 -0
  659. package/MetricState/dist/effect-MetricState.esm.js +151 -0
  660. package/MetricState/package.json +4 -0
  661. package/MutableHashMap/dist/effect-MutableHashMap.cjs.d.mts +2 -0
  662. package/MutableHashMap/dist/effect-MutableHashMap.cjs.d.mts.map +1 -0
  663. package/MutableHashMap/dist/effect-MutableHashMap.cjs.d.ts +2 -0
  664. package/MutableHashMap/dist/effect-MutableHashMap.cjs.d.ts.map +1 -0
  665. package/MutableHashMap/dist/effect-MutableHashMap.cjs.dev.js +153 -0
  666. package/MutableHashMap/dist/effect-MutableHashMap.cjs.js +7 -0
  667. package/MutableHashMap/dist/effect-MutableHashMap.cjs.mjs +12 -0
  668. package/MutableHashMap/dist/effect-MutableHashMap.cjs.prod.js +153 -0
  669. package/MutableHashMap/dist/effect-MutableHashMap.esm.js +128 -0
  670. package/MutableHashMap/package.json +4 -0
  671. package/MutableHashSet/dist/effect-MutableHashSet.cjs.d.mts +2 -0
  672. package/MutableHashSet/dist/effect-MutableHashSet.cjs.d.mts.map +1 -0
  673. package/MutableHashSet/dist/effect-MutableHashSet.cjs.d.ts +2 -0
  674. package/MutableHashSet/dist/effect-MutableHashSet.cjs.d.ts.map +1 -0
  675. package/MutableHashSet/dist/effect-MutableHashSet.cjs.dev.js +115 -0
  676. package/MutableHashSet/dist/effect-MutableHashSet.cjs.js +7 -0
  677. package/MutableHashSet/dist/effect-MutableHashSet.cjs.mjs +9 -0
  678. package/MutableHashSet/dist/effect-MutableHashSet.cjs.prod.js +115 -0
  679. package/MutableHashSet/dist/effect-MutableHashSet.esm.js +90 -0
  680. package/MutableHashSet/package.json +4 -0
  681. package/MutableList/dist/effect-MutableList.cjs.d.mts +2 -0
  682. package/MutableList/dist/effect-MutableList.cjs.d.mts.map +1 -0
  683. package/MutableList/dist/effect-MutableList.cjs.d.ts +2 -0
  684. package/MutableList/dist/effect-MutableList.cjs.d.ts.map +1 -0
  685. package/MutableList/dist/effect-MutableList.cjs.dev.js +280 -0
  686. package/MutableList/dist/effect-MutableList.cjs.js +7 -0
  687. package/MutableList/dist/effect-MutableList.cjs.mjs +15 -0
  688. package/MutableList/dist/effect-MutableList.cjs.prod.js +280 -0
  689. package/MutableList/dist/effect-MutableList.esm.js +264 -0
  690. package/MutableList/package.json +4 -0
  691. package/MutableQueue/dist/effect-MutableQueue.cjs.d.mts +2 -0
  692. package/MutableQueue/dist/effect-MutableQueue.cjs.d.mts.map +1 -0
  693. package/MutableQueue/dist/effect-MutableQueue.cjs.d.ts +2 -0
  694. package/MutableQueue/dist/effect-MutableQueue.cjs.d.ts.map +1 -0
  695. package/MutableQueue/dist/effect-MutableQueue.cjs.dev.js +216 -0
  696. package/MutableQueue/dist/effect-MutableQueue.cjs.js +7 -0
  697. package/MutableQueue/dist/effect-MutableQueue.cjs.mjs +13 -0
  698. package/MutableQueue/dist/effect-MutableQueue.cjs.prod.js +216 -0
  699. package/MutableQueue/dist/effect-MutableQueue.esm.js +187 -0
  700. package/MutableQueue/package.json +4 -0
  701. package/MutableRef/dist/effect-MutableRef.cjs.d.mts +2 -0
  702. package/MutableRef/dist/effect-MutableRef.cjs.d.mts.map +1 -0
  703. package/MutableRef/dist/effect-MutableRef.cjs.d.ts +2 -0
  704. package/MutableRef/dist/effect-MutableRef.cjs.d.ts.map +1 -0
  705. package/MutableRef/dist/effect-MutableRef.cjs.dev.js +179 -0
  706. package/MutableRef/dist/effect-MutableRef.cjs.js +7 -0
  707. package/MutableRef/dist/effect-MutableRef.cjs.mjs +18 -0
  708. package/MutableRef/dist/effect-MutableRef.cjs.prod.js +179 -0
  709. package/MutableRef/dist/effect-MutableRef.esm.js +156 -0
  710. package/MutableRef/package.json +4 -0
  711. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.d.mts +2 -0
  712. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.d.mts.map +1 -0
  713. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.d.ts +2 -0
  714. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.d.ts.map +1 -0
  715. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.dev.js +32 -0
  716. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.js +7 -0
  717. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.mjs +3 -0
  718. package/NonEmptyIterable/dist/effect-NonEmptyIterable.cjs.prod.js +32 -0
  719. package/NonEmptyIterable/dist/effect-NonEmptyIterable.esm.js +28 -0
  720. package/NonEmptyIterable/package.json +4 -0
  721. package/Number/dist/effect-Number.cjs.d.mts +2 -0
  722. package/Number/dist/effect-Number.cjs.d.mts.map +1 -0
  723. package/Number/dist/effect-Number.cjs.d.ts +2 -0
  724. package/Number/dist/effect-Number.cjs.d.ts.map +1 -0
  725. package/Number/dist/effect-Number.cjs.dev.js +422 -0
  726. package/Number/dist/effect-Number.cjs.js +7 -0
  727. package/Number/dist/effect-Number.cjs.mjs +24 -0
  728. package/Number/dist/effect-Number.cjs.prod.js +422 -0
  729. package/Number/dist/effect-Number.esm.js +390 -0
  730. package/Number/package.json +4 -0
  731. package/Option/dist/effect-Option.cjs.d.mts +2 -0
  732. package/Option/dist/effect-Option.cjs.d.mts.map +1 -0
  733. package/Option/dist/effect-Option.cjs.d.ts +2 -0
  734. package/Option/dist/effect-Option.cjs.d.ts.map +1 -0
  735. package/Option/dist/effect-Option.cjs.dev.js +1054 -0
  736. package/Option/dist/effect-Option.cjs.js +7 -0
  737. package/Option/dist/effect-Option.cjs.mjs +57 -0
  738. package/Option/dist/effect-Option.cjs.prod.js +1054 -0
  739. package/Option/dist/effect-Option.esm.js +990 -0
  740. package/Option/package.json +4 -0
  741. package/Order/dist/effect-Order.cjs.d.mts +2 -0
  742. package/Order/dist/effect-Order.cjs.d.mts.map +1 -0
  743. package/Order/dist/effect-Order.cjs.d.ts +2 -0
  744. package/Order/dist/effect-Order.cjs.d.ts.map +1 -0
  745. package/Order/dist/effect-Order.cjs.dev.js +292 -0
  746. package/Order/dist/effect-Order.cjs.js +7 -0
  747. package/Order/dist/effect-Order.cjs.mjs +28 -0
  748. package/Order/dist/effect-Order.cjs.prod.js +292 -0
  749. package/Order/dist/effect-Order.esm.js +263 -0
  750. package/Order/package.json +4 -0
  751. package/Ordering/dist/effect-Ordering.cjs.d.mts +2 -0
  752. package/Ordering/dist/effect-Ordering.cjs.d.mts.map +1 -0
  753. package/Ordering/dist/effect-Ordering.cjs.d.ts +2 -0
  754. package/Ordering/dist/effect-Ordering.cjs.d.ts.map +1 -0
  755. package/Ordering/dist/effect-Ordering.cjs.dev.js +96 -0
  756. package/Ordering/dist/effect-Ordering.cjs.js +7 -0
  757. package/Ordering/dist/effect-Ordering.cjs.mjs +7 -0
  758. package/Ordering/dist/effect-Ordering.cjs.prod.js +96 -0
  759. package/Ordering/dist/effect-Ordering.esm.js +88 -0
  760. package/Ordering/package.json +4 -0
  761. package/Pipeable/dist/effect-Pipeable.cjs.d.mts +2 -0
  762. package/Pipeable/dist/effect-Pipeable.cjs.d.mts.map +1 -0
  763. package/Pipeable/dist/effect-Pipeable.cjs.d.ts +2 -0
  764. package/Pipeable/dist/effect-Pipeable.cjs.d.ts.map +1 -0
  765. package/Pipeable/dist/effect-Pipeable.cjs.dev.js +48 -0
  766. package/Pipeable/dist/effect-Pipeable.cjs.js +7 -0
  767. package/Pipeable/dist/effect-Pipeable.cjs.mjs +3 -0
  768. package/Pipeable/dist/effect-Pipeable.cjs.prod.js +48 -0
  769. package/Pipeable/dist/effect-Pipeable.esm.js +44 -0
  770. package/Pipeable/package.json +4 -0
  771. package/Pool/dist/effect-Pool.cjs.d.mts +2 -0
  772. package/Pool/dist/effect-Pool.cjs.d.mts.map +1 -0
  773. package/Pool/dist/effect-Pool.cjs.d.ts +2 -0
  774. package/Pool/dist/effect-Pool.cjs.d.ts.map +1 -0
  775. package/Pool/dist/effect-Pool.cjs.dev.js +186 -0
  776. package/Pool/dist/effect-Pool.cjs.js +7 -0
  777. package/Pool/dist/effect-Pool.cjs.mjs +8 -0
  778. package/Pool/dist/effect-Pool.cjs.prod.js +186 -0
  779. package/Pool/dist/effect-Pool.esm.js +104 -0
  780. package/Pool/package.json +4 -0
  781. package/Predicate/dist/effect-Predicate.cjs.d.mts +2 -0
  782. package/Predicate/dist/effect-Predicate.cjs.d.mts.map +1 -0
  783. package/Predicate/dist/effect-Predicate.cjs.d.ts +2 -0
  784. package/Predicate/dist/effect-Predicate.cjs.d.ts.map +1 -0
  785. package/Predicate/dist/effect-Predicate.cjs.dev.js +676 -0
  786. package/Predicate/dist/effect-Predicate.cjs.js +7 -0
  787. package/Predicate/dist/effect-Predicate.cjs.mjs +41 -0
  788. package/Predicate/dist/effect-Predicate.cjs.prod.js +676 -0
  789. package/Predicate/dist/effect-Predicate.esm.js +634 -0
  790. package/Predicate/package.json +4 -0
  791. package/PubSub/dist/effect-PubSub.cjs.d.mts +2 -0
  792. package/PubSub/dist/effect-PubSub.cjs.d.mts.map +1 -0
  793. package/PubSub/dist/effect-PubSub.cjs.d.ts +2 -0
  794. package/PubSub/dist/effect-PubSub.cjs.d.ts.map +1 -0
  795. package/PubSub/dist/effect-PubSub.cjs.dev.js +1326 -0
  796. package/PubSub/dist/effect-PubSub.cjs.js +7 -0
  797. package/PubSub/dist/effect-PubSub.cjs.mjs +16 -0
  798. package/PubSub/dist/effect-PubSub.cjs.prod.js +1326 -0
  799. package/PubSub/dist/effect-PubSub.esm.js +148 -0
  800. package/PubSub/package.json +4 -0
  801. package/Queue/dist/effect-Queue.cjs.d.mts +2 -0
  802. package/Queue/dist/effect-Queue.cjs.d.mts.map +1 -0
  803. package/Queue/dist/effect-Queue.cjs.d.ts +2 -0
  804. package/Queue/dist/effect-Queue.cjs.d.ts.map +1 -0
  805. package/Queue/dist/effect-Queue.cjs.dev.js +433 -0
  806. package/Queue/dist/effect-Queue.cjs.js +7 -0
  807. package/Queue/dist/effect-Queue.cjs.mjs +32 -0
  808. package/Queue/dist/effect-Queue.cjs.prod.js +433 -0
  809. package/Queue/dist/effect-Queue.esm.js +328 -0
  810. package/Queue/package.json +4 -0
  811. package/README.md +48 -14
  812. package/Random/dist/effect-Random.cjs.d.mts +2 -0
  813. package/Random/dist/effect-Random.cjs.d.mts.map +1 -0
  814. package/Random/dist/effect-Random.cjs.d.ts +2 -0
  815. package/Random/dist/effect-Random.cjs.d.ts.map +1 -0
  816. package/Random/dist/effect-Random.cjs.dev.js +133 -0
  817. package/Random/dist/effect-Random.cjs.js +7 -0
  818. package/Random/dist/effect-Random.cjs.mjs +10 -0
  819. package/Random/dist/effect-Random.cjs.prod.js +133 -0
  820. package/Random/dist/effect-Random.esm.js +83 -0
  821. package/Random/package.json +4 -0
  822. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.d.mts +2 -0
  823. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.d.mts.map +1 -0
  824. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.d.ts +2 -0
  825. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.d.ts.map +1 -0
  826. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.dev.js +1592 -0
  827. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.js +7 -0
  828. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.mjs +137 -0
  829. package/ReadonlyArray/dist/effect-ReadonlyArray.cjs.prod.js +1592 -0
  830. package/ReadonlyArray/dist/effect-ReadonlyArray.esm.js +1445 -0
  831. package/ReadonlyArray/package.json +4 -0
  832. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.d.mts +2 -0
  833. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.d.mts.map +1 -0
  834. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.d.ts +2 -0
  835. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.d.ts.map +1 -0
  836. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.dev.js +798 -0
  837. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.js +7 -0
  838. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.mjs +37 -0
  839. package/ReadonlyRecord/dist/effect-ReadonlyRecord.cjs.prod.js +798 -0
  840. package/ReadonlyRecord/dist/effect-ReadonlyRecord.esm.js +749 -0
  841. package/ReadonlyRecord/package.json +4 -0
  842. package/RedBlackTree/dist/effect-RedBlackTree.cjs.d.mts +2 -0
  843. package/RedBlackTree/dist/effect-RedBlackTree.cjs.d.mts.map +1 -0
  844. package/RedBlackTree/dist/effect-RedBlackTree.cjs.d.ts +2 -0
  845. package/RedBlackTree/dist/effect-RedBlackTree.cjs.d.ts.map +1 -0
  846. package/RedBlackTree/dist/effect-RedBlackTree.cjs.dev.js +1642 -0
  847. package/RedBlackTree/dist/effect-RedBlackTree.cjs.js +7 -0
  848. package/RedBlackTree/dist/effect-RedBlackTree.cjs.mjs +37 -0
  849. package/RedBlackTree/dist/effect-RedBlackTree.cjs.prod.js +1642 -0
  850. package/RedBlackTree/dist/effect-RedBlackTree.esm.js +314 -0
  851. package/RedBlackTree/package.json +4 -0
  852. package/Ref/dist/effect-Ref.cjs.d.mts +2 -0
  853. package/Ref/dist/effect-Ref.cjs.d.mts.map +1 -0
  854. package/Ref/dist/effect-Ref.cjs.d.ts +2 -0
  855. package/Ref/dist/effect-Ref.cjs.d.ts.map +1 -0
  856. package/Ref/dist/effect-Ref.cjs.dev.js +54 -0
  857. package/Ref/dist/effect-Ref.cjs.js +7 -0
  858. package/Ref/dist/effect-Ref.cjs.mjs +17 -0
  859. package/Ref/dist/effect-Ref.cjs.prod.js +54 -0
  860. package/Ref/dist/effect-Ref.esm.js +111 -0
  861. package/Ref/package.json +4 -0
  862. package/Reloadable/dist/effect-Reloadable.cjs.d.mts +2 -0
  863. package/Reloadable/dist/effect-Reloadable.cjs.d.mts.map +1 -0
  864. package/Reloadable/dist/effect-Reloadable.cjs.d.ts +2 -0
  865. package/Reloadable/dist/effect-Reloadable.cjs.d.ts.map +1 -0
  866. package/Reloadable/dist/effect-Reloadable.cjs.dev.js +232 -0
  867. package/Reloadable/dist/effect-Reloadable.cjs.js +7 -0
  868. package/Reloadable/dist/effect-Reloadable.cjs.mjs +10 -0
  869. package/Reloadable/dist/effect-Reloadable.cjs.prod.js +232 -0
  870. package/Reloadable/dist/effect-Reloadable.esm.js +88 -0
  871. package/Reloadable/package.json +4 -0
  872. package/Request/dist/effect-Request.cjs.d.mts +2 -0
  873. package/Request/dist/effect-Request.cjs.d.mts.map +1 -0
  874. package/Request/dist/effect-Request.cjs.d.ts +2 -0
  875. package/Request/dist/effect-Request.cjs.d.ts.map +1 -0
  876. package/Request/dist/effect-Request.cjs.dev.js +244 -0
  877. package/Request/dist/effect-Request.cjs.js +7 -0
  878. package/Request/dist/effect-Request.cjs.mjs +15 -0
  879. package/Request/dist/effect-Request.cjs.prod.js +244 -0
  880. package/Request/dist/effect-Request.esm.js +160 -0
  881. package/Request/package.json +4 -0
  882. package/RequestBlock/dist/effect-RequestBlock.cjs.d.mts +2 -0
  883. package/RequestBlock/dist/effect-RequestBlock.cjs.d.mts.map +1 -0
  884. package/RequestBlock/dist/effect-RequestBlock.cjs.d.ts +2 -0
  885. package/RequestBlock/dist/effect-RequestBlock.cjs.d.ts.map +1 -0
  886. package/RequestBlock/dist/effect-RequestBlock.cjs.dev.js +199 -0
  887. package/RequestBlock/dist/effect-RequestBlock.cjs.js +7 -0
  888. package/RequestBlock/dist/effect-RequestBlock.cjs.mjs +10 -0
  889. package/RequestBlock/dist/effect-RequestBlock.cjs.prod.js +199 -0
  890. package/RequestBlock/dist/effect-RequestBlock.esm.js +103 -0
  891. package/RequestBlock/package.json +4 -0
  892. package/RequestResolver/dist/effect-RequestResolver.cjs.d.mts +2 -0
  893. package/RequestResolver/dist/effect-RequestResolver.cjs.d.mts.map +1 -0
  894. package/RequestResolver/dist/effect-RequestResolver.cjs.d.ts +2 -0
  895. package/RequestResolver/dist/effect-RequestResolver.cjs.d.ts.map +1 -0
  896. package/RequestResolver/dist/effect-RequestResolver.cjs.dev.js +296 -0
  897. package/RequestResolver/dist/effect-RequestResolver.cjs.js +7 -0
  898. package/RequestResolver/dist/effect-RequestResolver.cjs.mjs +20 -0
  899. package/RequestResolver/dist/effect-RequestResolver.cjs.prod.js +296 -0
  900. package/RequestResolver/dist/effect-RequestResolver.esm.js +191 -0
  901. package/RequestResolver/package.json +4 -0
  902. package/Resource/dist/effect-Resource.cjs.d.mts +2 -0
  903. package/Resource/dist/effect-Resource.cjs.d.mts.map +1 -0
  904. package/Resource/dist/effect-Resource.cjs.d.ts +2 -0
  905. package/Resource/dist/effect-Resource.cjs.d.ts.map +1 -0
  906. package/Resource/dist/effect-Resource.cjs.dev.js +183 -0
  907. package/Resource/dist/effect-Resource.cjs.js +7 -0
  908. package/Resource/dist/effect-Resource.cjs.mjs +7 -0
  909. package/Resource/dist/effect-Resource.cjs.prod.js +183 -0
  910. package/Resource/dist/effect-Resource.esm.js +70 -0
  911. package/Resource/package.json +4 -0
  912. package/Runtime/dist/effect-Runtime.cjs.d.mts +2 -0
  913. package/Runtime/dist/effect-Runtime.cjs.d.mts.map +1 -0
  914. package/Runtime/dist/effect-Runtime.cjs.d.ts +2 -0
  915. package/Runtime/dist/effect-Runtime.cjs.d.ts.map +1 -0
  916. package/Runtime/dist/effect-Runtime.cjs.dev.js +251 -0
  917. package/Runtime/dist/effect-Runtime.cjs.js +7 -0
  918. package/Runtime/dist/effect-Runtime.cjs.mjs +16 -0
  919. package/Runtime/dist/effect-Runtime.cjs.prod.js +251 -0
  920. package/Runtime/dist/effect-Runtime.esm.js +157 -0
  921. package/Runtime/package.json +4 -0
  922. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.d.mts +2 -0
  923. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.d.mts.map +1 -0
  924. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.d.ts +2 -0
  925. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.d.ts.map +1 -0
  926. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.dev.js +424 -0
  927. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.js +7 -0
  928. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.mjs +37 -0
  929. package/RuntimeFlags/dist/effect-RuntimeFlags.cjs.prod.js +424 -0
  930. package/RuntimeFlags/dist/effect-RuntimeFlags.esm.js +305 -0
  931. package/RuntimeFlags/package.json +4 -0
  932. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.d.mts +2 -0
  933. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.d.mts.map +1 -0
  934. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.d.ts +2 -0
  935. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.d.ts.map +1 -0
  936. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.dev.js +50 -0
  937. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.js +7 -0
  938. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.mjs +19 -0
  939. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.cjs.prod.js +50 -0
  940. package/RuntimeFlagsPatch/dist/effect-RuntimeFlagsPatch.esm.js +158 -0
  941. package/RuntimeFlagsPatch/package.json +4 -0
  942. package/STM/dist/effect-STM.cjs.d.mts +2 -0
  943. package/STM/dist/effect-STM.cjs.d.mts.map +1 -0
  944. package/STM/dist/effect-STM.cjs.d.ts +2 -0
  945. package/STM/dist/effect-STM.cjs.d.ts.map +1 -0
  946. package/STM/dist/effect-STM.cjs.dev.js +1427 -0
  947. package/STM/dist/effect-STM.cjs.js +7 -0
  948. package/STM/dist/effect-STM.cjs.mjs +126 -0
  949. package/STM/dist/effect-STM.cjs.prod.js +1427 -0
  950. package/STM/dist/effect-STM.esm.js +1193 -0
  951. package/STM/package.json +4 -0
  952. package/Schedule/dist/effect-Schedule.cjs.d.mts +2 -0
  953. package/Schedule/dist/effect-Schedule.cjs.d.mts.map +1 -0
  954. package/Schedule/dist/effect-Schedule.cjs.d.ts +2 -0
  955. package/Schedule/dist/effect-Schedule.cjs.d.ts.map +1 -0
  956. package/Schedule/dist/effect-Schedule.cjs.dev.js +1113 -0
  957. package/Schedule/dist/effect-Schedule.cjs.js +7 -0
  958. package/Schedule/dist/effect-Schedule.cjs.mjs +100 -0
  959. package/Schedule/dist/effect-Schedule.cjs.prod.js +1113 -0
  960. package/Schedule/dist/effect-Schedule.esm.js +957 -0
  961. package/Schedule/package.json +4 -0
  962. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.d.mts +2 -0
  963. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.d.mts.map +1 -0
  964. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.d.ts +2 -0
  965. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.d.ts.map +1 -0
  966. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.dev.js +118 -0
  967. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.js +7 -0
  968. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.mjs +7 -0
  969. package/ScheduleDecision/dist/effect-ScheduleDecision.cjs.prod.js +118 -0
  970. package/ScheduleDecision/dist/effect-ScheduleDecision.esm.js +48 -0
  971. package/ScheduleDecision/package.json +4 -0
  972. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.d.mts +2 -0
  973. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.d.mts.map +1 -0
  974. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.d.ts +2 -0
  975. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.d.ts.map +1 -0
  976. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.dev.js +240 -0
  977. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.js +7 -0
  978. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.mjs +15 -0
  979. package/ScheduleInterval/dist/effect-ScheduleInterval.cjs.prod.js +240 -0
  980. package/ScheduleInterval/dist/effect-ScheduleInterval.esm.js +130 -0
  981. package/ScheduleInterval/package.json +4 -0
  982. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.d.mts +2 -0
  983. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.d.mts.map +1 -0
  984. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.d.ts +2 -0
  985. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.d.ts.map +1 -0
  986. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.dev.js +268 -0
  987. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.js +7 -0
  988. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.mjs +13 -0
  989. package/ScheduleIntervals/dist/effect-ScheduleIntervals.cjs.prod.js +268 -0
  990. package/ScheduleIntervals/dist/effect-ScheduleIntervals.esm.js +105 -0
  991. package/ScheduleIntervals/package.json +4 -0
  992. package/Scheduler/dist/effect-Scheduler.cjs.d.mts +2 -0
  993. package/Scheduler/dist/effect-Scheduler.cjs.d.mts.map +1 -0
  994. package/Scheduler/dist/effect-Scheduler.cjs.d.ts +2 -0
  995. package/Scheduler/dist/effect-Scheduler.cjs.d.ts.map +1 -0
  996. package/Scheduler/dist/effect-Scheduler.cjs.dev.js +370 -0
  997. package/Scheduler/dist/effect-Scheduler.cjs.js +7 -0
  998. package/Scheduler/dist/effect-Scheduler.cjs.mjs +15 -0
  999. package/Scheduler/dist/effect-Scheduler.cjs.prod.js +370 -0
  1000. package/Scheduler/dist/effect-Scheduler.esm.js +326 -0
  1001. package/Scheduler/package.json +4 -0
  1002. package/Scope/dist/effect-Scope.cjs.d.mts +2 -0
  1003. package/Scope/dist/effect-Scope.cjs.d.mts.map +1 -0
  1004. package/Scope/dist/effect-Scope.cjs.d.ts +2 -0
  1005. package/Scope/dist/effect-Scope.cjs.d.ts.map +1 -0
  1006. package/Scope/dist/effect-Scope.cjs.dev.js +198 -0
  1007. package/Scope/dist/effect-Scope.cjs.js +7 -0
  1008. package/Scope/dist/effect-Scope.cjs.mjs +12 -0
  1009. package/Scope/dist/effect-Scope.cjs.prod.js +198 -0
  1010. package/Scope/dist/effect-Scope.esm.js +117 -0
  1011. package/Scope/package.json +4 -0
  1012. package/ScopedCache/dist/effect-ScopedCache.cjs.d.mts +2 -0
  1013. package/ScopedCache/dist/effect-ScopedCache.cjs.d.mts.map +1 -0
  1014. package/ScopedCache/dist/effect-ScopedCache.cjs.d.ts +2 -0
  1015. package/ScopedCache/dist/effect-ScopedCache.cjs.d.ts.map +1 -0
  1016. package/ScopedCache/dist/effect-ScopedCache.cjs.dev.js +533 -0
  1017. package/ScopedCache/dist/effect-ScopedCache.cjs.js +7 -0
  1018. package/ScopedCache/dist/effect-ScopedCache.cjs.mjs +5 -0
  1019. package/ScopedCache/dist/effect-ScopedCache.cjs.prod.js +533 -0
  1020. package/ScopedCache/dist/effect-ScopedCache.esm.js +52 -0
  1021. package/ScopedCache/package.json +4 -0
  1022. package/ScopedRef/dist/effect-ScopedRef.cjs.d.mts +2 -0
  1023. package/ScopedRef/dist/effect-ScopedRef.cjs.d.mts.map +1 -0
  1024. package/ScopedRef/dist/effect-ScopedRef.cjs.d.ts +2 -0
  1025. package/ScopedRef/dist/effect-ScopedRef.cjs.d.ts.map +1 -0
  1026. package/ScopedRef/dist/effect-ScopedRef.cjs.dev.js +156 -0
  1027. package/ScopedRef/dist/effect-ScopedRef.cjs.js +7 -0
  1028. package/ScopedRef/dist/effect-ScopedRef.cjs.mjs +7 -0
  1029. package/ScopedRef/dist/effect-ScopedRef.cjs.prod.js +156 -0
  1030. package/ScopedRef/dist/effect-ScopedRef.esm.js +71 -0
  1031. package/ScopedRef/package.json +4 -0
  1032. package/Sink/dist/effect-Sink.cjs.d.mts +2 -0
  1033. package/Sink/dist/effect-Sink.cjs.d.mts.map +1 -0
  1034. package/Sink/dist/effect-Sink.cjs.d.ts +2 -0
  1035. package/Sink/dist/effect-Sink.cjs.d.ts.map +1 -0
  1036. package/Sink/dist/effect-Sink.cjs.dev.js +1205 -0
  1037. package/Sink/dist/effect-Sink.cjs.js +7 -0
  1038. package/Sink/dist/effect-Sink.cjs.mjs +108 -0
  1039. package/Sink/dist/effect-Sink.cjs.prod.js +1205 -0
  1040. package/Sink/dist/effect-Sink.esm.js +997 -0
  1041. package/Sink/package.json +4 -0
  1042. package/SortedMap/dist/effect-SortedMap.cjs.d.mts +2 -0
  1043. package/SortedMap/dist/effect-SortedMap.cjs.d.mts.map +1 -0
  1044. package/SortedMap/dist/effect-SortedMap.cjs.d.ts +2 -0
  1045. package/SortedMap/dist/effect-SortedMap.cjs.d.ts.map +1 -0
  1046. package/SortedMap/dist/effect-SortedMap.cjs.dev.js +202 -0
  1047. package/SortedMap/dist/effect-SortedMap.cjs.js +7 -0
  1048. package/SortedMap/dist/effect-SortedMap.cjs.mjs +20 -0
  1049. package/SortedMap/dist/effect-SortedMap.cjs.prod.js +202 -0
  1050. package/SortedMap/dist/effect-SortedMap.esm.js +168 -0
  1051. package/SortedMap/package.json +4 -0
  1052. package/SortedSet/dist/effect-SortedSet.cjs.d.mts +2 -0
  1053. package/SortedSet/dist/effect-SortedSet.cjs.d.mts.map +1 -0
  1054. package/SortedSet/dist/effect-SortedSet.cjs.d.ts +2 -0
  1055. package/SortedSet/dist/effect-SortedSet.cjs.d.ts.map +1 -0
  1056. package/SortedSet/dist/effect-SortedSet.cjs.dev.js +301 -0
  1057. package/SortedSet/dist/effect-SortedSet.cjs.js +7 -0
  1058. package/SortedSet/dist/effect-SortedSet.cjs.mjs +23 -0
  1059. package/SortedSet/dist/effect-SortedSet.cjs.prod.js +301 -0
  1060. package/SortedSet/dist/effect-SortedSet.esm.js +263 -0
  1061. package/SortedSet/package.json +4 -0
  1062. package/Stream/dist/effect-Stream.cjs.d.mts +2 -0
  1063. package/Stream/dist/effect-Stream.cjs.d.mts.map +1 -0
  1064. package/Stream/dist/effect-Stream.cjs.d.ts +2 -0
  1065. package/Stream/dist/effect-Stream.cjs.d.ts.map +1 -0
  1066. package/Stream/dist/effect-Stream.cjs.dev.js +3279 -0
  1067. package/Stream/dist/effect-Stream.cjs.js +7 -0
  1068. package/Stream/dist/effect-Stream.cjs.mjs +294 -0
  1069. package/Stream/dist/effect-Stream.cjs.prod.js +3279 -0
  1070. package/Stream/dist/effect-Stream.esm.js +2879 -0
  1071. package/Stream/package.json +4 -0
  1072. package/StreamEmit/dist/effect-StreamEmit.cjs.d.mts +2 -0
  1073. package/StreamEmit/dist/effect-StreamEmit.cjs.d.mts.map +1 -0
  1074. package/StreamEmit/dist/effect-StreamEmit.cjs.d.ts +2 -0
  1075. package/StreamEmit/dist/effect-StreamEmit.cjs.d.ts.map +1 -0
  1076. package/StreamEmit/dist/effect-StreamEmit.cjs.dev.js +2 -0
  1077. package/StreamEmit/dist/effect-StreamEmit.cjs.js +7 -0
  1078. package/StreamEmit/dist/effect-StreamEmit.cjs.mjs +1 -0
  1079. package/StreamEmit/dist/effect-StreamEmit.cjs.prod.js +2 -0
  1080. package/StreamEmit/dist/effect-StreamEmit.esm.js +1 -0
  1081. package/StreamEmit/package.json +4 -0
  1082. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.d.mts +2 -0
  1083. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.d.mts.map +1 -0
  1084. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.d.ts +2 -0
  1085. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.d.ts.map +1 -0
  1086. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.dev.js +19 -0
  1087. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.js +7 -0
  1088. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.mjs +12 -0
  1089. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.cjs.prod.js +19 -0
  1090. package/StreamHaltStrategy/dist/effect-StreamHaltStrategy.esm.js +97 -0
  1091. package/StreamHaltStrategy/package.json +4 -0
  1092. package/Streamable/dist/effect-Streamable.cjs.d.mts +2 -0
  1093. package/Streamable/dist/effect-Streamable.cjs.d.mts.map +1 -0
  1094. package/Streamable/dist/effect-Streamable.cjs.d.ts +2 -0
  1095. package/Streamable/dist/effect-Streamable.cjs.d.ts.map +1 -0
  1096. package/Streamable/dist/effect-Streamable.cjs.dev.js +152 -0
  1097. package/Streamable/dist/effect-Streamable.cjs.js +7 -0
  1098. package/Streamable/dist/effect-Streamable.cjs.mjs +3 -0
  1099. package/Streamable/dist/effect-Streamable.cjs.prod.js +152 -0
  1100. package/Streamable/dist/effect-Streamable.esm.js +42 -0
  1101. package/Streamable/package.json +4 -0
  1102. package/String/dist/effect-String.cjs.d.mts +2 -0
  1103. package/String/dist/effect-String.cjs.d.mts.map +1 -0
  1104. package/String/dist/effect-String.cjs.d.ts +2 -0
  1105. package/String/dist/effect-String.cjs.d.ts.map +1 -0
  1106. package/String/dist/effect-String.cjs.dev.js +656 -0
  1107. package/String/dist/effect-String.cjs.js +7 -0
  1108. package/String/dist/effect-String.cjs.mjs +46 -0
  1109. package/String/dist/effect-String.cjs.prod.js +656 -0
  1110. package/String/dist/effect-String.esm.js +600 -0
  1111. package/String/package.json +4 -0
  1112. package/Struct/dist/effect-Struct.cjs.d.mts +2 -0
  1113. package/Struct/dist/effect-Struct.cjs.d.mts.map +1 -0
  1114. package/Struct/dist/effect-Struct.cjs.d.ts +2 -0
  1115. package/Struct/dist/effect-Struct.cjs.d.ts.map +1 -0
  1116. package/Struct/dist/effect-Struct.cjs.dev.js +133 -0
  1117. package/Struct/dist/effect-Struct.cjs.js +7 -0
  1118. package/Struct/dist/effect-Struct.cjs.mjs +7 -0
  1119. package/Struct/dist/effect-Struct.cjs.prod.js +133 -0
  1120. package/Struct/dist/effect-Struct.esm.js +125 -0
  1121. package/Struct/package.json +4 -0
  1122. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.d.mts +2 -0
  1123. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.d.mts.map +1 -0
  1124. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.d.ts +2 -0
  1125. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.d.ts.map +1 -0
  1126. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.dev.js +343 -0
  1127. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.js +7 -0
  1128. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.mjs +24 -0
  1129. package/SubscriptionRef/dist/effect-SubscriptionRef.cjs.prod.js +343 -0
  1130. package/SubscriptionRef/dist/effect-SubscriptionRef.esm.js +160 -0
  1131. package/SubscriptionRef/package.json +4 -0
  1132. package/Supervisor/dist/effect-Supervisor.cjs.d.mts +2 -0
  1133. package/Supervisor/dist/effect-Supervisor.cjs.d.mts.map +1 -0
  1134. package/Supervisor/dist/effect-Supervisor.cjs.d.ts +2 -0
  1135. package/Supervisor/dist/effect-Supervisor.cjs.d.ts.map +1 -0
  1136. package/Supervisor/dist/effect-Supervisor.cjs.dev.js +239 -0
  1137. package/Supervisor/dist/effect-Supervisor.cjs.js +7 -0
  1138. package/Supervisor/dist/effect-Supervisor.cjs.mjs +10 -0
  1139. package/Supervisor/dist/effect-Supervisor.cjs.prod.js +239 -0
  1140. package/Supervisor/dist/effect-Supervisor.esm.js +148 -0
  1141. package/Supervisor/package.json +4 -0
  1142. package/Symbol/dist/effect-Symbol.cjs.d.mts +2 -0
  1143. package/Symbol/dist/effect-Symbol.cjs.d.mts.map +1 -0
  1144. package/Symbol/dist/effect-Symbol.cjs.d.ts +2 -0
  1145. package/Symbol/dist/effect-Symbol.cjs.d.ts.map +1 -0
  1146. package/Symbol/dist/effect-Symbol.cjs.dev.js +36 -0
  1147. package/Symbol/dist/effect-Symbol.cjs.js +7 -0
  1148. package/Symbol/dist/effect-Symbol.cjs.mjs +4 -0
  1149. package/Symbol/dist/effect-Symbol.cjs.prod.js +36 -0
  1150. package/Symbol/dist/effect-Symbol.esm.js +30 -0
  1151. package/Symbol/package.json +4 -0
  1152. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.d.mts +2 -0
  1153. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.d.mts.map +1 -0
  1154. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.d.ts +2 -0
  1155. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.d.ts.map +1 -0
  1156. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.dev.js +260 -0
  1157. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.js +7 -0
  1158. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.mjs +25 -0
  1159. package/SynchronizedRef/dist/effect-SynchronizedRef.cjs.prod.js +260 -0
  1160. package/SynchronizedRef/dist/effect-SynchronizedRef.esm.js +160 -0
  1161. package/SynchronizedRef/package.json +4 -0
  1162. package/TArray/dist/effect-TArray.cjs.d.mts +2 -0
  1163. package/TArray/dist/effect-TArray.cjs.d.mts.map +1 -0
  1164. package/TArray/dist/effect-TArray.cjs.d.ts +2 -0
  1165. package/TArray/dist/effect-TArray.cjs.d.ts.map +1 -0
  1166. package/TArray/dist/effect-TArray.cjs.dev.js +523 -0
  1167. package/TArray/dist/effect-TArray.cjs.js +7 -0
  1168. package/TArray/dist/effect-TArray.cjs.mjs +43 -0
  1169. package/TArray/dist/effect-TArray.cjs.prod.js +523 -0
  1170. package/TArray/dist/effect-TArray.esm.js +367 -0
  1171. package/TArray/package.json +4 -0
  1172. package/TDeferred/dist/effect-TDeferred.cjs.d.mts +2 -0
  1173. package/TDeferred/dist/effect-TDeferred.cjs.d.mts.map +1 -0
  1174. package/TDeferred/dist/effect-TDeferred.cjs.d.ts +2 -0
  1175. package/TDeferred/dist/effect-TDeferred.cjs.d.ts.map +1 -0
  1176. package/TDeferred/dist/effect-TDeferred.cjs.dev.js +225 -0
  1177. package/TDeferred/dist/effect-TDeferred.cjs.js +7 -0
  1178. package/TDeferred/dist/effect-TDeferred.cjs.mjs +9 -0
  1179. package/TDeferred/dist/effect-TDeferred.cjs.prod.js +225 -0
  1180. package/TDeferred/dist/effect-TDeferred.esm.js +63 -0
  1181. package/TDeferred/package.json +4 -0
  1182. package/TMap/dist/effect-TMap.cjs.d.mts +2 -0
  1183. package/TMap/dist/effect-TMap.cjs.d.mts.map +1 -0
  1184. package/TMap/dist/effect-TMap.cjs.d.ts +2 -0
  1185. package/TMap/dist/effect-TMap.cjs.d.ts.map +1 -0
  1186. package/TMap/dist/effect-TMap.cjs.dev.js +532 -0
  1187. package/TMap/dist/effect-TMap.cjs.js +7 -0
  1188. package/TMap/dist/effect-TMap.cjs.mjs +44 -0
  1189. package/TMap/dist/effect-TMap.cjs.prod.js +532 -0
  1190. package/TMap/dist/effect-TMap.esm.js +373 -0
  1191. package/TMap/package.json +4 -0
  1192. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.d.mts +2 -0
  1193. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.d.mts.map +1 -0
  1194. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.d.ts +2 -0
  1195. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.d.ts.map +1 -0
  1196. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.dev.js +465 -0
  1197. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.js +7 -0
  1198. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.mjs +21 -0
  1199. package/TPriorityQueue/dist/effect-TPriorityQueue.cjs.prod.js +465 -0
  1200. package/TPriorityQueue/dist/effect-TPriorityQueue.esm.js +184 -0
  1201. package/TPriorityQueue/package.json +4 -0
  1202. package/TPubSub/dist/effect-TPubSub.cjs.d.mts +2 -0
  1203. package/TPubSub/dist/effect-TPubSub.cjs.d.mts.map +1 -0
  1204. package/TPubSub/dist/effect-TPubSub.cjs.d.ts +2 -0
  1205. package/TPubSub/dist/effect-TPubSub.cjs.d.ts.map +1 -0
  1206. package/TPubSub/dist/effect-TPubSub.cjs.dev.js +657 -0
  1207. package/TPubSub/dist/effect-TPubSub.cjs.js +7 -0
  1208. package/TPubSub/dist/effect-TPubSub.cjs.mjs +17 -0
  1209. package/TPubSub/dist/effect-TPubSub.cjs.prod.js +657 -0
  1210. package/TPubSub/dist/effect-TPubSub.esm.js +157 -0
  1211. package/TPubSub/package.json +4 -0
  1212. package/TQueue/dist/effect-TQueue.cjs.d.mts +2 -0
  1213. package/TQueue/dist/effect-TQueue.cjs.d.mts.map +1 -0
  1214. package/TQueue/dist/effect-TQueue.cjs.d.ts +2 -0
  1215. package/TQueue/dist/effect-TQueue.cjs.d.ts.map +1 -0
  1216. package/TQueue/dist/effect-TQueue.cjs.dev.js +436 -0
  1217. package/TQueue/dist/effect-TQueue.cjs.js +7 -0
  1218. package/TQueue/dist/effect-TQueue.cjs.mjs +29 -0
  1219. package/TQueue/dist/effect-TQueue.cjs.prod.js +436 -0
  1220. package/TQueue/dist/effect-TQueue.esm.js +293 -0
  1221. package/TQueue/package.json +4 -0
  1222. package/TRandom/dist/effect-TRandom.cjs.d.mts +2 -0
  1223. package/TRandom/dist/effect-TRandom.cjs.d.mts.map +1 -0
  1224. package/TRandom/dist/effect-TRandom.cjs.d.ts +2 -0
  1225. package/TRandom/dist/effect-TRandom.cjs.d.ts.map +1 -0
  1226. package/TRandom/dist/effect-TRandom.cjs.dev.js +296 -0
  1227. package/TRandom/dist/effect-TRandom.cjs.js +7 -0
  1228. package/TRandom/dist/effect-TRandom.cjs.mjs +11 -0
  1229. package/TRandom/dist/effect-TRandom.cjs.prod.js +296 -0
  1230. package/TRandom/dist/effect-TRandom.esm.js +93 -0
  1231. package/TRandom/package.json +4 -0
  1232. package/TReentrantLock/dist/effect-TReentrantLock.cjs.d.mts +2 -0
  1233. package/TReentrantLock/dist/effect-TReentrantLock.cjs.d.mts.map +1 -0
  1234. package/TReentrantLock/dist/effect-TReentrantLock.cjs.d.ts +2 -0
  1235. package/TReentrantLock/dist/effect-TReentrantLock.cjs.d.ts.map +1 -0
  1236. package/TReentrantLock/dist/effect-TReentrantLock.cjs.dev.js +537 -0
  1237. package/TReentrantLock/dist/effect-TReentrantLock.cjs.js +7 -0
  1238. package/TReentrantLock/dist/effect-TReentrantLock.cjs.mjs +21 -0
  1239. package/TReentrantLock/dist/effect-TReentrantLock.cjs.prod.js +537 -0
  1240. package/TReentrantLock/dist/effect-TReentrantLock.esm.js +199 -0
  1241. package/TReentrantLock/package.json +4 -0
  1242. package/TRef/dist/effect-TRef.cjs.d.mts +2 -0
  1243. package/TRef/dist/effect-TRef.cjs.d.mts.map +1 -0
  1244. package/TRef/dist/effect-TRef.cjs.d.ts +2 -0
  1245. package/TRef/dist/effect-TRef.cjs.d.ts.map +1 -0
  1246. package/TRef/dist/effect-TRef.cjs.dev.js +244 -0
  1247. package/TRef/dist/effect-TRef.cjs.js +7 -0
  1248. package/TRef/dist/effect-TRef.cjs.mjs +16 -0
  1249. package/TRef/dist/effect-TRef.cjs.prod.js +244 -0
  1250. package/TRef/dist/effect-TRef.esm.js +117 -0
  1251. package/TRef/package.json +4 -0
  1252. package/TSemaphore/dist/effect-TSemaphore.cjs.d.mts +2 -0
  1253. package/TSemaphore/dist/effect-TSemaphore.cjs.d.mts.map +1 -0
  1254. package/TSemaphore/dist/effect-TSemaphore.cjs.d.ts +2 -0
  1255. package/TSemaphore/dist/effect-TSemaphore.cjs.d.ts.map +1 -0
  1256. package/TSemaphore/dist/effect-TSemaphore.cjs.dev.js +289 -0
  1257. package/TSemaphore/dist/effect-TSemaphore.cjs.js +7 -0
  1258. package/TSemaphore/dist/effect-TSemaphore.cjs.mjs +14 -0
  1259. package/TSemaphore/dist/effect-TSemaphore.cjs.prod.js +289 -0
  1260. package/TSemaphore/dist/effect-TSemaphore.esm.js +97 -0
  1261. package/TSemaphore/package.json +4 -0
  1262. package/TSet/dist/effect-TSet.cjs.d.mts +2 -0
  1263. package/TSet/dist/effect-TSet.cjs.d.mts.map +1 -0
  1264. package/TSet/dist/effect-TSet.cjs.d.ts +2 -0
  1265. package/TSet/dist/effect-TSet.cjs.d.ts.map +1 -0
  1266. package/TSet/dist/effect-TSet.cjs.dev.js +521 -0
  1267. package/TSet/dist/effect-TSet.cjs.js +7 -0
  1268. package/TSet/dist/effect-TSet.cjs.mjs +32 -0
  1269. package/TSet/dist/effect-TSet.cjs.prod.js +521 -0
  1270. package/TSet/dist/effect-TSet.esm.js +268 -0
  1271. package/TSet/package.json +4 -0
  1272. package/Take/dist/effect-Take.cjs.d.mts +2 -0
  1273. package/Take/dist/effect-Take.cjs.d.mts.map +1 -0
  1274. package/Take/dist/effect-Take.cjs.d.ts +2 -0
  1275. package/Take/dist/effect-Take.cjs.d.ts.map +1 -0
  1276. package/Take/dist/effect-Take.cjs.dev.js +300 -0
  1277. package/Take/dist/effect-Take.cjs.js +7 -0
  1278. package/Take/dist/effect-Take.cjs.mjs +22 -0
  1279. package/Take/dist/effect-Take.cjs.prod.js +300 -0
  1280. package/Take/dist/effect-Take.esm.js +190 -0
  1281. package/Take/package.json +4 -0
  1282. package/TestAnnotation/dist/effect-TestAnnotation.cjs.d.mts +2 -0
  1283. package/TestAnnotation/dist/effect-TestAnnotation.cjs.d.mts.map +1 -0
  1284. package/TestAnnotation/dist/effect-TestAnnotation.cjs.d.ts +2 -0
  1285. package/TestAnnotation/dist/effect-TestAnnotation.cjs.d.ts.map +1 -0
  1286. package/TestAnnotation/dist/effect-TestAnnotation.cjs.dev.js +140 -0
  1287. package/TestAnnotation/dist/effect-TestAnnotation.cjs.js +7 -0
  1288. package/TestAnnotation/dist/effect-TestAnnotation.cjs.mjs +11 -0
  1289. package/TestAnnotation/dist/effect-TestAnnotation.cjs.prod.js +140 -0
  1290. package/TestAnnotation/dist/effect-TestAnnotation.esm.js +111 -0
  1291. package/TestAnnotation/package.json +4 -0
  1292. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.d.mts +2 -0
  1293. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.d.mts.map +1 -0
  1294. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.d.ts +2 -0
  1295. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.d.ts.map +1 -0
  1296. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.dev.js +113 -0
  1297. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.js +7 -0
  1298. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.mjs +11 -0
  1299. package/TestAnnotationMap/dist/effect-TestAnnotationMap.cjs.prod.js +113 -0
  1300. package/TestAnnotationMap/dist/effect-TestAnnotationMap.esm.js +101 -0
  1301. package/TestAnnotationMap/package.json +4 -0
  1302. package/TestAnnotations/dist/effect-TestAnnotations.cjs.d.mts +2 -0
  1303. package/TestAnnotations/dist/effect-TestAnnotations.cjs.d.mts.map +1 -0
  1304. package/TestAnnotations/dist/effect-TestAnnotations.cjs.d.ts +2 -0
  1305. package/TestAnnotations/dist/effect-TestAnnotations.cjs.d.ts.map +1 -0
  1306. package/TestAnnotations/dist/effect-TestAnnotations.cjs.dev.js +136 -0
  1307. package/TestAnnotations/dist/effect-TestAnnotations.cjs.js +7 -0
  1308. package/TestAnnotations/dist/effect-TestAnnotations.cjs.mjs +6 -0
  1309. package/TestAnnotations/dist/effect-TestAnnotations.cjs.prod.js +136 -0
  1310. package/TestAnnotations/dist/effect-TestAnnotations.esm.js +83 -0
  1311. package/TestAnnotations/package.json +4 -0
  1312. package/TestClock/dist/effect-TestClock.cjs.d.mts +2 -0
  1313. package/TestClock/dist/effect-TestClock.cjs.d.mts.map +1 -0
  1314. package/TestClock/dist/effect-TestClock.cjs.d.ts +2 -0
  1315. package/TestClock/dist/effect-TestClock.cjs.d.ts.map +1 -0
  1316. package/TestClock/dist/effect-TestClock.cjs.dev.js +630 -0
  1317. package/TestClock/dist/effect-TestClock.cjs.js +7 -0
  1318. package/TestClock/dist/effect-TestClock.cjs.mjs +16 -0
  1319. package/TestClock/dist/effect-TestClock.cjs.prod.js +630 -0
  1320. package/TestClock/dist/effect-TestClock.esm.js +411 -0
  1321. package/TestClock/package.json +4 -0
  1322. package/TestConfig/dist/effect-TestConfig.cjs.d.mts +2 -0
  1323. package/TestConfig/dist/effect-TestConfig.cjs.d.mts.map +1 -0
  1324. package/TestConfig/dist/effect-TestConfig.cjs.d.ts +2 -0
  1325. package/TestConfig/dist/effect-TestConfig.cjs.d.ts.map +1 -0
  1326. package/TestConfig/dist/effect-TestConfig.cjs.dev.js +43 -0
  1327. package/TestConfig/dist/effect-TestConfig.cjs.js +7 -0
  1328. package/TestConfig/dist/effect-TestConfig.cjs.mjs +4 -0
  1329. package/TestConfig/dist/effect-TestConfig.cjs.prod.js +43 -0
  1330. package/TestConfig/dist/effect-TestConfig.esm.js +27 -0
  1331. package/TestConfig/package.json +4 -0
  1332. package/TestContext/dist/effect-TestContext.cjs.d.mts +2 -0
  1333. package/TestContext/dist/effect-TestContext.cjs.d.mts.map +1 -0
  1334. package/TestContext/dist/effect-TestContext.cjs.d.ts +2 -0
  1335. package/TestContext/dist/effect-TestContext.cjs.d.ts.map +1 -0
  1336. package/TestContext/dist/effect-TestContext.cjs.dev.js +125 -0
  1337. package/TestContext/dist/effect-TestContext.cjs.js +7 -0
  1338. package/TestContext/dist/effect-TestContext.cjs.mjs +5 -0
  1339. package/TestContext/dist/effect-TestContext.cjs.prod.js +125 -0
  1340. package/TestContext/dist/effect-TestContext.esm.js +29 -0
  1341. package/TestContext/package.json +4 -0
  1342. package/TestLive/dist/effect-TestLive.cjs.d.mts +2 -0
  1343. package/TestLive/dist/effect-TestLive.cjs.d.mts.map +1 -0
  1344. package/TestLive/dist/effect-TestLive.cjs.d.ts +2 -0
  1345. package/TestLive/dist/effect-TestLive.cjs.d.ts.map +1 -0
  1346. package/TestLive/dist/effect-TestLive.cjs.dev.js +92 -0
  1347. package/TestLive/dist/effect-TestLive.cjs.js +7 -0
  1348. package/TestLive/dist/effect-TestLive.cjs.mjs +5 -0
  1349. package/TestLive/dist/effect-TestLive.cjs.prod.js +92 -0
  1350. package/TestLive/dist/effect-TestLive.esm.js +48 -0
  1351. package/TestLive/package.json +4 -0
  1352. package/TestServices/dist/effect-TestServices.cjs.d.mts +2 -0
  1353. package/TestServices/dist/effect-TestServices.cjs.d.mts.map +1 -0
  1354. package/TestServices/dist/effect-TestServices.cjs.d.ts +2 -0
  1355. package/TestServices/dist/effect-TestServices.cjs.d.ts.map +1 -0
  1356. package/TestServices/dist/effect-TestServices.cjs.dev.js +385 -0
  1357. package/TestServices/dist/effect-TestServices.cjs.js +7 -0
  1358. package/TestServices/dist/effect-TestServices.cjs.mjs +35 -0
  1359. package/TestServices/dist/effect-TestServices.cjs.prod.js +385 -0
  1360. package/TestServices/dist/effect-TestServices.esm.js +269 -0
  1361. package/TestServices/package.json +4 -0
  1362. package/TestSized/dist/effect-TestSized.cjs.d.mts +2 -0
  1363. package/TestSized/dist/effect-TestSized.cjs.d.mts.map +1 -0
  1364. package/TestSized/dist/effect-TestSized.cjs.d.ts +2 -0
  1365. package/TestSized/dist/effect-TestSized.cjs.d.ts.map +1 -0
  1366. package/TestSized/dist/effect-TestSized.cjs.dev.js +86 -0
  1367. package/TestSized/dist/effect-TestSized.cjs.js +7 -0
  1368. package/TestSized/dist/effect-TestSized.cjs.mjs +6 -0
  1369. package/TestSized/dist/effect-TestSized.cjs.prod.js +86 -0
  1370. package/TestSized/dist/effect-TestSized.esm.js +50 -0
  1371. package/TestSized/package.json +4 -0
  1372. package/Tracer/dist/effect-Tracer.cjs.d.mts +2 -0
  1373. package/Tracer/dist/effect-Tracer.cjs.d.mts.map +1 -0
  1374. package/Tracer/dist/effect-Tracer.cjs.d.ts +2 -0
  1375. package/Tracer/dist/effect-Tracer.cjs.d.ts.map +1 -0
  1376. package/Tracer/dist/effect-Tracer.cjs.dev.js +123 -0
  1377. package/Tracer/dist/effect-Tracer.cjs.js +7 -0
  1378. package/Tracer/dist/effect-Tracer.cjs.mjs +8 -0
  1379. package/Tracer/dist/effect-Tracer.cjs.prod.js +123 -0
  1380. package/Tracer/dist/effect-Tracer.esm.js +75 -0
  1381. package/Tracer/package.json +4 -0
  1382. package/Tuple/dist/effect-Tuple.cjs.d.mts +2 -0
  1383. package/Tuple/dist/effect-Tuple.cjs.d.mts.map +1 -0
  1384. package/Tuple/dist/effect-Tuple.cjs.d.ts +2 -0
  1385. package/Tuple/dist/effect-Tuple.cjs.d.ts.map +1 -0
  1386. package/Tuple/dist/effect-Tuple.cjs.dev.js +186 -0
  1387. package/Tuple/dist/effect-Tuple.cjs.js +7 -0
  1388. package/Tuple/dist/effect-Tuple.cjs.mjs +12 -0
  1389. package/Tuple/dist/effect-Tuple.cjs.prod.js +186 -0
  1390. package/Tuple/dist/effect-Tuple.esm.js +173 -0
  1391. package/Tuple/package.json +4 -0
  1392. package/Types/dist/effect-Types.cjs.d.mts +2 -0
  1393. package/Types/dist/effect-Types.cjs.d.mts.map +1 -0
  1394. package/Types/dist/effect-Types.cjs.d.ts +2 -0
  1395. package/Types/dist/effect-Types.cjs.d.ts.map +1 -0
  1396. package/Types/dist/effect-Types.cjs.dev.js +2 -0
  1397. package/Types/dist/effect-Types.cjs.js +7 -0
  1398. package/Types/dist/effect-Types.cjs.mjs +1 -0
  1399. package/Types/dist/effect-Types.cjs.prod.js +2 -0
  1400. package/Types/dist/effect-Types.esm.js +1 -0
  1401. package/Types/package.json +4 -0
  1402. package/Unify/dist/effect-Unify.cjs.d.mts +2 -0
  1403. package/Unify/dist/effect-Unify.cjs.d.mts.map +1 -0
  1404. package/Unify/dist/effect-Unify.cjs.d.ts +2 -0
  1405. package/Unify/dist/effect-Unify.cjs.d.ts.map +1 -0
  1406. package/Unify/dist/effect-Unify.cjs.dev.js +44 -0
  1407. package/Unify/dist/effect-Unify.cjs.js +7 -0
  1408. package/Unify/dist/effect-Unify.cjs.mjs +3 -0
  1409. package/Unify/dist/effect-Unify.cjs.prod.js +44 -0
  1410. package/Unify/dist/effect-Unify.esm.js +40 -0
  1411. package/Unify/package.json +4 -0
  1412. package/Utils/dist/effect-Utils.cjs.d.mts +2 -0
  1413. package/Utils/dist/effect-Utils.cjs.d.mts.map +1 -0
  1414. package/Utils/dist/effect-Utils.cjs.d.ts +2 -0
  1415. package/Utils/dist/effect-Utils.cjs.d.ts.map +1 -0
  1416. package/Utils/dist/effect-Utils.cjs.dev.js +361 -0
  1417. package/Utils/dist/effect-Utils.cjs.js +7 -0
  1418. package/Utils/dist/effect-Utils.cjs.mjs +8 -0
  1419. package/Utils/dist/effect-Utils.cjs.prod.js +361 -0
  1420. package/Utils/dist/effect-Utils.esm.js +352 -0
  1421. package/Utils/package.json +4 -0
  1422. package/dist/Context-607e9b4c.cjs.dev.js +222 -0
  1423. package/dist/Context-c91d8ca0.cjs.prod.js +222 -0
  1424. package/dist/Effectable-6a8a05f1.cjs.prod.js +234 -0
  1425. package/dist/Effectable-71c10ab9.cjs.dev.js +234 -0
  1426. package/dist/Either-a3f96c60.cjs.prod.js +105 -0
  1427. package/dist/Either-e7500e90.cjs.dev.js +105 -0
  1428. package/dist/ExecutionStrategy-4808fe5d.cjs.prod.js +168 -0
  1429. package/dist/ExecutionStrategy-7d9d457b.cjs.dev.js +168 -0
  1430. package/dist/FiberId-0f0b7779.cjs.prod.js +421 -0
  1431. package/dist/FiberId-6595cf4c.cjs.dev.js +421 -0
  1432. package/dist/HashSet-251c8294.cjs.prod.js +965 -0
  1433. package/dist/HashSet-c12c037b.cjs.dev.js +965 -0
  1434. package/dist/Option-01caa9d4.cjs.dev.js +81 -0
  1435. package/dist/Option-dd52e82a.cjs.prod.js +81 -0
  1436. package/dist/ReadonlyArray-9a1474f6.cjs.dev.js +10 -0
  1437. package/dist/ReadonlyArray-f9ed7a05.cjs.prod.js +10 -0
  1438. package/dist/Ref-00103de4.cjs.prod.js +262 -0
  1439. package/dist/Ref-f990026b.cjs.dev.js +262 -0
  1440. package/dist/RuntimeFlagsPatch-3890e860.cjs.prod.js +389 -0
  1441. package/dist/RuntimeFlagsPatch-7d62915d.cjs.dev.js +389 -0
  1442. package/dist/Stack-ada2d201.cjs.dev.js +11 -0
  1443. package/dist/Stack-fc8f9fe5.cjs.prod.js +11 -0
  1444. package/dist/StreamHaltStrategy-9a61b88d.cjs.dev.js +199 -0
  1445. package/dist/StreamHaltStrategy-b495622b.cjs.prod.js +199 -0
  1446. package/dist/boundaries-8dfe50cb.cjs.dev.js +54 -0
  1447. package/dist/boundaries-ebe66d32.cjs.prod.js +54 -0
  1448. package/dist/cache-0b148e42.cjs.prod.js +523 -0
  1449. package/dist/cache-d709d5cb.cjs.dev.js +523 -0
  1450. package/dist/childExecutorDecision-2eed6e25.cjs.dev.js +98 -0
  1451. package/dist/childExecutorDecision-b5842db5.cjs.prod.js +98 -0
  1452. package/dist/circular-5b6f6504.cjs.prod.js +108 -0
  1453. package/dist/circular-6d2bb353.cjs.dev.js +108 -0
  1454. package/dist/circular-952618e5.cjs.prod.js +341 -0
  1455. package/dist/circular-aa705e70.cjs.dev.js +341 -0
  1456. package/dist/config-8a7bf1ae.cjs.dev.js +474 -0
  1457. package/dist/config-f0bd27af.cjs.prod.js +474 -0
  1458. package/dist/configError-0c09b93c.cjs.dev.js +323 -0
  1459. package/dist/configError-9021016b.cjs.prod.js +323 -0
  1460. package/dist/configProvider-3d85d4ef.cjs.dev.js +447 -0
  1461. package/dist/configProvider-ae007b10.cjs.prod.js +447 -0
  1462. package/dist/configSecret-0bdfadd8.cjs.prod.js +74 -0
  1463. package/dist/configSecret-938818ad.cjs.dev.js +74 -0
  1464. package/dist/core-473934ce.cjs.prod.js +3572 -0
  1465. package/dist/core-b4bf44d3.cjs.dev.js +3572 -0
  1466. package/dist/core-d3f4e713.cjs.prod.js +1072 -0
  1467. package/dist/core-dd1edd7a.cjs.dev.js +1072 -0
  1468. package/dist/core-effect-6666f2dc.cjs.prod.js +1039 -0
  1469. package/dist/core-effect-f4b1aad8.cjs.dev.js +1039 -0
  1470. package/dist/dataSource-9f78e828.cjs.dev.js +74 -0
  1471. package/dist/dataSource-d5d7f338.cjs.prod.js +74 -0
  1472. package/dist/declarations/src/BigInt.d.ts +461 -0
  1473. package/dist/declarations/src/BigInt.d.ts.map +1 -0
  1474. package/dist/declarations/src/Boolean.d.ts +229 -0
  1475. package/dist/declarations/src/Boolean.d.ts.map +1 -0
  1476. package/dist/declarations/src/Brand.d.ts +230 -0
  1477. package/dist/declarations/src/Brand.d.ts.map +1 -0
  1478. package/dist/declarations/src/Cache.d.ts +218 -0
  1479. package/dist/declarations/src/Cache.d.ts.map +1 -0
  1480. package/dist/declarations/src/Cause.d.ts +718 -0
  1481. package/dist/declarations/src/Cause.d.ts.map +1 -0
  1482. package/dist/declarations/src/Channel.d.ts +1177 -0
  1483. package/dist/declarations/src/Channel.d.ts.map +1 -0
  1484. package/dist/declarations/src/ChannelChildExecutorDecision.d.ts +123 -0
  1485. package/dist/declarations/src/ChannelChildExecutorDecision.d.ts.map +1 -0
  1486. package/dist/declarations/src/ChannelMergeDecision.d.ts +77 -0
  1487. package/dist/declarations/src/ChannelMergeDecision.d.ts.map +1 -0
  1488. package/dist/declarations/src/ChannelMergeState.d.ts +122 -0
  1489. package/dist/declarations/src/ChannelMergeState.d.ts.map +1 -0
  1490. package/dist/declarations/src/ChannelMergeStrategy.d.ts +92 -0
  1491. package/dist/declarations/src/ChannelMergeStrategy.d.ts.map +1 -0
  1492. package/dist/declarations/src/ChannelSingleProducerAsyncInput.d.ts +57 -0
  1493. package/dist/declarations/src/ChannelSingleProducerAsyncInput.d.ts.map +1 -0
  1494. package/dist/declarations/src/ChannelUpstreamPullRequest.d.ts +96 -0
  1495. package/dist/declarations/src/ChannelUpstreamPullRequest.d.ts.map +1 -0
  1496. package/dist/declarations/src/ChannelUpstreamPullStrategy.d.ts +97 -0
  1497. package/dist/declarations/src/ChannelUpstreamPullStrategy.d.ts.map +1 -0
  1498. package/dist/declarations/src/Chunk.d.ts +754 -0
  1499. package/dist/declarations/src/Chunk.d.ts.map +1 -0
  1500. package/dist/declarations/src/Clock.d.ts +97 -0
  1501. package/dist/declarations/src/Clock.d.ts.map +1 -0
  1502. package/dist/declarations/src/Config.d.ts +388 -0
  1503. package/dist/declarations/src/Config.d.ts.map +1 -0
  1504. package/dist/declarations/src/ConfigError.d.ts +219 -0
  1505. package/dist/declarations/src/ConfigError.d.ts.map +1 -0
  1506. package/dist/declarations/src/ConfigProvider.d.ts +256 -0
  1507. package/dist/declarations/src/ConfigProvider.d.ts.map +1 -0
  1508. package/dist/declarations/src/ConfigProviderPathPatch.d.ts +86 -0
  1509. package/dist/declarations/src/ConfigProviderPathPatch.d.ts.map +1 -0
  1510. package/dist/declarations/src/ConfigSecret.d.ts +64 -0
  1511. package/dist/declarations/src/ConfigSecret.d.ts.map +1 -0
  1512. package/dist/declarations/src/Console.d.ts +196 -0
  1513. package/dist/declarations/src/Console.d.ts.map +1 -0
  1514. package/dist/declarations/src/Context.d.ts +339 -0
  1515. package/dist/declarations/src/Context.d.ts.map +1 -0
  1516. package/dist/declarations/src/Data.d.ts +248 -0
  1517. package/dist/declarations/src/Data.d.ts.map +1 -0
  1518. package/dist/declarations/src/DefaultServices.d.ts +26 -0
  1519. package/dist/declarations/src/DefaultServices.d.ts.map +1 -0
  1520. package/dist/declarations/src/Deferred.d.ts +247 -0
  1521. package/dist/declarations/src/Deferred.d.ts.map +1 -0
  1522. package/dist/declarations/src/Differ.d.ts +308 -0
  1523. package/dist/declarations/src/Differ.d.ts.map +1 -0
  1524. package/dist/declarations/src/Duration.d.ts +265 -0
  1525. package/dist/declarations/src/Duration.d.ts.map +1 -0
  1526. package/dist/declarations/src/Effect.d.ts +3735 -0
  1527. package/dist/declarations/src/Effect.d.ts.map +1 -0
  1528. package/dist/declarations/src/Effectable.d.ts +93 -0
  1529. package/dist/declarations/src/Effectable.d.ts.map +1 -0
  1530. package/dist/declarations/src/Either.d.ts +453 -0
  1531. package/dist/declarations/src/Either.d.ts.map +1 -0
  1532. package/dist/declarations/src/Encoding.d.ts +110 -0
  1533. package/dist/declarations/src/Encoding.d.ts.map +1 -0
  1534. package/dist/declarations/src/Equal.d.ts +34 -0
  1535. package/dist/declarations/src/Equal.d.ts.map +1 -0
  1536. package/dist/declarations/src/Equivalence.d.ts +134 -0
  1537. package/dist/declarations/src/Equivalence.d.ts.map +1 -0
  1538. package/dist/declarations/src/ExecutionStrategy.d.ts +100 -0
  1539. package/dist/declarations/src/ExecutionStrategy.d.ts.map +1 -0
  1540. package/dist/declarations/src/Exit.d.ts +406 -0
  1541. package/dist/declarations/src/Exit.d.ts.map +1 -0
  1542. package/dist/declarations/src/Fiber.d.ts +569 -0
  1543. package/dist/declarations/src/Fiber.d.ts.map +1 -0
  1544. package/dist/declarations/src/FiberId.d.ts +165 -0
  1545. package/dist/declarations/src/FiberId.d.ts.map +1 -0
  1546. package/dist/declarations/src/FiberRef.d.ts +307 -0
  1547. package/dist/declarations/src/FiberRef.d.ts.map +1 -0
  1548. package/dist/declarations/src/FiberRefs.d.ts +138 -0
  1549. package/dist/declarations/src/FiberRefs.d.ts.map +1 -0
  1550. package/dist/declarations/src/FiberRefsPatch.d.ts +95 -0
  1551. package/dist/declarations/src/FiberRefsPatch.d.ts.map +1 -0
  1552. package/dist/declarations/src/FiberStatus.d.ts +94 -0
  1553. package/dist/declarations/src/FiberStatus.d.ts.map +1 -0
  1554. package/dist/declarations/src/Function.d.ts +371 -0
  1555. package/dist/declarations/src/Function.d.ts.map +1 -0
  1556. package/dist/declarations/src/GlobalValue.d.ts +5 -0
  1557. package/dist/declarations/src/GlobalValue.d.ts.map +1 -0
  1558. package/dist/declarations/src/GroupBy.d.ts +86 -0
  1559. package/dist/declarations/src/GroupBy.d.ts.map +1 -0
  1560. package/dist/declarations/src/HKT.d.ts +40 -0
  1561. package/dist/declarations/src/HKT.d.ts.map +1 -0
  1562. package/dist/declarations/src/Hash.d.ts +63 -0
  1563. package/dist/declarations/src/Hash.d.ts.map +1 -0
  1564. package/dist/declarations/src/HashMap.d.ts +361 -0
  1565. package/dist/declarations/src/HashMap.d.ts.map +1 -0
  1566. package/dist/declarations/src/HashSet.d.ts +267 -0
  1567. package/dist/declarations/src/HashSet.d.ts.map +1 -0
  1568. package/dist/declarations/src/Inspectable.d.ts +31 -0
  1569. package/dist/declarations/src/Inspectable.d.ts.map +1 -0
  1570. package/dist/declarations/src/KeyedPool.d.ts +147 -0
  1571. package/dist/declarations/src/KeyedPool.d.ts.map +1 -0
  1572. package/dist/declarations/src/Layer.d.ts +747 -0
  1573. package/dist/declarations/src/Layer.d.ts.map +1 -0
  1574. package/dist/declarations/src/List.d.ts +478 -0
  1575. package/dist/declarations/src/List.d.ts.map +1 -0
  1576. package/dist/declarations/src/LogLevel.d.ts +203 -0
  1577. package/dist/declarations/src/LogLevel.d.ts.map +1 -0
  1578. package/dist/declarations/src/LogSpan.d.ts +19 -0
  1579. package/dist/declarations/src/LogSpan.d.ts.map +1 -0
  1580. package/dist/declarations/src/Logger.d.ts +238 -0
  1581. package/dist/declarations/src/Logger.d.ts.map +1 -0
  1582. package/dist/declarations/src/Match.d.ts +420 -0
  1583. package/dist/declarations/src/Match.d.ts.map +1 -0
  1584. package/dist/declarations/src/Metric.d.ts +595 -0
  1585. package/dist/declarations/src/Metric.d.ts.map +1 -0
  1586. package/dist/declarations/src/MetricBoundaries.d.ts +59 -0
  1587. package/dist/declarations/src/MetricBoundaries.d.ts.map +1 -0
  1588. package/dist/declarations/src/MetricHook.d.ts +120 -0
  1589. package/dist/declarations/src/MetricHook.d.ts.map +1 -0
  1590. package/dist/declarations/src/MetricKey.d.ts +182 -0
  1591. package/dist/declarations/src/MetricKey.d.ts.map +1 -0
  1592. package/dist/declarations/src/MetricKeyType.d.ts +221 -0
  1593. package/dist/declarations/src/MetricKeyType.d.ts.map +1 -0
  1594. package/dist/declarations/src/MetricLabel.d.ts +42 -0
  1595. package/dist/declarations/src/MetricLabel.d.ts.map +1 -0
  1596. package/dist/declarations/src/MetricPair.d.ts +53 -0
  1597. package/dist/declarations/src/MetricPair.d.ts.map +1 -0
  1598. package/dist/declarations/src/MetricPolling.d.ts +99 -0
  1599. package/dist/declarations/src/MetricPolling.d.ts.map +1 -0
  1600. package/dist/declarations/src/MetricRegistry.d.ts +38 -0
  1601. package/dist/declarations/src/MetricRegistry.d.ts.map +1 -0
  1602. package/dist/declarations/src/MetricState.d.ts +223 -0
  1603. package/dist/declarations/src/MetricState.d.ts.map +1 -0
  1604. package/dist/declarations/src/MutableHashMap.d.ts +87 -0
  1605. package/dist/declarations/src/MutableHashMap.d.ts.map +1 -0
  1606. package/dist/declarations/src/MutableHashSet.d.ts +61 -0
  1607. package/dist/declarations/src/MutableHashSet.d.ts.map +1 -0
  1608. package/dist/declarations/src/MutableList.d.ts +114 -0
  1609. package/dist/declarations/src/MutableList.d.ts.map +1 -0
  1610. package/dist/declarations/src/MutableQueue.d.ts +127 -0
  1611. package/dist/declarations/src/MutableQueue.d.ts.map +1 -0
  1612. package/dist/declarations/src/MutableRef.d.ts +118 -0
  1613. package/dist/declarations/src/MutableRef.d.ts.map +1 -0
  1614. package/dist/declarations/src/NonEmptyIterable.d.ts +21 -0
  1615. package/dist/declarations/src/NonEmptyIterable.d.ts.map +1 -0
  1616. package/dist/declarations/src/Number.d.ts +384 -0
  1617. package/dist/declarations/src/Number.d.ts.map +1 -0
  1618. package/dist/declarations/src/Option.d.ts +967 -0
  1619. package/dist/declarations/src/Option.d.ts.map +1 -0
  1620. package/dist/declarations/src/Order.d.ts +212 -0
  1621. package/dist/declarations/src/Order.d.ts.map +1 -0
  1622. package/dist/declarations/src/Ordering.d.ts +83 -0
  1623. package/dist/declarations/src/Ordering.d.ts.map +1 -0
  1624. package/dist/declarations/src/Pipeable.d.ts +35 -0
  1625. package/dist/declarations/src/Pipeable.d.ts.map +1 -0
  1626. package/dist/declarations/src/Pool.d.ts +136 -0
  1627. package/dist/declarations/src/Pool.d.ts.map +1 -0
  1628. package/dist/declarations/src/Predicate.d.ts +596 -0
  1629. package/dist/declarations/src/Predicate.d.ts.map +1 -0
  1630. package/dist/declarations/src/PubSub.d.ts +158 -0
  1631. package/dist/declarations/src/PubSub.d.ts.map +1 -0
  1632. package/dist/declarations/src/Queue.d.ts +501 -0
  1633. package/dist/declarations/src/Queue.d.ts.map +1 -0
  1634. package/dist/declarations/src/Random.d.ts +101 -0
  1635. package/dist/declarations/src/Random.d.ts.map +1 -0
  1636. package/dist/declarations/src/ReadonlyArray.d.ts +1254 -0
  1637. package/dist/declarations/src/ReadonlyArray.d.ts.map +1 -0
  1638. package/dist/declarations/src/ReadonlyRecord.d.ts +603 -0
  1639. package/dist/declarations/src/ReadonlyRecord.d.ts.map +1 -0
  1640. package/dist/declarations/src/RedBlackTree.d.ts +369 -0
  1641. package/dist/declarations/src/RedBlackTree.d.ts.map +1 -0
  1642. package/dist/declarations/src/Ref.d.ts +141 -0
  1643. package/dist/declarations/src/Ref.d.ts.map +1 -0
  1644. package/dist/declarations/src/Reloadable.d.ts +101 -0
  1645. package/dist/declarations/src/Reloadable.d.ts.map +1 -0
  1646. package/dist/declarations/src/Request.d.ts +251 -0
  1647. package/dist/declarations/src/Request.d.ts.map +1 -0
  1648. package/dist/declarations/src/RequestBlock.d.ts +113 -0
  1649. package/dist/declarations/src/RequestBlock.d.ts.map +1 -0
  1650. package/dist/declarations/src/RequestResolver.d.ts +218 -0
  1651. package/dist/declarations/src/RequestResolver.d.ts.map +1 -0
  1652. package/dist/declarations/src/Resource.d.ts +78 -0
  1653. package/dist/declarations/src/Resource.d.ts.map +1 -0
  1654. package/dist/declarations/src/Runtime.d.ts +180 -0
  1655. package/dist/declarations/src/Runtime.d.ts.map +1 -0
  1656. package/dist/declarations/src/RuntimeFlags.d.ts +297 -0
  1657. package/dist/declarations/src/RuntimeFlags.d.ts.map +1 -0
  1658. package/dist/declarations/src/RuntimeFlagsPatch.d.ts +161 -0
  1659. package/dist/declarations/src/RuntimeFlagsPatch.d.ts.map +1 -0
  1660. package/dist/declarations/src/STM.d.ts +1551 -0
  1661. package/dist/declarations/src/STM.d.ts.map +1 -0
  1662. package/dist/declarations/src/Schedule.d.ts +1073 -0
  1663. package/dist/declarations/src/Schedule.d.ts.map +1 -0
  1664. package/dist/declarations/src/ScheduleDecision.d.ts +50 -0
  1665. package/dist/declarations/src/ScheduleDecision.d.ts.map +1 -0
  1666. package/dist/declarations/src/ScheduleInterval.d.ts +136 -0
  1667. package/dist/declarations/src/ScheduleInterval.d.ts.map +1 -0
  1668. package/dist/declarations/src/ScheduleIntervals.d.ts +109 -0
  1669. package/dist/declarations/src/ScheduleIntervals.d.ts.map +1 -0
  1670. package/dist/declarations/src/Scheduler.d.ts +158 -0
  1671. package/dist/declarations/src/Scheduler.d.ts.map +1 -0
  1672. package/dist/declarations/src/Scope.d.ts +131 -0
  1673. package/dist/declarations/src/Scope.d.ts.map +1 -0
  1674. package/dist/declarations/src/ScopedCache.d.ts +126 -0
  1675. package/dist/declarations/src/ScopedCache.d.ts.map +1 -0
  1676. package/dist/declarations/src/ScopedRef.d.ts +82 -0
  1677. package/dist/declarations/src/ScopedRef.d.ts.map +1 -0
  1678. package/dist/declarations/src/Sink.d.ts +1127 -0
  1679. package/dist/declarations/src/Sink.d.ts.map +1 -0
  1680. package/dist/declarations/src/SortedMap.d.ts +136 -0
  1681. package/dist/declarations/src/SortedMap.d.ts.map +1 -0
  1682. package/dist/declarations/src/SortedSet.d.ts +185 -0
  1683. package/dist/declarations/src/SortedSet.d.ts.map +1 -0
  1684. package/dist/declarations/src/Stream.d.ts +3577 -0
  1685. package/dist/declarations/src/Stream.d.ts.map +1 -0
  1686. package/dist/declarations/src/StreamEmit.d.ts +73 -0
  1687. package/dist/declarations/src/StreamEmit.d.ts.map +1 -0
  1688. package/dist/declarations/src/StreamHaltStrategy.d.ts +92 -0
  1689. package/dist/declarations/src/StreamHaltStrategy.d.ts.map +1 -0
  1690. package/dist/declarations/src/Streamable.d.ts +27 -0
  1691. package/dist/declarations/src/Streamable.d.ts.map +1 -0
  1692. package/dist/declarations/src/String.d.ts +514 -0
  1693. package/dist/declarations/src/String.d.ts.map +1 -0
  1694. package/dist/declarations/src/Struct.d.ts +109 -0
  1695. package/dist/declarations/src/Struct.d.ts.map +1 -0
  1696. package/dist/declarations/src/SubscriptionRef.d.ts +211 -0
  1697. package/dist/declarations/src/SubscriptionRef.d.ts.map +1 -0
  1698. package/dist/declarations/src/Supervisor.d.ts +170 -0
  1699. package/dist/declarations/src/Supervisor.d.ts.map +1 -0
  1700. package/dist/declarations/src/Symbol.d.ts +25 -0
  1701. package/dist/declarations/src/Symbol.d.ts.map +1 -0
  1702. package/dist/declarations/src/SynchronizedRef.d.ts +205 -0
  1703. package/dist/declarations/src/SynchronizedRef.d.ts.map +1 -0
  1704. package/dist/declarations/src/TArray.d.ts +430 -0
  1705. package/dist/declarations/src/TArray.d.ts.map +1 -0
  1706. package/dist/declarations/src/TDeferred.d.ts +79 -0
  1707. package/dist/declarations/src/TDeferred.d.ts.map +1 -0
  1708. package/dist/declarations/src/TMap.d.ts +427 -0
  1709. package/dist/declarations/src/TMap.d.ts.map +1 -0
  1710. package/dist/declarations/src/TPriorityQueue.d.ts +185 -0
  1711. package/dist/declarations/src/TPriorityQueue.d.ts.map +1 -0
  1712. package/dist/declarations/src/TPubSub.d.ts +146 -0
  1713. package/dist/declarations/src/TPubSub.d.ts.map +1 -0
  1714. package/dist/declarations/src/TQueue.d.ts +383 -0
  1715. package/dist/declarations/src/TQueue.d.ts.map +1 -0
  1716. package/dist/declarations/src/TRandom.d.ts +108 -0
  1717. package/dist/declarations/src/TRandom.d.ts.map +1 -0
  1718. package/dist/declarations/src/TReentrantLock.d.ts +194 -0
  1719. package/dist/declarations/src/TReentrantLock.d.ts.map +1 -0
  1720. package/dist/declarations/src/TRef.d.ts +145 -0
  1721. package/dist/declarations/src/TRef.d.ts.map +1 -0
  1722. package/dist/declarations/src/TSemaphore.d.ts +105 -0
  1723. package/dist/declarations/src/TSemaphore.d.ts.map +1 -0
  1724. package/dist/declarations/src/TSet.d.ts +306 -0
  1725. package/dist/declarations/src/TSet.d.ts.map +1 -0
  1726. package/dist/declarations/src/Take.d.ts +214 -0
  1727. package/dist/declarations/src/Take.d.ts.map +1 -0
  1728. package/dist/declarations/src/TestAnnotation.d.ts +70 -0
  1729. package/dist/declarations/src/TestAnnotation.d.ts.map +1 -0
  1730. package/dist/declarations/src/TestAnnotationMap.d.ts +55 -0
  1731. package/dist/declarations/src/TestAnnotationMap.d.ts.map +1 -0
  1732. package/dist/declarations/src/TestAnnotations.d.ts +59 -0
  1733. package/dist/declarations/src/TestAnnotations.d.ts.map +1 -0
  1734. package/dist/declarations/src/TestClock.d.ts +149 -0
  1735. package/dist/declarations/src/TestClock.d.ts.map +1 -0
  1736. package/dist/declarations/src/TestConfig.d.ts +45 -0
  1737. package/dist/declarations/src/TestConfig.d.ts.map +1 -0
  1738. package/dist/declarations/src/TestContext.d.ts +15 -0
  1739. package/dist/declarations/src/TestContext.d.ts.map +1 -0
  1740. package/dist/declarations/src/TestLive.d.ts +35 -0
  1741. package/dist/declarations/src/TestLive.d.ts.map +1 -0
  1742. package/dist/declarations/src/TestServices.d.ts +231 -0
  1743. package/dist/declarations/src/TestServices.d.ts.map +1 -0
  1744. package/dist/declarations/src/TestSized.d.ts +36 -0
  1745. package/dist/declarations/src/TestSized.d.ts.map +1 -0
  1746. package/dist/declarations/src/Tracer.d.ts +112 -0
  1747. package/dist/declarations/src/Tracer.d.ts.map +1 -0
  1748. package/dist/declarations/src/Tuple.d.ts +173 -0
  1749. package/dist/declarations/src/Tuple.d.ts.map +1 -0
  1750. package/dist/declarations/src/Types.d.ts +113 -0
  1751. package/dist/declarations/src/Types.d.ts.map +1 -0
  1752. package/dist/declarations/src/Unify.d.ts +62 -0
  1753. package/dist/declarations/src/Unify.d.ts.map +1 -0
  1754. package/dist/declarations/src/Utils.d.ts +224 -0
  1755. package/dist/declarations/src/Utils.d.ts.map +1 -0
  1756. package/dist/declarations/src/index.d.ts +702 -0
  1757. package/dist/declarations/src/index.d.ts.map +1 -0
  1758. package/dist/defaultServices-6a9a2d2b.cjs.dev.js +328 -0
  1759. package/dist/defaultServices-8ea5e664.cjs.prod.js +328 -0
  1760. package/dist/effect.cjs.d.mts +2 -0
  1761. package/dist/effect.cjs.d.mts.map +1 -0
  1762. package/dist/effect.cjs.d.ts +2 -0
  1763. package/dist/effect.cjs.d.ts.map +1 -0
  1764. package/dist/effect.cjs.dev.js +476 -0
  1765. package/dist/effect.cjs.js +7 -0
  1766. package/dist/effect.cjs.mjs +150 -0
  1767. package/dist/effect.cjs.prod.js +476 -0
  1768. package/dist/effect.esm.js +285 -0
  1769. package/dist/fiber-3d944398.cjs.dev.js +411 -0
  1770. package/dist/fiber-cbd0613f.cjs.prod.js +411 -0
  1771. package/dist/fiberRefs-99808a27.cjs.prod.js +181 -0
  1772. package/dist/fiberRefs-ccc37f30.cjs.dev.js +181 -0
  1773. package/dist/fiberRuntime-0c1e7478.cjs.dev.js +3012 -0
  1774. package/dist/fiberRuntime-f1e80ca7.cjs.prod.js +3012 -0
  1775. package/dist/groupBy-30f6e9ba.cjs.prod.js +219 -0
  1776. package/dist/groupBy-8ae74e3b.cjs.dev.js +219 -0
  1777. package/dist/hook-ad5af092.cjs.dev.js +375 -0
  1778. package/dist/hook-cab99f9e.cjs.prod.js +375 -0
  1779. package/dist/key-9c7368c8.cjs.prod.js +79 -0
  1780. package/dist/key-e3189bbd.cjs.dev.js +79 -0
  1781. package/dist/keyType-2ae6a00e.cjs.prod.js +243 -0
  1782. package/dist/keyType-36962f62.cjs.dev.js +243 -0
  1783. package/dist/label-a588e6cd.cjs.prod.js +44 -0
  1784. package/dist/label-b0cebeae.cjs.dev.js +44 -0
  1785. package/dist/layer-bfb9802a.cjs.prod.js +684 -0
  1786. package/dist/layer-c284cf0d.cjs.dev.js +684 -0
  1787. package/dist/mergeDecision-07c6b5c9.cjs.prod.js +86 -0
  1788. package/dist/mergeDecision-be41e797.cjs.dev.js +86 -0
  1789. package/dist/mergeState-75990fa2.cjs.prod.js +109 -0
  1790. package/dist/mergeState-8153ce39.cjs.dev.js +109 -0
  1791. package/dist/mergeStrategy-3dd6e55f.cjs.prod.js +72 -0
  1792. package/dist/mergeStrategy-81ea5b80.cjs.dev.js +72 -0
  1793. package/dist/pair-291b78d7.cjs.dev.js +42 -0
  1794. package/dist/pair-6254cf85.cjs.prod.js +42 -0
  1795. package/dist/patch-256bc574.cjs.prod.js +132 -0
  1796. package/dist/patch-cda9b6c8.cjs.dev.js +132 -0
  1797. package/dist/pathPatch-31ce8101.cjs.dev.js +90 -0
  1798. package/dist/pathPatch-40b92af6.cjs.prod.js +90 -0
  1799. package/dist/pool-122f0fad.cjs.prod.js +278 -0
  1800. package/dist/pool-f6ca2038.cjs.dev.js +278 -0
  1801. package/dist/query-5cc0ddf8.cjs.prod.js +104 -0
  1802. package/dist/query-7bffa3c3.cjs.dev.js +104 -0
  1803. package/dist/queue-4166cfdb.cjs.dev.js +548 -0
  1804. package/dist/queue-e326fd89.cjs.prod.js +548 -0
  1805. package/dist/registry-081e18a3.cjs.prod.js +114 -0
  1806. package/dist/registry-377855a9.cjs.dev.js +114 -0
  1807. package/dist/runtime-4078f059.cjs.prod.js +290 -0
  1808. package/dist/runtime-d4514ab5.cjs.dev.js +290 -0
  1809. package/dist/schedule-31e38871.cjs.dev.js +956 -0
  1810. package/dist/schedule-f036b254.cjs.prod.js +956 -0
  1811. package/dist/scopedRef-5ecf6468.cjs.dev.js +55 -0
  1812. package/dist/scopedRef-8ce21228.cjs.prod.js +55 -0
  1813. package/dist/singleProducerAsyncInput-8879d87c.cjs.prod.js +193 -0
  1814. package/dist/singleProducerAsyncInput-ece7387b.cjs.dev.js +193 -0
  1815. package/dist/sink-1794329b.cjs.dev.js +3093 -0
  1816. package/dist/sink-9208df8d.cjs.prod.js +3093 -0
  1817. package/dist/state-40d5dc71.cjs.prod.js +223 -0
  1818. package/dist/state-620f7a22.cjs.dev.js +223 -0
  1819. package/dist/stm-6ad7b384.cjs.prod.js +678 -0
  1820. package/dist/stm-b080be31.cjs.dev.js +678 -0
  1821. package/dist/stream-09aeeac3.cjs.dev.js +3652 -0
  1822. package/dist/stream-e19805ca.cjs.prod.js +3652 -0
  1823. package/dist/synchronizedRef-8fa16866.cjs.dev.js +62 -0
  1824. package/dist/synchronizedRef-cc04ecbd.cjs.prod.js +62 -0
  1825. package/dist/tArray-5e42c290.cjs.prod.js +330 -0
  1826. package/dist/tArray-7d470ed7.cjs.dev.js +330 -0
  1827. package/dist/tMap-a2cfde88.cjs.prod.js +535 -0
  1828. package/dist/tMap-f0df0ea0.cjs.dev.js +535 -0
  1829. package/dist/tQueue-085f70b5.cjs.dev.js +367 -0
  1830. package/dist/tQueue-b80e940e.cjs.prod.js +367 -0
  1831. package/dist/tRef-2e495254.cjs.dev.js +133 -0
  1832. package/dist/tRef-42a212cb.cjs.prod.js +133 -0
  1833. package/dist/take-114476e5.cjs.prod.js +152 -0
  1834. package/dist/take-d4fa1beb.cjs.dev.js +152 -0
  1835. package/dist/timeout-489f3f86.cjs.prod.js +25 -0
  1836. package/dist/timeout-d380d3f8.cjs.dev.js +25 -0
  1837. package/dist/upstreamPullRequest-7a694281.cjs.dev.js +79 -0
  1838. package/dist/upstreamPullRequest-c89f818d.cjs.prod.js +79 -0
  1839. package/dist/upstreamPullStrategy-63cc8967.cjs.prod.js +81 -0
  1840. package/dist/upstreamPullStrategy-f9f1ab57.cjs.dev.js +81 -0
  1841. package/internal/Context.esm.js +208 -0
  1842. package/internal/Data.esm.js +52 -0
  1843. package/internal/Differ/ChunkPatch.esm.js +131 -0
  1844. package/internal/Differ/ContextPatch.esm.js +158 -0
  1845. package/internal/Differ/HashMapPatch.esm.js +133 -0
  1846. package/internal/Differ/HashSetPatch.esm.js +107 -0
  1847. package/internal/Differ/OrPatch.esm.js +196 -0
  1848. package/internal/Differ.esm.js +130 -0
  1849. package/internal/Effectable.esm.js +89 -0
  1850. package/internal/Either.esm.js +95 -0
  1851. package/internal/Encoding/Base64.esm.js +74 -0
  1852. package/internal/Encoding/Base64Url.esm.js +24 -0
  1853. package/internal/Encoding/Common.esm.js +21 -0
  1854. package/internal/Encoding/Hex.esm.js +55 -0
  1855. package/internal/HashMap/array.esm.js +51 -0
  1856. package/internal/HashMap/bitwise.esm.js +34 -0
  1857. package/internal/HashMap/config.esm.js +16 -0
  1858. package/internal/HashMap/keySet.esm.js +8 -0
  1859. package/internal/HashMap/node.esm.js +253 -0
  1860. package/internal/HashMap.esm.js +366 -0
  1861. package/internal/HashSet.esm.js +211 -0
  1862. package/internal/Option.esm.js +75 -0
  1863. package/internal/ReadonlyArray.esm.js +8 -0
  1864. package/internal/RedBlackTree/iterator.esm.js +204 -0
  1865. package/internal/RedBlackTree/node.esm.js +43 -0
  1866. package/internal/RedBlackTree.esm.js +1042 -0
  1867. package/internal/Stack.esm.js +9 -0
  1868. package/internal/blockedRequests.esm.js +365 -0
  1869. package/internal/cache.esm.js +514 -0
  1870. package/internal/cause.esm.js +1053 -0
  1871. package/internal/channel/channelExecutor.esm.js +692 -0
  1872. package/internal/channel/channelState.esm.js +78 -0
  1873. package/internal/channel/childExecutorDecision.esm.js +71 -0
  1874. package/internal/channel/continuation.esm.js +58 -0
  1875. package/internal/channel/mergeDecision.esm.js +69 -0
  1876. package/internal/channel/mergeState.esm.js +82 -0
  1877. package/internal/channel/mergeStrategy.esm.js +55 -0
  1878. package/internal/channel/singleProducerAsyncInput.esm.js +191 -0
  1879. package/internal/channel/subexecutor.esm.js +153 -0
  1880. package/internal/channel/upstreamPullRequest.esm.js +62 -0
  1881. package/internal/channel/upstreamPullStrategy.esm.js +62 -0
  1882. package/internal/channel.esm.js +647 -0
  1883. package/internal/clock.esm.js +82 -0
  1884. package/internal/completedRequestMap.esm.js +7 -0
  1885. package/internal/concurrency.esm.js +47 -0
  1886. package/internal/config.esm.js +374 -0
  1887. package/internal/configError.esm.js +276 -0
  1888. package/internal/configProvider/pathPatch.esm.js +83 -0
  1889. package/internal/configProvider.esm.js +365 -0
  1890. package/internal/configSecret.esm.js +66 -0
  1891. package/internal/console.esm.js +72 -0
  1892. package/internal/core-effect.esm.js +884 -0
  1893. package/internal/core-stream.esm.js +293 -0
  1894. package/internal/core.esm.js +1756 -0
  1895. package/internal/dataSource.esm.js +61 -0
  1896. package/internal/defaultServices/console.esm.js +96 -0
  1897. package/internal/defaultServices.esm.js +85 -0
  1898. package/internal/deferred.esm.js +37 -0
  1899. package/internal/effect/circular.esm.js +314 -0
  1900. package/internal/executionStrategy.esm.js +61 -0
  1901. package/internal/fiber.esm.js +257 -0
  1902. package/internal/fiberId.esm.js +243 -0
  1903. package/internal/fiberMessage.esm.js +54 -0
  1904. package/internal/fiberRefs/patch.esm.js +127 -0
  1905. package/internal/fiberRefs.esm.js +169 -0
  1906. package/internal/fiberRuntime.esm.js +2005 -0
  1907. package/internal/fiberScope.esm.js +58 -0
  1908. package/internal/fiberStatus.esm.js +89 -0
  1909. package/internal/groupBy.esm.js +211 -0
  1910. package/internal/keyedPool.esm.js +161 -0
  1911. package/internal/layer/circular.esm.js +86 -0
  1912. package/internal/layer.esm.js +575 -0
  1913. package/internal/logSpan.esm.js +15 -0
  1914. package/internal/logger-circular.esm.js +21 -0
  1915. package/internal/logger.esm.js +213 -0
  1916. package/internal/matcher.esm.js +314 -0
  1917. package/internal/metric/boundaries.esm.js +48 -0
  1918. package/internal/metric/hook.esm.js +366 -0
  1919. package/internal/metric/key.esm.js +68 -0
  1920. package/internal/metric/keyType.esm.js +225 -0
  1921. package/internal/metric/label.esm.js +40 -0
  1922. package/internal/metric/pair.esm.js +38 -0
  1923. package/internal/metric/polling.esm.js +74 -0
  1924. package/internal/metric/registry.esm.js +111 -0
  1925. package/internal/metric/state.esm.js +205 -0
  1926. package/internal/metric.esm.js +204 -0
  1927. package/internal/opCodes/cause.esm.js +31 -0
  1928. package/internal/opCodes/channel.esm.js +71 -0
  1929. package/internal/opCodes/channelChildExecutorDecision.esm.js +16 -0
  1930. package/internal/opCodes/channelMergeDecision.esm.js +11 -0
  1931. package/internal/opCodes/channelMergeState.esm.js +16 -0
  1932. package/internal/opCodes/channelMergeStrategy.esm.js +11 -0
  1933. package/internal/opCodes/channelState.esm.js +21 -0
  1934. package/internal/opCodes/channelUpstreamPullRequest.esm.js +11 -0
  1935. package/internal/opCodes/channelUpstreamPullStrategy.esm.js +11 -0
  1936. package/internal/opCodes/config.esm.js +56 -0
  1937. package/internal/opCodes/configError.esm.js +31 -0
  1938. package/internal/opCodes/continuation.esm.js +11 -0
  1939. package/internal/opCodes/deferred.esm.js +11 -0
  1940. package/internal/opCodes/effect.esm.js +71 -0
  1941. package/internal/opCodes/layer.esm.js +46 -0
  1942. package/internal/opCodes/streamHaltStrategy.esm.js +21 -0
  1943. package/internal/pool.esm.js +271 -0
  1944. package/internal/pubsub.esm.js +1102 -0
  1945. package/internal/query.esm.js +100 -0
  1946. package/internal/queue.esm.js +515 -0
  1947. package/internal/random.esm.js +58 -0
  1948. package/internal/ref.esm.js +121 -0
  1949. package/internal/reloadable.esm.js +62 -0
  1950. package/internal/request.esm.js +81 -0
  1951. package/internal/resource.esm.js +35 -0
  1952. package/internal/ringBuffer.esm.js +56 -0
  1953. package/internal/runtime.esm.js +270 -0
  1954. package/internal/runtimeFlags.esm.js +137 -0
  1955. package/internal/runtimeFlagsPatch.esm.js +57 -0
  1956. package/internal/schedule/decision.esm.js +45 -0
  1957. package/internal/schedule/interval.esm.js +85 -0
  1958. package/internal/schedule/intervals.esm.js +135 -0
  1959. package/internal/schedule.esm.js +844 -0
  1960. package/internal/scopedCache.esm.js +406 -0
  1961. package/internal/scopedRef.esm.js +49 -0
  1962. package/internal/singleShotGen.esm.js +30 -0
  1963. package/internal/sink.esm.js +918 -0
  1964. package/internal/stm/core.esm.js +553 -0
  1965. package/internal/stm/opCodes/stm.esm.js +56 -0
  1966. package/internal/stm/opCodes/stmState.esm.js +16 -0
  1967. package/internal/stm/opCodes/strategy.esm.js +16 -0
  1968. package/internal/stm/opCodes/tExit.esm.js +26 -0
  1969. package/internal/stm/opCodes/tryCommit.esm.js +11 -0
  1970. package/internal/stm/stm/entry.esm.js +47 -0
  1971. package/internal/stm/stm/journal.esm.js +96 -0
  1972. package/internal/stm/stm/stmState.esm.js +104 -0
  1973. package/internal/stm/stm/tExit.esm.js +113 -0
  1974. package/internal/stm/stm/tryCommit.esm.js +25 -0
  1975. package/internal/stm/stm/txnId.esm.js +15 -0
  1976. package/internal/stm/stm/versioned.esm.js +8 -0
  1977. package/internal/stm/stm.esm.js +584 -0
  1978. package/internal/stm/tArray.esm.js +287 -0
  1979. package/internal/stm/tDeferred.esm.js +49 -0
  1980. package/internal/stm/tMap.esm.js +492 -0
  1981. package/internal/stm/tPriorityQueue.esm.js +156 -0
  1982. package/internal/stm/tPubSub.esm.js +381 -0
  1983. package/internal/stm/tQueue.esm.js +317 -0
  1984. package/internal/stm/tRandom.esm.js +89 -0
  1985. package/internal/stm/tReentrantLock.esm.js +216 -0
  1986. package/internal/stm/tRef.esm.js +117 -0
  1987. package/internal/stm/tSemaphore.esm.js +73 -0
  1988. package/internal/stm/tSet.esm.js +113 -0
  1989. package/internal/stream/debounceState.esm.js +39 -0
  1990. package/internal/stream/emit.esm.js +51 -0
  1991. package/internal/stream/haltStrategy.esm.js +74 -0
  1992. package/internal/stream/handoff.esm.js +79 -0
  1993. package/internal/stream/handoffSignal.esm.js +40 -0
  1994. package/internal/stream/pull.esm.js +10 -0
  1995. package/internal/stream/sinkEndReason.esm.js +27 -0
  1996. package/internal/stream/zipAllState.esm.js +65 -0
  1997. package/internal/stream/zipChunksState.esm.js +41 -0
  1998. package/internal/stream.esm.js +2990 -0
  1999. package/internal/string-utils.esm.js +66 -0
  2000. package/internal/subscriptionRef.esm.js +65 -0
  2001. package/internal/supervisor/patch.esm.js +156 -0
  2002. package/internal/supervisor.esm.js +205 -0
  2003. package/internal/synchronizedRef.esm.js +53 -0
  2004. package/internal/take.esm.js +130 -0
  2005. package/internal/testing/suspendedWarningData.esm.js +66 -0
  2006. package/internal/testing/warningData.esm.js +75 -0
  2007. package/internal/timeout.esm.js +22 -0
  2008. package/internal/tracer.esm.js +74 -0
  2009. package/package.json +1091 -31
  2010. package/src/.index.ts +30 -0
  2011. package/src/BigInt.ts +531 -0
  2012. package/src/Boolean.ts +261 -0
  2013. package/src/Brand.ts +336 -0
  2014. package/src/Cache.ts +250 -0
  2015. package/src/Cause.ts +813 -0
  2016. package/src/Channel.ts +2254 -0
  2017. package/src/ChannelChildExecutorDecision.ts +138 -0
  2018. package/src/ChannelMergeDecision.ts +94 -0
  2019. package/src/ChannelMergeState.ts +166 -0
  2020. package/src/ChannelMergeStrategy.ts +107 -0
  2021. package/src/ChannelSingleProducerAsyncInput.ts +68 -0
  2022. package/src/ChannelUpstreamPullRequest.ts +110 -0
  2023. package/src/ChannelUpstreamPullStrategy.ts +120 -0
  2024. package/src/Chunk.ts +1325 -0
  2025. package/src/Clock.ts +111 -0
  2026. package/src/Config.ts +447 -0
  2027. package/src/ConfigError.ts +267 -0
  2028. package/src/ConfigProvider.ts +296 -0
  2029. package/src/ConfigProviderPathPatch.ts +100 -0
  2030. package/src/ConfigSecret.ts +76 -0
  2031. package/src/Console.ts +222 -0
  2032. package/src/Context.ts +365 -0
  2033. package/src/Data.ts +379 -0
  2034. package/src/DefaultServices.ts +34 -0
  2035. package/src/Deferred.ts +283 -0
  2036. package/src/Differ.ts +406 -0
  2037. package/src/Duration.ts +558 -0
  2038. package/src/Effect.ts +5075 -0
  2039. package/src/Effectable.ts +107 -0
  2040. package/src/Either.ts +626 -0
  2041. package/src/Encoding.ts +130 -0
  2042. package/src/Equal.ts +64 -0
  2043. package/src/Equivalence.ts +235 -0
  2044. package/src/ExecutionStrategy.ts +111 -0
  2045. package/src/Exit.ts +464 -0
  2046. package/src/Fiber.ts +650 -0
  2047. package/src/FiberId.ts +187 -0
  2048. package/src/FiberRef.ts +392 -0
  2049. package/src/FiberRefs.ts +160 -0
  2050. package/src/FiberRefsPatch.ts +105 -0
  2051. package/src/FiberStatus.ts +108 -0
  2052. package/src/Function.ts +834 -0
  2053. package/src/GlobalValue.ts +20 -0
  2054. package/src/GroupBy.ts +102 -0
  2055. package/src/HKT.ts +44 -0
  2056. package/src/Hash.ts +162 -0
  2057. package/src/HashMap.ts +403 -0
  2058. package/src/HashSet.ts +300 -0
  2059. package/src/Inspectable.ts +45 -0
  2060. package/src/KeyedPool.ts +160 -0
  2061. package/src/Layer.ts +1017 -0
  2062. package/src/List.ts +951 -0
  2063. package/src/LogLevel.ts +266 -0
  2064. package/src/LogSpan.ts +25 -0
  2065. package/src/Logger.ts +315 -0
  2066. package/src/Match.ts +800 -0
  2067. package/src/Metric.ts +739 -0
  2068. package/src/MetricBoundaries.ts +70 -0
  2069. package/src/MetricHook.ts +139 -0
  2070. package/src/MetricKey.ts +227 -0
  2071. package/src/MetricKeyType.ts +257 -0
  2072. package/src/MetricLabel.ts +47 -0
  2073. package/src/MetricPair.ts +70 -0
  2074. package/src/MetricPolling.ts +136 -0
  2075. package/src/MetricRegistry.ts +47 -0
  2076. package/src/MetricState.ts +256 -0
  2077. package/src/MutableHashMap.ts +187 -0
  2078. package/src/MutableHashSet.ts +118 -0
  2079. package/src/MutableList.ts +289 -0
  2080. package/src/MutableQueue.ts +227 -0
  2081. package/src/MutableRef.ts +204 -0
  2082. package/src/NonEmptyIterable.ts +30 -0
  2083. package/src/Number.ts +434 -0
  2084. package/src/Option.ts +1214 -0
  2085. package/src/Order.ts +328 -0
  2086. package/src/Ordering.ts +112 -0
  2087. package/src/Pipeable.ts +318 -0
  2088. package/src/Pool.ts +148 -0
  2089. package/src/Predicate.ts +704 -0
  2090. package/src/PubSub.ts +175 -0
  2091. package/src/Queue.ts +583 -0
  2092. package/src/Random.ts +115 -0
  2093. package/src/ReadonlyArray.ts +2017 -0
  2094. package/src/ReadonlyRecord.ts +914 -0
  2095. package/src/RedBlackTree.ts +415 -0
  2096. package/src/Ref.ts +159 -0
  2097. package/src/Reloadable.ts +136 -0
  2098. package/src/Request.ts +285 -0
  2099. package/src/RequestBlock.ts +157 -0
  2100. package/src/RequestResolver.ts +305 -0
  2101. package/src/Resource.ts +97 -0
  2102. package/src/Runtime.ts +216 -0
  2103. package/src/RuntimeFlags.ts +336 -0
  2104. package/src/RuntimeFlagsPatch.ts +183 -0
  2105. package/src/STM.ts +2076 -0
  2106. package/src/Schedule.ts +1396 -0
  2107. package/src/ScheduleDecision.ts +62 -0
  2108. package/src/ScheduleInterval.ts +151 -0
  2109. package/src/ScheduleIntervals.ts +122 -0
  2110. package/src/Scheduler.ts +359 -0
  2111. package/src/Scope.ts +171 -0
  2112. package/src/ScopedCache.ts +148 -0
  2113. package/src/ScopedRef.ts +95 -0
  2114. package/src/Sink.ts +1431 -0
  2115. package/src/SortedMap.ts +229 -0
  2116. package/src/SortedSet.ts +385 -0
  2117. package/src/Stream.ts +4540 -0
  2118. package/src/StreamEmit.ts +83 -0
  2119. package/src/StreamHaltStrategy.ts +111 -0
  2120. package/src/Streamable.ts +42 -0
  2121. package/src/String.ts +682 -0
  2122. package/src/Struct.ts +151 -0
  2123. package/src/SubscriptionRef.ts +273 -0
  2124. package/src/Supervisor.ts +239 -0
  2125. package/src/Symbol.ts +28 -0
  2126. package/src/SynchronizedRef.ts +249 -0
  2127. package/src/TArray.ts +494 -0
  2128. package/src/TDeferred.ts +99 -0
  2129. package/src/TMap.ts +510 -0
  2130. package/src/TPriorityQueue.ts +223 -0
  2131. package/src/TPubSub.ts +187 -0
  2132. package/src/TQueue.ts +431 -0
  2133. package/src/TRandom.ts +129 -0
  2134. package/src/TReentrantLock.ts +224 -0
  2135. package/src/TRef.ts +176 -0
  2136. package/src/TSemaphore.ts +129 -0
  2137. package/src/TSet.ts +349 -0
  2138. package/src/Take.ts +257 -0
  2139. package/src/TestAnnotation.ts +166 -0
  2140. package/src/TestAnnotationMap.ts +124 -0
  2141. package/src/TestAnnotations.ts +113 -0
  2142. package/src/TestClock.ts +552 -0
  2143. package/src/TestConfig.ts +49 -0
  2144. package/src/TestContext.ts +35 -0
  2145. package/src/TestLive.ts +55 -0
  2146. package/src/TestServices.ts +392 -0
  2147. package/src/TestSized.ts +55 -0
  2148. package/src/Tracer.ts +133 -0
  2149. package/src/Tuple.ts +204 -0
  2150. package/src/Types.ts +123 -0
  2151. package/src/Unify.ts +118 -0
  2152. package/src/Utils.ts +699 -0
  2153. package/src/index.ts +845 -0
  2154. package/src/internal/Common.ts +56 -0
  2155. package/src/internal/Context.ts +252 -0
  2156. package/src/internal/Data.ts +55 -0
  2157. package/src/internal/Differ/ChunkPatch.ts +209 -0
  2158. package/src/internal/Differ/ContextPatch.ts +229 -0
  2159. package/src/internal/Differ/HashMapPatch.ts +217 -0
  2160. package/src/internal/Differ/HashSetPatch.ts +174 -0
  2161. package/src/internal/Differ/OrPatch.ts +296 -0
  2162. package/src/internal/Differ.ts +184 -0
  2163. package/src/internal/Effectable.ts +92 -0
  2164. package/src/internal/Either.ts +107 -0
  2165. package/src/internal/Encoding/Base64.ts +282 -0
  2166. package/src/internal/Encoding/Base64Url.ts +28 -0
  2167. package/src/internal/Encoding/Common.ts +24 -0
  2168. package/src/internal/Encoding/Hex.ts +315 -0
  2169. package/src/internal/HashMap/array.ts +49 -0
  2170. package/src/internal/HashMap/bitwise.ts +32 -0
  2171. package/src/internal/HashMap/config.ts +14 -0
  2172. package/src/internal/HashMap/keySet.ts +8 -0
  2173. package/src/internal/HashMap/node.ts +390 -0
  2174. package/src/internal/HashMap.ts +533 -0
  2175. package/src/internal/HashSet.ts +319 -0
  2176. package/src/internal/Iterable.ts +54 -0
  2177. package/src/internal/Option.ts +79 -0
  2178. package/src/internal/ReadonlyArray.ts +8 -0
  2179. package/src/internal/RedBlackTree/iterator.ts +207 -0
  2180. package/src/internal/RedBlackTree/node.ts +48 -0
  2181. package/src/internal/RedBlackTree.ts +1195 -0
  2182. package/src/internal/Stack.ts +4 -0
  2183. package/src/internal/blockedRequests.ts +512 -0
  2184. package/src/internal/cache.ts +714 -0
  2185. package/src/internal/cause.ts +1205 -0
  2186. package/src/internal/channel/channelExecutor.ts +1193 -0
  2187. package/src/internal/channel/channelState.ts +132 -0
  2188. package/src/internal/channel/childExecutorDecision.ts +95 -0
  2189. package/src/internal/channel/continuation.ts +171 -0
  2190. package/src/internal/channel/mergeDecision.ts +115 -0
  2191. package/src/internal/channel/mergeState.ts +120 -0
  2192. package/src/internal/channel/mergeStrategy.ts +72 -0
  2193. package/src/internal/channel/singleProducerAsyncInput.ts +261 -0
  2194. package/src/internal/channel/subexecutor.ts +229 -0
  2195. package/src/internal/channel/upstreamPullRequest.ts +83 -0
  2196. package/src/internal/channel/upstreamPullStrategy.ts +86 -0
  2197. package/src/internal/channel.ts +2520 -0
  2198. package/src/internal/clock.ts +97 -0
  2199. package/src/internal/completedRequestMap.ts +9 -0
  2200. package/src/internal/concurrency.ts +83 -0
  2201. package/src/internal/config.ts +598 -0
  2202. package/src/internal/configError.ts +291 -0
  2203. package/src/internal/configProvider/pathPatch.ts +97 -0
  2204. package/src/internal/configProvider.ts +692 -0
  2205. package/src/internal/configSecret.ts +71 -0
  2206. package/src/internal/console.ts +136 -0
  2207. package/src/internal/core-effect.ts +2161 -0
  2208. package/src/internal/core-stream.ts +999 -0
  2209. package/src/internal/core.ts +2776 -0
  2210. package/src/internal/dataSource.ts +258 -0
  2211. package/src/internal/defaultServices/console.ts +97 -0
  2212. package/src/internal/defaultServices.ts +140 -0
  2213. package/src/internal/deferred.ts +44 -0
  2214. package/src/internal/effect/circular.ts +664 -0
  2215. package/src/internal/executionStrategy.ts +72 -0
  2216. package/src/internal/fiber.ts +350 -0
  2217. package/src/internal/fiberId.ts +270 -0
  2218. package/src/internal/fiberMessage.ts +85 -0
  2219. package/src/internal/fiberRefs/patch.ts +144 -0
  2220. package/src/internal/fiberRefs.ts +239 -0
  2221. package/src/internal/fiberRuntime.ts +3478 -0
  2222. package/src/internal/fiberScope.ts +72 -0
  2223. package/src/internal/fiberStatus.ts +118 -0
  2224. package/src/internal/groupBy.ts +520 -0
  2225. package/src/internal/keyedPool.ts +240 -0
  2226. package/src/internal/layer/circular.ts +215 -0
  2227. package/src/internal/layer.ts +1246 -0
  2228. package/src/internal/logSpan.ts +15 -0
  2229. package/src/internal/logger-circular.ts +24 -0
  2230. package/src/internal/logger.ts +307 -0
  2231. package/src/internal/matcher.ts +594 -0
  2232. package/src/internal/metric/boundaries.ts +72 -0
  2233. package/src/internal/metric/hook.ts +459 -0
  2234. package/src/internal/metric/key.ts +173 -0
  2235. package/src/internal/metric/keyType.ts +263 -0
  2236. package/src/internal/metric/label.ts +44 -0
  2237. package/src/internal/metric/pair.ts +48 -0
  2238. package/src/internal/metric/polling.ts +143 -0
  2239. package/src/internal/metric/registry.ts +188 -0
  2240. package/src/internal/metric/state.ts +286 -0
  2241. package/src/internal/metric.ts +522 -0
  2242. package/src/internal/opCodes/cause.ts +35 -0
  2243. package/src/internal/opCodes/channel.ts +83 -0
  2244. package/src/internal/opCodes/channelChildExecutorDecision.ts +17 -0
  2245. package/src/internal/opCodes/channelMergeDecision.ts +11 -0
  2246. package/src/internal/opCodes/channelMergeState.ts +17 -0
  2247. package/src/internal/opCodes/channelMergeStrategy.ts +11 -0
  2248. package/src/internal/opCodes/channelState.ts +23 -0
  2249. package/src/internal/opCodes/channelUpstreamPullRequest.ts +11 -0
  2250. package/src/internal/opCodes/channelUpstreamPullStrategy.ts +11 -0
  2251. package/src/internal/opCodes/config.ts +65 -0
  2252. package/src/internal/opCodes/configError.ts +35 -0
  2253. package/src/internal/opCodes/continuation.ts +11 -0
  2254. package/src/internal/opCodes/deferred.ts +11 -0
  2255. package/src/internal/opCodes/effect.ts +83 -0
  2256. package/src/internal/opCodes/layer.ts +53 -0
  2257. package/src/internal/opCodes/streamHaltStrategy.ts +23 -0
  2258. package/src/internal/pool.ts +499 -0
  2259. package/src/internal/pubsub.ts +1557 -0
  2260. package/src/internal/query.ts +199 -0
  2261. package/src/internal/queue.ts +744 -0
  2262. package/src/internal/random.ts +88 -0
  2263. package/src/internal/ref.ts +164 -0
  2264. package/src/internal/reloadable.ts +164 -0
  2265. package/src/internal/request.ts +137 -0
  2266. package/src/internal/resource.ts +64 -0
  2267. package/src/internal/ringBuffer.ts +68 -0
  2268. package/src/internal/runtime.ts +348 -0
  2269. package/src/internal/runtimeFlags.ts +176 -0
  2270. package/src/internal/runtimeFlagsPatch.ts +103 -0
  2271. package/src/internal/schedule/decision.ts +47 -0
  2272. package/src/internal/schedule/interval.ts +101 -0
  2273. package/src/internal/schedule/intervals.ts +179 -0
  2274. package/src/internal/schedule.ts +2096 -0
  2275. package/src/internal/scopedCache.ts +634 -0
  2276. package/src/internal/scopedRef.ts +133 -0
  2277. package/src/internal/singleShotGen.ts +35 -0
  2278. package/src/internal/sink.ts +2118 -0
  2279. package/src/internal/stm/core.ts +804 -0
  2280. package/src/internal/stm/opCodes/stm.ts +71 -0
  2281. package/src/internal/stm/opCodes/stmState.ts +17 -0
  2282. package/src/internal/stm/opCodes/strategy.ts +17 -0
  2283. package/src/internal/stm/opCodes/tExit.ts +29 -0
  2284. package/src/internal/stm/opCodes/tryCommit.ts +11 -0
  2285. package/src/internal/stm/stm/entry.ts +59 -0
  2286. package/src/internal/stm/stm/journal.ts +123 -0
  2287. package/src/internal/stm/stm/opCodes/stm.ts +71 -0
  2288. package/src/internal/stm/stm/opCodes/stmState.ts +17 -0
  2289. package/src/internal/stm/stm/opCodes/strategy.ts +17 -0
  2290. package/src/internal/stm/stm/opCodes/tExit.ts +29 -0
  2291. package/src/internal/stm/stm/opCodes/tryCommit.ts +11 -0
  2292. package/src/internal/stm/stm/stmState.ts +130 -0
  2293. package/src/internal/stm/stm/tExit.ts +180 -0
  2294. package/src/internal/stm/stm/tryCommit.ts +34 -0
  2295. package/src/internal/stm/stm/txnId.ts +14 -0
  2296. package/src/internal/stm/stm/versioned.ts +4 -0
  2297. package/src/internal/stm/stm.ts +1491 -0
  2298. package/src/internal/stm/tArray.ts +550 -0
  2299. package/src/internal/stm/tDeferred.ts +79 -0
  2300. package/src/internal/stm/tMap.ts +824 -0
  2301. package/src/internal/stm/tPriorityQueue.ts +259 -0
  2302. package/src/internal/stm/tPubSub.ts +542 -0
  2303. package/src/internal/stm/tQueue.ts +400 -0
  2304. package/src/internal/stm/tRandom.ts +140 -0
  2305. package/src/internal/stm/tReentrantLock.ts +352 -0
  2306. package/src/internal/stm/tRef.ts +190 -0
  2307. package/src/internal/stm/tSemaphore.ts +113 -0
  2308. package/src/internal/stm/tSet.ts +237 -0
  2309. package/src/internal/stream/debounceState.ts +57 -0
  2310. package/src/internal/stream/emit.ts +46 -0
  2311. package/src/internal/stream/haltStrategy.ts +85 -0
  2312. package/src/internal/stream/handoff.ts +185 -0
  2313. package/src/internal/stream/handoffSignal.ts +59 -0
  2314. package/src/internal/stream/pull.ts +35 -0
  2315. package/src/internal/stream/sinkEndReason.ts +30 -0
  2316. package/src/internal/stream/zipAllState.ts +88 -0
  2317. package/src/internal/stream/zipChunksState.ts +56 -0
  2318. package/src/internal/stream.ts +8092 -0
  2319. package/src/internal/string-utils.ts +107 -0
  2320. package/src/internal/subscriptionRef.ts +133 -0
  2321. package/src/internal/supervisor/patch.ts +190 -0
  2322. package/src/internal/supervisor.ts +301 -0
  2323. package/src/internal/synchronizedRef.ts +115 -0
  2324. package/src/internal/take.ts +198 -0
  2325. package/src/internal/testing/sleep.ts +27 -0
  2326. package/src/internal/testing/suspendedWarningData.ts +85 -0
  2327. package/src/internal/testing/warningData.ts +94 -0
  2328. package/src/internal/timeout.ts +23 -0
  2329. package/src/internal/tracer.ts +101 -0
  2330. package/src/tsconfig.json +49 -0
  2331. package/Debug.d.ts +0 -31
  2332. package/Debug.d.ts.map +0 -1
  2333. package/Debug.js +0 -31
  2334. package/Debug.js.map +0 -1
  2335. package/Differ.d.ts +0 -61
  2336. package/Differ.d.ts.map +0 -1
  2337. package/Differ.js +0 -38
  2338. package/Differ.js.map +0 -1
  2339. package/Fiber.d.ts +0 -51
  2340. package/Fiber.d.ts.map +0 -1
  2341. package/Fiber.js +0 -35
  2342. package/Fiber.js.map +0 -1
  2343. package/FiberRefs.d.ts +0 -21
  2344. package/FiberRefs.d.ts.map +0 -1
  2345. package/FiberRefs.js +0 -26
  2346. package/FiberRefs.js.map +0 -1
  2347. package/Metric.d.ts +0 -101
  2348. package/Metric.d.ts.map +0 -1
  2349. package/Metric.js +0 -50
  2350. package/Metric.js.map +0 -1
  2351. package/Optic.d.ts +0 -62
  2352. package/Optic.d.ts.map +0 -1
  2353. package/Optic.js +0 -70
  2354. package/Optic.js.map +0 -1
  2355. package/Ref.d.ts +0 -31
  2356. package/Ref.d.ts.map +0 -1
  2357. package/Ref.js +0 -29
  2358. package/Ref.js.map +0 -1
  2359. package/Schedule.d.ts +0 -41
  2360. package/Schedule.d.ts.map +0 -1
  2361. package/Schedule.js +0 -32
  2362. package/Schedule.js.map +0 -1
  2363. package/_mjs/Debug.mjs +0 -27
  2364. package/_mjs/Debug.mjs.map +0 -1
  2365. package/_mjs/Differ.mjs +0 -61
  2366. package/_mjs/Differ.mjs.map +0 -1
  2367. package/_mjs/Fiber.mjs +0 -51
  2368. package/_mjs/Fiber.mjs.map +0 -1
  2369. package/_mjs/FiberRefs.mjs +0 -21
  2370. package/_mjs/FiberRefs.mjs.map +0 -1
  2371. package/_mjs/Metric.mjs +0 -101
  2372. package/_mjs/Metric.mjs.map +0 -1
  2373. package/_mjs/Optic.mjs +0 -62
  2374. package/_mjs/Optic.mjs.map +0 -1
  2375. package/_mjs/Ref.mjs +0 -31
  2376. package/_mjs/Ref.mjs.map +0 -1
  2377. package/_mjs/Schedule.mjs +0 -41
  2378. package/_mjs/Schedule.mjs.map +0 -1
  2379. package/_mjs/index.mjs +0 -939
  2380. package/_mjs/index.mjs.map +0 -1
  2381. package/index.d.ts +0 -939
  2382. package/index.d.ts.map +0 -1
  2383. package/index.js +0 -217
  2384. package/index.js.map +0 -1
@@ -0,0 +1,3735 @@
1
+ /**
2
+ * @since 2.0.0
3
+ */
4
+ import type * as Cause from "./Cause.js";
5
+ import type * as Chunk from "./Chunk.js";
6
+ import type * as Clock from "./Clock.js";
7
+ import type { Config } from "./Config.js";
8
+ import type { ConfigError } from "./ConfigError.js";
9
+ import type { ConfigProvider } from "./ConfigProvider.js";
10
+ import type * as Context from "./Context.js";
11
+ import type * as Deferred from "./Deferred.js";
12
+ import type * as Duration from "./Duration.js";
13
+ import type * as Either from "./Either.js";
14
+ import type * as Equal from "./Equal.js";
15
+ import type { Equivalence } from "./Equivalence.js";
16
+ import type { ExecutionStrategy } from "./ExecutionStrategy.js";
17
+ import type * as Exit from "./Exit.js";
18
+ import type * as Fiber from "./Fiber.js";
19
+ import type * as FiberId from "./FiberId.js";
20
+ import type * as FiberRef from "./FiberRef.js";
21
+ import type * as FiberRefs from "./FiberRefs.js";
22
+ import type * as FiberRefsPatch from "./FiberRefsPatch.js";
23
+ import type { LazyArg } from "./Function.js";
24
+ import type * as HashMap from "./HashMap.js";
25
+ import type * as HashSet from "./HashSet.js";
26
+ import type { TypeLambda } from "./HKT.js";
27
+ import type * as Layer from "./Layer.js";
28
+ import type { LogLevel } from "./LogLevel.js";
29
+ import type * as Metric from "./Metric.js";
30
+ import type * as MetricLabel from "./MetricLabel.js";
31
+ import type * as Option from "./Option.js";
32
+ import type { Pipeable } from "./Pipeable.js";
33
+ import type { Predicate, Refinement } from "./Predicate.js";
34
+ import type * as Random from "./Random.js";
35
+ import type * as Ref from "./Ref.js";
36
+ import type * as Request from "./Request.js";
37
+ import type { RequestBlock } from "./RequestBlock.js";
38
+ import type { RequestResolver } from "./RequestResolver.js";
39
+ import type * as Runtime from "./Runtime.js";
40
+ import type * as RuntimeFlags from "./RuntimeFlags.js";
41
+ import type * as RuntimeFlagsPatch from "./RuntimeFlagsPatch.js";
42
+ import type * as Schedule from "./Schedule.js";
43
+ import * as Scheduler from "./Scheduler.js";
44
+ import type * as Scope from "./Scope.js";
45
+ import type * as Supervisor from "./Supervisor.js";
46
+ import type * as Tracer from "./Tracer.js";
47
+ import type { Concurrency } from "./Types.js";
48
+ import type * as Unify from "./Unify.js";
49
+ /**
50
+ * @since 2.0.0
51
+ */
52
+ export type MergeRecord<K, H> = {
53
+ [k in keyof K | keyof H]: k extends keyof K ? K[k] : k extends keyof H ? H[k] : never;
54
+ } extends infer X ? X : never;
55
+ /**
56
+ * @since 2.0.0
57
+ * @category symbols
58
+ */
59
+ export declare const EffectTypeId: unique symbol;
60
+ /**
61
+ * @since 2.0.0
62
+ * @category symbols
63
+ */
64
+ export type EffectTypeId = typeof EffectTypeId;
65
+ /**
66
+ * The `Effect` interface defines a value that lazily describes a workflow or job.
67
+ * The workflow requires some context `R`, and may fail with an error of type `E`,
68
+ * or succeed with a value of type `A`.
69
+ *
70
+ * `Effect` values model resourceful interaction with the outside world, including
71
+ * synchronous, asynchronous, concurrent, and parallel interaction. They use a
72
+ * fiber-based concurrency model, with built-in support for scheduling, fine-grained
73
+ * interruption, structured concurrency, and high scalability.
74
+ *
75
+ * To run an `Effect` value, you need a `Runtime`, which is a type that is capable
76
+ * of executing `Effect` values.
77
+ *
78
+ * @since 2.0.0
79
+ * @category models
80
+ */
81
+ export interface Effect<R, E, A> extends Effect.Variance<R, E, A>, Equal.Equal, Pipeable {
82
+ readonly [Unify.typeSymbol]?: unknown;
83
+ readonly [Unify.unifySymbol]?: EffectUnify<this>;
84
+ readonly [Unify.blacklistSymbol]?: EffectUnifyBlacklist;
85
+ }
86
+ /**
87
+ * @since 2.0.0
88
+ * @category models
89
+ */
90
+ export interface EffectUnify<A extends {
91
+ [Unify.typeSymbol]?: any;
92
+ }> extends Either.EitherUnify<A>, Option.OptionUnify<A>, Context.TagUnify<A> {
93
+ Effect?: () => A[Unify.typeSymbol] extends Effect<infer R0, infer E0, infer A0> | infer _ ? Effect<R0, E0, A0> : never;
94
+ }
95
+ /**
96
+ * @category models
97
+ * @since 2.0.0
98
+ */
99
+ export interface EffectUnifyBlacklist {
100
+ Tag?: true;
101
+ Option?: true;
102
+ Either?: true;
103
+ }
104
+ /**
105
+ * @category type lambdas
106
+ * @since 2.0.0
107
+ */
108
+ export interface EffectTypeLambda extends TypeLambda {
109
+ readonly type: Effect<this["Out2"], this["Out1"], this["Target"]>;
110
+ }
111
+ /**
112
+ * @since 2.0.0
113
+ * @category models
114
+ */
115
+ export interface Blocked<R, E, A> extends Effect<R, E, A> {
116
+ readonly _op: "Blocked";
117
+ readonly i0: RequestBlock<R>;
118
+ readonly i1: Effect<R, E, A>;
119
+ }
120
+ /**
121
+ * @since 2.0.0
122
+ * @category models
123
+ */
124
+ declare module "./Context" {
125
+ interface Tag<Identifier, Service> extends Effect<Identifier, never, Service> {
126
+ }
127
+ interface TagUnifyBlacklist {
128
+ Effect?: true;
129
+ Either?: true;
130
+ Option?: true;
131
+ }
132
+ }
133
+ /**
134
+ * @since 2.0.0
135
+ * @category models
136
+ */
137
+ declare module "./Either" {
138
+ interface Left<E, A> extends Effect<never, E, A> {
139
+ readonly _tag: "Left";
140
+ }
141
+ interface Right<E, A> extends Effect<never, E, A> {
142
+ readonly _tag: "Right";
143
+ }
144
+ interface EitherUnifyBlacklist {
145
+ Effect?: true;
146
+ Tag?: true;
147
+ Option?: true;
148
+ }
149
+ }
150
+ /**
151
+ * @since 2.0.0
152
+ * @category models
153
+ */
154
+ declare module "./Option" {
155
+ interface None<A> extends Effect<never, Cause.NoSuchElementException, A> {
156
+ readonly _tag: "None";
157
+ }
158
+ interface Some<A> extends Effect<never, Cause.NoSuchElementException, A> {
159
+ readonly _tag: "Some";
160
+ }
161
+ interface OptionUnifyBlacklist {
162
+ Effect?: true;
163
+ Tag?: true;
164
+ Either?: true;
165
+ }
166
+ }
167
+ /**
168
+ * @since 2.0.0
169
+ */
170
+ export declare namespace Effect {
171
+ /**
172
+ * @since 2.0.0
173
+ * @category models
174
+ */
175
+ interface Variance<R, E, A> {
176
+ readonly [EffectTypeId]: VarianceStruct<R, E, A>;
177
+ }
178
+ /**
179
+ * @since 2.0.0
180
+ * @category models
181
+ */
182
+ interface VarianceStruct<R, E, A> {
183
+ readonly _R: (_: never) => R;
184
+ readonly _E: (_: never) => E;
185
+ readonly _A: (_: never) => A;
186
+ }
187
+ /**
188
+ * @since 2.0.0
189
+ * @category models
190
+ */
191
+ type Unify<Ret extends Effect<any, any, any>> = Effect<Context<Ret>, Error<Ret>, Success<Ret>>;
192
+ /**
193
+ * @since 2.0.0
194
+ * @category type-level
195
+ */
196
+ type Context<T extends Effect<any, any, any>> = [T] extends [Effect<infer _R, infer _E, infer _A>] ? _R : never;
197
+ /**
198
+ * @since 2.0.0
199
+ * @category type-level
200
+ */
201
+ type Error<T extends Effect<any, any, any>> = [T] extends [Effect<infer _R, infer _E, infer _A>] ? _E : never;
202
+ /**
203
+ * @since 2.0.0
204
+ * @category type-level
205
+ */
206
+ type Success<T extends Effect<any, any, any>> = [T] extends [Effect<infer _R, infer _E, infer _A>] ? _A : never;
207
+ }
208
+ /**
209
+ * This function returns `true` if the specified value is an `Effect` value,
210
+ * `false` otherwise.
211
+ *
212
+ * This function can be useful for checking the type of a value before
213
+ * attempting to operate on it as an `Effect` value. For example, you could
214
+ * use `isEffect` to check the type of a value before using it as an
215
+ * argument to a function that expects an `Effect` value.
216
+ *
217
+ * @param u - The value to check for being an `Effect` value.
218
+ *
219
+ * @returns `true` if the specified value is an `Effect` value, `false`
220
+ * otherwise.
221
+ *
222
+ * @since 2.0.0
223
+ * @category refinements
224
+ */
225
+ export declare const isEffect: (u: unknown) => u is Effect<unknown, unknown, unknown>;
226
+ /**
227
+ * Returns an effect that, if evaluated, will return the cached result of this
228
+ * effect. Cached results will expire after `timeToLive` duration.
229
+ *
230
+ * @since 2.0.0
231
+ * @category caching
232
+ */
233
+ export declare const cachedWithTTL: {
234
+ (timeToLive: Duration.DurationInput): <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, Effect<never, E, A>>;
235
+ <R, E, A>(self: Effect<R, E, A>, timeToLive: Duration.DurationInput): Effect<R, never, Effect<never, E, A>>;
236
+ };
237
+ /**
238
+ * Returns an effect that, if evaluated, will return the cached result of this
239
+ * effect. Cached results will expire after `timeToLive` duration. In
240
+ * addition, returns an effect that can be used to invalidate the current
241
+ * cached value before the `timeToLive` duration expires.
242
+ *
243
+ * @since 2.0.0
244
+ * @category caching
245
+ */
246
+ export declare const cachedInvalidateWithTTL: {
247
+ (timeToLive: Duration.DurationInput): <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, [Effect<never, E, A>, Effect<never, never, void>]>;
248
+ <R, E, A>(self: Effect<R, E, A>, timeToLive: Duration.DurationInput): Effect<R, never, [Effect<never, E, A>, Effect<never, never, void>]>;
249
+ };
250
+ /**
251
+ * Returns an effect that, if evaluated, will return the lazily computed
252
+ * result of this effect.
253
+ *
254
+ * @since 2.0.0
255
+ * @category caching
256
+ */
257
+ export declare const cached: <R, E, A>(self: Effect<R, E, A>) => Effect<never, never, Effect<R, E, A>>;
258
+ /**
259
+ * Returns a memoized version of the specified effectual function.
260
+ *
261
+ * @since 2.0.0
262
+ * @category caching
263
+ */
264
+ export declare const cachedFunction: <R, E, A, B>(f: (a: A) => Effect<R, E, B>, eq?: Equivalence<A>) => Effect<never, never, (a: A) => Effect<R, E, B>>;
265
+ /**
266
+ * Returns an effect that will be executed at most once, even if it is
267
+ * evaluated multiple times.
268
+ *
269
+ * @since 2.0.0
270
+ * @category caching
271
+ */
272
+ export declare const once: <R, E, A>(self: Effect<R, E, A>) => Effect<never, never, Effect<R, E, void>>;
273
+ /**
274
+ * Runs all the provided effects in sequence respecting the structure provided in input.
275
+ *
276
+ * Supports multiple arguments, a single argument tuple / array or record / struct.
277
+ *
278
+ * @since 2.0.0
279
+ * @category collecting & elements
280
+ */
281
+ export declare const all: <const Arg extends Iterable<Effect<any, any, any>> | Record<string, Effect<any, any, any>>, O extends {
282
+ readonly concurrency?: Concurrency;
283
+ readonly batching?: boolean | "inherit";
284
+ readonly discard?: boolean;
285
+ readonly mode?: "default" | "validate" | "either";
286
+ }>(arg: Arg, options?: O) => All.Return<Arg, O>;
287
+ /**
288
+ * Data-last variant of `Effect.all`.
289
+ *
290
+ * Runs all the provided effects in sequence respecting the structure provided in input.
291
+ *
292
+ * Supports multiple arguments, a single argument tuple / array or record / struct.
293
+ *
294
+ * @since 2.0.0
295
+ * @category collecting & elements
296
+ */
297
+ export declare const allWith: <O extends {
298
+ readonly concurrency?: Concurrency;
299
+ readonly batching?: boolean | "inherit";
300
+ readonly discard?: boolean;
301
+ readonly mode?: "default" | "validate" | "either";
302
+ }>(options?: O) => <const Arg extends Iterable<Effect<any, any, any>> | Record<string, Effect<any, any, any>>>(arg: Arg) => All.Return<Arg, O>;
303
+ /**
304
+ * @since 2.0.0
305
+ */
306
+ export declare namespace All {
307
+ /**
308
+ * @since 2.0.0
309
+ */
310
+ type EffectAny = Effect<any, any, any>;
311
+ /**
312
+ * @since 2.0.0
313
+ */
314
+ type ReturnIterable<T extends Iterable<EffectAny>, Discard extends boolean, Mode> = [T] extends [
315
+ Iterable<Effect.Variance<infer R, infer E, infer A>>
316
+ ] ? Effect<R, Mode extends "either" ? never : Mode extends "validate" ? Array<Option.Option<E>> : E, Discard extends true ? void : Mode extends "either" ? Array<Either.Either<E, A>> : Array<A>> : never;
317
+ /**
318
+ * @since 2.0.0
319
+ */
320
+ type ReturnTuple<T extends ReadonlyArray<unknown>, Discard extends boolean, Mode> = Effect<T[number] extends never ? never : [T[number]] extends [{
321
+ [EffectTypeId]: {
322
+ _R: (_: never) => infer R;
323
+ };
324
+ }] ? R : never, Mode extends "either" ? never : T[number] extends never ? never : Mode extends "validate" ? {
325
+ -readonly [K in keyof T]: [T[K]] extends [Effect.Variance<infer _R, infer _E, infer _A>] ? Option.Option<_E> : never;
326
+ } : [T[number]] extends [{
327
+ [EffectTypeId]: {
328
+ _E: (_: never) => infer E;
329
+ };
330
+ }] ? E : never, Discard extends true ? void : T[number] extends never ? [] : Mode extends "either" ? {
331
+ -readonly [K in keyof T]: [T[K]] extends [Effect.Variance<infer _R, infer _E, infer _A>] ? Either.Either<_E, _A> : never;
332
+ } : {
333
+ -readonly [K in keyof T]: [T[K]] extends [Effect.Variance<infer _R, infer _E, infer _A>] ? _A : never;
334
+ }> extends infer X ? X : never;
335
+ /**
336
+ * @since 2.0.0
337
+ */
338
+ type ReturnObject<T, Discard extends boolean, Mode> = [T] extends [{
339
+ [K: string]: EffectAny;
340
+ }] ? Effect<keyof T extends never ? never : [T[keyof T]] extends [{
341
+ [EffectTypeId]: {
342
+ _R: (_: never) => infer R;
343
+ };
344
+ }] ? R : never, Mode extends "either" ? never : keyof T extends never ? never : Mode extends "validate" ? {
345
+ -readonly [K in keyof T]: [T[K]] extends [Effect.Variance<infer _R, infer _E, infer _A>] ? Option.Option<_E> : never;
346
+ } : [T[keyof T]] extends [{
347
+ [EffectTypeId]: {
348
+ _E: (_: never) => infer E;
349
+ };
350
+ }] ? E : never, Discard extends true ? void : Mode extends "either" ? {
351
+ -readonly [K in keyof T]: [T[K]] extends [Effect.Variance<infer _R, infer _E, infer _A>] ? Either.Either<_E, _A> : never;
352
+ } : {
353
+ -readonly [K in keyof T]: [T[K]] extends [Effect.Variance<infer _R, infer _E, infer _A>] ? _A : never;
354
+ }> : never;
355
+ /**
356
+ * @since 2.0.0
357
+ */
358
+ type IsDiscard<A> = [Extract<A, {
359
+ readonly discard: true;
360
+ }>] extends [never] ? false : true;
361
+ /**
362
+ * @since 2.0.0
363
+ */
364
+ type ExtractMode<A> = [A] extends [{
365
+ mode: infer M;
366
+ }] ? M : "default";
367
+ /**
368
+ * @since 2.0.0
369
+ */
370
+ type Return<Arg extends Iterable<EffectAny> | Record<string, EffectAny>, O extends {
371
+ readonly concurrency?: Concurrency;
372
+ readonly batching?: boolean | "inherit";
373
+ readonly discard?: boolean;
374
+ readonly mode?: "default" | "validate" | "either";
375
+ }> = [Arg] extends [ReadonlyArray<EffectAny>] ? ReturnTuple<Arg, IsDiscard<O>, ExtractMode<O>> : [Arg] extends [Iterable<EffectAny>] ? ReturnIterable<Arg, IsDiscard<O>, ExtractMode<O>> : [Arg] extends [Record<string, EffectAny>] ? ReturnObject<Arg, IsDiscard<O>, ExtractMode<O>> : never;
376
+ }
377
+ /**
378
+ * Evaluate and run each effect in the structure and collect the results,
379
+ * discarding results from failed effects.
380
+ *
381
+ * @since 2.0.0
382
+ * @category collecting & elements
383
+ */
384
+ export declare const allSuccesses: <R, E, A>(elements: Iterable<Effect<R, E, A>>, options?: {
385
+ readonly concurrency?: Concurrency;
386
+ readonly batching?: boolean | "inherit";
387
+ }) => Effect<R, never, Array<A>>;
388
+ /**
389
+ * Drops all elements until the effectful predicate returns true.
390
+ *
391
+ * @since 2.0.0
392
+ * @category collecting & elements
393
+ */
394
+ export declare const dropUntil: {
395
+ <A, R, E>(predicate: (a: A, i: number) => Effect<R, E, boolean>): (elements: Iterable<A>) => Effect<R, E, Array<A>>;
396
+ <A, R, E>(elements: Iterable<A>, predicate: (a: A, i: number) => Effect<R, E, boolean>): Effect<R, E, Array<A>>;
397
+ };
398
+ /**
399
+ * Drops all elements so long as the predicate returns true.
400
+ *
401
+ * @since 2.0.0
402
+ * @category collecting & elements
403
+ */
404
+ export declare const dropWhile: {
405
+ <R, E, A>(f: (a: A, i: number) => Effect<R, E, boolean>): (elements: Iterable<A>) => Effect<R, E, Array<A>>;
406
+ <R, E, A>(elements: Iterable<A>, f: (a: A, i: number) => Effect<R, E, boolean>): Effect<R, E, Array<A>>;
407
+ };
408
+ /**
409
+ * Determines whether all elements of the `Collection<A>` satisfies the effectual
410
+ * predicate `f`.
411
+ *
412
+ * @since 2.0.0
413
+ * @category collecting & elements
414
+ */
415
+ export declare const every: {
416
+ <R, E, A>(f: (a: A, i: number) => Effect<R, E, boolean>): (elements: Iterable<A>) => Effect<R, E, boolean>;
417
+ <R, E, A>(elements: Iterable<A>, f: (a: A, i: number) => Effect<R, E, boolean>): Effect<R, E, boolean>;
418
+ };
419
+ /**
420
+ * Determines whether any element of the `Iterable<A>` satisfies the effectual
421
+ * predicate `f`.
422
+ *
423
+ * @since 2.0.0
424
+ * @category collecting & elements
425
+ */
426
+ export declare const exists: {
427
+ <R, E, A>(f: (a: A, i: number) => Effect<R, E, boolean>, options?: {
428
+ readonly concurrency?: Concurrency;
429
+ readonly batching?: boolean | "inherit";
430
+ }): (elements: Iterable<A>) => Effect<R, E, boolean>;
431
+ <R, E, A>(elements: Iterable<A>, f: (a: A, i: number) => Effect<R, E, boolean>, options?: {
432
+ readonly concurrency: Concurrency;
433
+ readonly batching?: boolean | "inherit";
434
+ }): Effect<R, E, boolean>;
435
+ };
436
+ /**
437
+ * Filters the collection using the specified effectful predicate.
438
+ *
439
+ * @since 2.0.0
440
+ * @category collecting & elements
441
+ */
442
+ export declare const filter: {
443
+ <A, R, E>(f: (a: A, i: number) => Effect<R, E, boolean>, options?: {
444
+ readonly concurrency?: Concurrency;
445
+ readonly batching?: boolean | "inherit";
446
+ readonly negate?: boolean;
447
+ }): (elements: Iterable<A>) => Effect<R, E, Array<A>>;
448
+ <A, R, E>(elements: Iterable<A>, f: (a: A, i: number) => Effect<R, E, boolean>, options?: {
449
+ readonly concurrency?: Concurrency;
450
+ readonly batching?: boolean | "inherit";
451
+ readonly negate?: boolean;
452
+ }): Effect<R, E, Array<A>>;
453
+ };
454
+ /**
455
+ * Returns the first element that satisfies the effectful predicate.
456
+ *
457
+ * @since 2.0.0
458
+ * @category collecting & elements
459
+ */
460
+ export declare const findFirst: {
461
+ <A, R, E>(f: (a: A, i: number) => Effect<R, E, boolean>): (elements: Iterable<A>) => Effect<R, E, Option.Option<A>>;
462
+ <A, R, E>(elements: Iterable<A>, f: (a: A, i: number) => Effect<R, E, boolean>): Effect<R, E, Option.Option<A>>;
463
+ };
464
+ /**
465
+ * This function takes an iterable of `Effect` values and returns a new
466
+ * `Effect` value that represents the first `Effect` value in the iterable
467
+ * that succeeds. If all of the `Effect` values in the iterable fail, then
468
+ * the resulting `Effect` value will fail as well.
469
+ *
470
+ * This function is sequential, meaning that the `Effect` values in the
471
+ * iterable will be executed in sequence, and the first one that succeeds
472
+ * will determine the outcome of the resulting `Effect` value.
473
+ *
474
+ * @param effects - The iterable of `Effect` values to evaluate.
475
+ *
476
+ * @returns A new `Effect` value that represents the first successful
477
+ * `Effect` value in the iterable, or a failed `Effect` value if all of the
478
+ * `Effect` values in the iterable fail.
479
+ *
480
+ * @since 2.0.0
481
+ * @category collecting & elements
482
+ */
483
+ export declare const firstSuccessOf: <R, E, A>(effects: Iterable<Effect<R, E, A>>) => Effect<R, E, A>;
484
+ /**
485
+ * @since 2.0.0
486
+ * @category collecting & elements
487
+ */
488
+ export declare const forEach: {
489
+ <A, R, E, B>(f: (a: A, i: number) => Effect<R, E, B>, options?: {
490
+ readonly concurrency?: Concurrency;
491
+ readonly batching?: boolean | "inherit";
492
+ readonly discard?: false;
493
+ }): (self: Iterable<A>) => Effect<R, E, Array<B>>;
494
+ <A, R, E, B>(f: (a: A, i: number) => Effect<R, E, B>, options: {
495
+ readonly concurrency?: Concurrency;
496
+ readonly batching?: boolean | "inherit";
497
+ readonly discard: true;
498
+ }): (self: Iterable<A>) => Effect<R, E, void>;
499
+ <A, R, E, B>(self: Iterable<A>, f: (a: A, i: number) => Effect<R, E, B>, options?: {
500
+ readonly concurrency?: Concurrency;
501
+ readonly batching?: boolean | "inherit";
502
+ readonly discard?: false;
503
+ }): Effect<R, E, Array<B>>;
504
+ <A, R, E, B>(self: Iterable<A>, f: (a: A, i: number) => Effect<R, E, B>, options: {
505
+ readonly concurrency?: Concurrency;
506
+ readonly batching?: boolean | "inherit";
507
+ readonly discard: true;
508
+ }): Effect<R, E, void>;
509
+ };
510
+ /**
511
+ * Returns a successful effect with the head of the collection if the collection
512
+ * is non-empty, or fails with the error `None` if the collection is empty.
513
+ *
514
+ * @since 2.0.0
515
+ * @category collecting & elements
516
+ */
517
+ export declare const head: <R, E, A>(self: Effect<R, E, Iterable<A>>) => Effect<R, Option.Option<E>, A>;
518
+ /**
519
+ * Merges an `Iterable<Effect<R, E, A>>` to a single effect, working
520
+ * sequentially.
521
+ *
522
+ * @since 2.0.0
523
+ * @category collecting & elements
524
+ */
525
+ export declare const mergeAll: {
526
+ <Z, A>(zero: Z, f: (z: Z, a: A, i: number) => Z, options?: {
527
+ readonly concurrency?: Concurrency;
528
+ readonly batching?: boolean | "inherit";
529
+ }): <R, E>(elements: Iterable<Effect<R, E, A>>) => Effect<R, E, Z>;
530
+ <R, E, A, Z>(elements: Iterable<Effect<R, E, A>>, zero: Z, f: (z: Z, a: A, i: number) => Z, options?: {
531
+ readonly concurrency?: Concurrency;
532
+ readonly batching?: boolean | "inherit";
533
+ }): Effect<R, E, Z>;
534
+ };
535
+ /**
536
+ * Feeds elements of type `A` to a function `f` that returns an effect.
537
+ * Collects all successes and failures in a tupled fashion.
538
+ *
539
+ * @since 2.0.0
540
+ * @category collecting & elements
541
+ */
542
+ export declare const partition: {
543
+ <R, E, A, B>(f: (a: A) => Effect<R, E, B>, options?: {
544
+ readonly concurrency?: Concurrency;
545
+ readonly batching?: boolean | "inherit";
546
+ }): (elements: Iterable<A>) => Effect<R, never, readonly [Array<E>, Array<B>]>;
547
+ <R, E, A, B>(elements: Iterable<A>, f: (a: A) => Effect<R, E, B>, options?: {
548
+ readonly concurrency?: Concurrency;
549
+ readonly batching?: boolean | "inherit";
550
+ }): Effect<R, never, readonly [Array<E>, Array<B>]>;
551
+ };
552
+ /**
553
+ * Folds an `Iterable<A>` using an effectual function f, working sequentially
554
+ * from left to right.
555
+ *
556
+ * @since 2.0.0
557
+ * @category collecting & elements
558
+ */
559
+ export declare const reduce: {
560
+ <Z, A, R, E>(zero: Z, f: (z: Z, a: A, i: number) => Effect<R, E, Z>): (elements: Iterable<A>) => Effect<R, E, Z>;
561
+ <Z, A, R, E>(elements: Iterable<A>, zero: Z, f: (z: Z, a: A, i: number) => Effect<R, E, Z>): Effect<R, E, Z>;
562
+ };
563
+ /**
564
+ * Reduces an `Iterable<Effect<R, E, A>>` to a single effect.
565
+ *
566
+ * @since 2.0.0
567
+ * @category collecting & elements
568
+ */
569
+ export declare const reduceEffect: {
570
+ <R, E, A>(zero: Effect<R, E, A>, f: (acc: A, a: A, i: number) => A, options?: {
571
+ readonly concurrency?: Concurrency;
572
+ readonly batching?: boolean | "inherit";
573
+ }): (elements: Iterable<Effect<R, E, A>>) => Effect<R, E, A>;
574
+ <R, E, A>(elements: Iterable<Effect<R, E, A>>, zero: Effect<R, E, A>, f: (acc: A, a: A, i: number) => A, options?: {
575
+ readonly concurrency?: Concurrency;
576
+ readonly batching?: boolean | "inherit";
577
+ }): Effect<R, E, A>;
578
+ };
579
+ /**
580
+ * Folds an `Iterable<A>` using an effectual function f, working sequentially from left to right.
581
+ *
582
+ * @since 2.0.0
583
+ * @category collecting & elements
584
+ */
585
+ export declare const reduceRight: {
586
+ <A, Z, R, E>(zero: Z, f: (a: A, z: Z, i: number) => Effect<R, E, Z>): (elements: Iterable<A>) => Effect<R, E, Z>;
587
+ <A, Z, R, E>(elements: Iterable<A>, zero: Z, f: (a: A, z: Z, i: number) => Effect<R, E, Z>): Effect<R, E, Z>;
588
+ };
589
+ /**
590
+ * Folds over the elements in this chunk from the left, stopping the fold early
591
+ * when the predicate is not satisfied.
592
+ *
593
+ * @since 2.0.0
594
+ * @category collecting & elements
595
+ */
596
+ export declare const reduceWhile: {
597
+ <A, R, E, Z>(zero: Z, options: {
598
+ readonly while: Predicate<Z>;
599
+ readonly body: (s: Z, a: A, i: number) => Effect<R, E, Z>;
600
+ }): (elements: Iterable<A>) => Effect<R, E, Z>;
601
+ <A, R, E, Z>(elements: Iterable<A>, zero: Z, options: {
602
+ readonly while: Predicate<Z>;
603
+ readonly body: (s: Z, a: A, i: number) => Effect<R, E, Z>;
604
+ }): Effect<R, E, Z>;
605
+ };
606
+ /**
607
+ * Replicates the given effect `n` times.
608
+ *
609
+ * @since 2.0.0
610
+ * @category collecting & elements
611
+ */
612
+ export declare const replicate: {
613
+ (n: number): <R, E, A>(self: Effect<R, E, A>) => Array<Effect<R, E, A>>;
614
+ <R, E, A>(self: Effect<R, E, A>, n: number): Array<Effect<R, E, A>>;
615
+ };
616
+ /**
617
+ * Performs this effect the specified number of times and collects the
618
+ * results.
619
+ *
620
+ * @since 2.0.0
621
+ * @category collecting & elements
622
+ */
623
+ export declare const replicateEffect: {
624
+ (n: number, options?: {
625
+ readonly concurrency?: Concurrency;
626
+ readonly batching?: boolean | "inherit";
627
+ readonly discard?: false;
628
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, Array<A>>;
629
+ (n: number, options: {
630
+ readonly concurrency?: Concurrency;
631
+ readonly batching?: boolean | "inherit";
632
+ readonly discard: true;
633
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, void>;
634
+ <R, E, A>(self: Effect<R, E, A>, n: number, options?: {
635
+ readonly concurrency?: Concurrency;
636
+ readonly batching?: boolean | "inherit";
637
+ readonly discard?: false;
638
+ }): Effect<R, E, Array<A>>;
639
+ <R, E, A>(self: Effect<R, E, A>, n: number, options: {
640
+ readonly concurrency?: Concurrency;
641
+ readonly batching?: boolean | "inherit";
642
+ readonly discard: true;
643
+ }): Effect<R, E, void>;
644
+ };
645
+ /**
646
+ * Takes elements until the effectual predicate returns true.
647
+ *
648
+ * @since 2.0.0
649
+ * @category collecting & elements
650
+ */
651
+ export declare const takeUntil: {
652
+ <R, E, A>(predicate: (a: A, i: number) => Effect<R, E, boolean>): (elements: Iterable<A>) => Effect<R, E, Array<A>>;
653
+ <R, E, A>(elements: Iterable<A>, predicate: (a: A, i: number) => Effect<R, E, boolean>): Effect<R, E, Array<A>>;
654
+ };
655
+ /**
656
+ * Takes all elements so long as the effectual predicate returns true.
657
+ *
658
+ * @since 2.0.0
659
+ * @category collecting & elements
660
+ */
661
+ export declare const takeWhile: {
662
+ <R, E, A>(predicate: (a: A, i: number) => Effect<R, E, boolean>): (elements: Iterable<A>) => Effect<R, E, Array<A>>;
663
+ <R, E, A>(elements: Iterable<A>, predicate: (a: A, i: number) => Effect<R, E, boolean>): Effect<R, E, Array<A>>;
664
+ };
665
+ /**
666
+ * Feeds elements of type `A` to `f` and accumulates all errors in error
667
+ * channel or successes in success channel.
668
+ *
669
+ * This combinator is lossy meaning that if there are errors all successes
670
+ * will be lost. To retain all information please use `partition`.
671
+ *
672
+ * @since 2.0.0
673
+ * @category collecting & elements
674
+ */
675
+ export declare const validateAll: {
676
+ <R, E, A, B>(f: (a: A, i: number) => Effect<R, E, B>, options?: {
677
+ readonly concurrency?: Concurrency;
678
+ readonly batching?: boolean | "inherit";
679
+ readonly discard?: false;
680
+ }): (elements: Iterable<A>) => Effect<R, Array<E>, Array<B>>;
681
+ <R, E, A, B>(f: (a: A, i: number) => Effect<R, E, B>, options: {
682
+ readonly concurrency?: Concurrency;
683
+ readonly batching?: boolean | "inherit";
684
+ readonly discard: true;
685
+ }): (elements: Iterable<A>) => Effect<R, Array<E>, void>;
686
+ <R, E, A, B>(elements: Iterable<A>, f: (a: A, i: number) => Effect<R, E, B>, options?: {
687
+ readonly concurrency?: Concurrency;
688
+ readonly batching?: boolean | "inherit";
689
+ readonly discard?: false;
690
+ }): Effect<R, Array<E>, Array<B>>;
691
+ <R, E, A, B>(elements: Iterable<A>, f: (a: A, i: number) => Effect<R, E, B>, options: {
692
+ readonly concurrency?: Concurrency;
693
+ readonly batching?: boolean | "inherit";
694
+ readonly discard: true;
695
+ }): Effect<R, Array<E>, void>;
696
+ };
697
+ /**
698
+ * Feeds elements of type `A` to `f` until it succeeds. Returns first success
699
+ * or the accumulation of all errors.
700
+ *
701
+ * If `elements` is empty then `Effect.fail([])` is returned.
702
+ *
703
+ * @example
704
+ * import * as Effect from "effect/Effect"
705
+ * import * as Exit from "effect/Exit"
706
+ *
707
+ * const f = (n: number) => (n > 0 ? Effect.succeed(n) : Effect.fail(`${n} is negative`))
708
+ *
709
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([], f)), Exit.fail([]))
710
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([1, 2], f)), Exit.succeed(1))
711
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([1, -1], f)), Exit.succeed(1))
712
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([-1, 2], f)), Exit.succeed(2))
713
+ * assert.deepStrictEqual(Effect.runSyncExit(Effect.validateFirst([-1, -2], f)), Exit.fail(['-1 is negative', '-2 is negative']))
714
+ *
715
+ * @since 2.0.0
716
+ * @category collecting & elements
717
+ */
718
+ export declare const validateFirst: {
719
+ <R, E, A, B>(f: (a: A, i: number) => Effect<R, E, B>, options?: {
720
+ readonly concurrency?: Concurrency;
721
+ readonly batching?: boolean | "inherit";
722
+ }): (elements: Iterable<A>) => Effect<R, Array<E>, B>;
723
+ <R, E, A, B>(elements: Iterable<A>, f: (a: A, i: number) => Effect<R, E, B>, options?: {
724
+ readonly concurrency?: Concurrency;
725
+ readonly batching?: boolean | "inherit";
726
+ }): Effect<R, Array<E>, B>;
727
+ };
728
+ /**
729
+ * Imports an asynchronous side-effect into a pure `Effect` value.
730
+ * The callback function `Effect<R, E, A> => void` must be called at most once.
731
+ *
732
+ * If an Effect is returned by the registration function, it will be executed
733
+ * if the fiber executing the effect is interrupted.
734
+ *
735
+ * The registration function can also receive an `AbortSignal` if required for
736
+ * interruption.
737
+ *
738
+ * The `FiberId` of the fiber that may complete the async callback may be
739
+ * provided to allow for better diagnostics.
740
+ *
741
+ * @since 2.0.0
742
+ * @category constructors
743
+ */
744
+ export declare const async: <R, E, A>(register: (callback: (_: Effect<R, E, A>) => void, signal: AbortSignal) => void | Effect<R, never, void>, blockingOn?: FiberId.FiberId) => Effect<R, E, A>;
745
+ /**
746
+ * Converts an asynchronous, callback-style API into an `Effect`, which will
747
+ * be executed asynchronously.
748
+ *
749
+ * With this variant, the registration function may return a an `Effect`.
750
+ *
751
+ * @since 2.0.0
752
+ * @category constructors
753
+ */
754
+ export declare const asyncEffect: <R, E, A, R2, E2, X>(register: (callback: (_: Effect<R, E, A>) => void) => Effect<R2, E2, X>) => Effect<R | R2, E | E2, A>;
755
+ /**
756
+ * Imports an asynchronous effect into a pure `Effect` value, possibly returning
757
+ * the value synchronously.
758
+ *
759
+ * If the register function returns a value synchronously, then the callback
760
+ * function `Effect<R, E, A> => void` must not be called. Otherwise the callback
761
+ * function must be called at most once.
762
+ *
763
+ * The `FiberId` of the fiber that may complete the async callback may be
764
+ * provided to allow for better diagnostics.
765
+ *
766
+ * @since 2.0.0
767
+ * @category constructors
768
+ */
769
+ export declare const asyncOption: <R, E, A>(register: (callback: (_: Effect<R, E, A>) => void) => Option.Option<Effect<R, E, A>>, blockingOn?: FiberId.FiberId) => Effect<R, E, A>;
770
+ /**
771
+ * Imports an asynchronous side-effect into an effect. It has the option of
772
+ * returning the value synchronously, which is useful in cases where it cannot
773
+ * be determined if the effect is synchronous or asynchronous until the register
774
+ * is actually executed. It also has the option of returning a canceler,
775
+ * which will be used by the runtime to cancel the asynchronous effect if the fiber
776
+ * executing the effect is interrupted.
777
+ *
778
+ * If the register function returns a value synchronously, then the callback
779
+ * function `Effect<R, E, A> => void` must not be called. Otherwise the callback
780
+ * function must be called at most once.
781
+ *
782
+ * The `FiberId` of the fiber that may complete the async callback may be
783
+ * provided to allow for better diagnostics.
784
+ *
785
+ * @since 2.0.0
786
+ * @category constructors
787
+ */
788
+ export declare const asyncEither: <R, E, A>(register: (callback: (effect: Effect<R, E, A>) => void) => Either.Either<Effect<R, never, void>, Effect<R, E, A>>, blockingOn?: FiberId.FiberId) => Effect<R, E, A>;
789
+ /**
790
+ * @since 2.0.0
791
+ * @category constructors
792
+ */
793
+ export declare const fail: <E>(error: E) => Effect<never, E, never>;
794
+ /**
795
+ * @since 2.0.0
796
+ * @category constructors
797
+ */
798
+ export declare const failSync: <E>(evaluate: LazyArg<E>) => Effect<never, E, never>;
799
+ /**
800
+ * @since 2.0.0
801
+ * @category constructors
802
+ */
803
+ export declare const failCause: <E>(cause: Cause.Cause<E>) => Effect<never, E, never>;
804
+ /**
805
+ * @since 2.0.0
806
+ * @category constructors
807
+ */
808
+ export declare const failCauseSync: <E>(evaluate: LazyArg<Cause.Cause<E>>) => Effect<never, E, never>;
809
+ /**
810
+ * @since 2.0.0
811
+ * @category constructors
812
+ */
813
+ export declare const die: (defect: unknown) => Effect<never, never, never>;
814
+ /**
815
+ * Returns an effect that dies with a `RuntimeException` having the specified
816
+ * text message. This method can be used for terminating a fiber because a
817
+ * defect has been detected in the code.
818
+ *
819
+ * @since 2.0.0
820
+ * @category constructors
821
+ */
822
+ export declare const dieMessage: (message: string) => Effect<never, never, never>;
823
+ /**
824
+ * @since 2.0.0
825
+ * @category constructors
826
+ */
827
+ export declare const dieSync: (evaluate: LazyArg<unknown>) => Effect<never, never, never>;
828
+ /**
829
+ * @since 2.0.0
830
+ * @category constructors
831
+ */
832
+ export declare const gen: {
833
+ <Eff extends EffectGen<any, any, any>, AEff>(f: (resume: Adapter) => Generator<Eff, AEff, any>): Effect<[
834
+ Eff
835
+ ] extends [never] ? never : [Eff] extends [EffectGen<infer R, any, any>] ? R : never, [
836
+ Eff
837
+ ] extends [never] ? never : [Eff] extends [EffectGen<any, infer E, any>] ? E : never, AEff>;
838
+ <Self, Eff extends EffectGen<any, any, any>, AEff>(self: Self, f: (this: Self, resume: Adapter) => Generator<Eff, AEff, any>): Effect<[
839
+ Eff
840
+ ] extends [never] ? never : [Eff] extends [EffectGen<infer R, any, any>] ? R : never, [
841
+ Eff
842
+ ] extends [never] ? never : [Eff] extends [EffectGen<any, infer E, any>] ? E : never, AEff>;
843
+ };
844
+ /**
845
+ * @category models
846
+ * @since 2.0.0
847
+ */
848
+ export interface EffectGen<R, E, A> {
849
+ readonly _R: () => R;
850
+ readonly _E: () => E;
851
+ readonly _A: () => A;
852
+ readonly value: Effect<R, E, A>;
853
+ [Symbol.iterator](): Generator<EffectGen<R, E, A>, A>;
854
+ }
855
+ /**
856
+ * @since 2.0.0
857
+ * @category models
858
+ */
859
+ export interface Adapter {
860
+ <R, E, A>(self: Effect<R, E, A>): EffectGen<R, E, A>;
861
+ <A, _R, _E, _A>(a: A, ab: (a: A) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
862
+ <A, B, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
863
+ <A, B, C, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
864
+ <A, B, C, D, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
865
+ <A, B, C, D, E, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
866
+ <A, B, C, D, E, F, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
867
+ <A, B, C, D, E, F, G, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
868
+ <A, B, C, D, E, F, G, H, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (g: H) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
869
+ <A, B, C, D, E, F, G, H, I, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
870
+ <A, B, C, D, E, F, G, H, I, J, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
871
+ <A, B, C, D, E, F, G, H, I, J, K, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
872
+ <A, B, C, D, E, F, G, H, I, J, K, L, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
873
+ <A, B, C, D, E, F, G, H, I, J, K, L, M, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
874
+ <A, B, C, D, E, F, G, H, I, J, K, L, M, N, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
875
+ <A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => O, op: (o: O) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
876
+ <A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => O, op: (o: O) => P, pq: (p: P) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
877
+ <A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => O, op: (o: O) => P, pq: (p: P) => Q, qr: (q: Q) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
878
+ <A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => O, op: (o: O) => P, pq: (p: P) => Q, qr: (q: Q) => R, rs: (r: R) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
879
+ <A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => O, op: (o: O) => P, pq: (p: P) => Q, qr: (q: Q) => R, rs: (r: R) => S, st: (s: S) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
880
+ <A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, _R, _E, _A>(a: A, ab: (a: A) => B, bc: (b: B) => C, cd: (c: C) => D, de: (d: D) => E, ef: (e: E) => F, fg: (f: F) => G, gh: (g: G) => H, hi: (h: H) => I, ij: (i: I) => J, jk: (j: J) => K, kl: (k: K) => L, lm: (l: L) => M, mn: (m: M) => N, no: (n: N) => O, op: (o: O) => P, pq: (p: P) => Q, qr: (q: Q) => R, rs: (r: R) => S, st: (s: S) => T, tu: (s: T) => Effect<_R, _E, _A>): EffectGen<_R, _E, _A>;
881
+ }
882
+ /**
883
+ * Returns a effect that will never produce anything. The moral equivalent of
884
+ * `while(true) {}`, only without the wasted CPU cycles.
885
+ *
886
+ * @since 2.0.0
887
+ * @category constructors
888
+ */
889
+ export declare const never: Effect<never, never, never>;
890
+ /**
891
+ * Requires the option produced by this value to be `None`.
892
+ *
893
+ * @since 2.0.0
894
+ * @category constructors
895
+ */
896
+ export declare const none: <R, E, A>(self: Effect<R, E, Option.Option<A>>) => Effect<R, Option.Option<E>, void>;
897
+ /**
898
+ * Like `tryPromise` but produces a defect in case of errors.
899
+ *
900
+ * An optional `AbortSignal` can be provided to allow for interruption of the
901
+ * wrapped Promise api.
902
+ *
903
+ * @since 2.0.0
904
+ * @category constructors
905
+ */
906
+ export declare const promise: <A>(evaluate: (signal: AbortSignal) => Promise<A>) => Effect<never, never, A>;
907
+ /**
908
+ * @since 2.0.0
909
+ * @category constructors
910
+ */
911
+ export declare const succeed: <A>(value: A) => Effect<never, never, A>;
912
+ /**
913
+ * Returns an effect which succeeds with `None`.
914
+ *
915
+ * @since 2.0.0
916
+ * @category constructors
917
+ */
918
+ export declare const succeedNone: Effect<never, never, Option.Option<never>>;
919
+ /**
920
+ * Returns an effect which succeeds with the value wrapped in a `Some`.
921
+ *
922
+ * @since 2.0.0
923
+ * @category constructors
924
+ */
925
+ export declare const succeedSome: <A>(value: A) => Effect<never, never, Option.Option<A>>;
926
+ /**
927
+ * @since 2.0.0
928
+ * @category constructors
929
+ */
930
+ export declare const suspend: <R, E, A>(effect: LazyArg<Effect<R, E, A>>) => Effect<R, E, A>;
931
+ /**
932
+ * @since 2.0.0
933
+ * @category constructors
934
+ */
935
+ export declare const sync: <A>(evaluate: LazyArg<A>) => Effect<never, never, A>;
936
+ /**
937
+ * @since 2.0.0
938
+ * @category constructors
939
+ */
940
+ export declare const unit: Effect<never, never, void>;
941
+ /**
942
+ * @since 2.0.0
943
+ * @category constructors
944
+ */
945
+ export declare const yieldNow: (options?: {
946
+ readonly priority?: number;
947
+ }) => Effect<never, never, void>;
948
+ declare const _catch: {
949
+ <N extends keyof E, K extends E[N] & string, E, R1, E1, A1>(discriminator: N, options: {
950
+ readonly failure: K;
951
+ readonly onFailure: (error: Extract<E, {
952
+ [n in N]: K;
953
+ }>) => Effect<R1, E1, A1>;
954
+ }): <R, A>(self: Effect<R, E, A>) => Effect<R1 | R, E1 | Exclude<E, {
955
+ [n in N]: K;
956
+ }>, A1 | A>;
957
+ <R, E, A, N extends keyof E, K extends E[N] & string, R1, E1, A1>(self: Effect<R, E, A>, discriminator: N, options: {
958
+ readonly failure: K;
959
+ readonly onFailure: (error: Extract<E, {
960
+ [n in N]: K;
961
+ }>) => Effect<R1, E1, A1>;
962
+ }): Effect<R | R1, E1 | Exclude<E, {
963
+ [n in N]: K;
964
+ }>, A | A1>;
965
+ };
966
+ export {
967
+ /**
968
+ * Recovers from specified error.
969
+ *
970
+ * @since 2.0.0
971
+ * @category error handling
972
+ */
973
+ _catch as catch };
974
+ /**
975
+ * Recovers from all recoverable errors.
976
+ *
977
+ * **Note**: that `Effect.catchAll` will not recover from unrecoverable defects. To
978
+ * recover from both recoverable and unrecoverable errors use
979
+ * `Effect.catchAllCause`.
980
+ *
981
+ * @since 2.0.0
982
+ * @category error handling
983
+ */
984
+ export declare const catchAll: {
985
+ <E, R2, E2, A2>(f: (e: E) => Effect<R2, E2, A2>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2, A2 | A>;
986
+ <R, A, E, R2, E2, A2>(self: Effect<R, E, A>, f: (e: E) => Effect<R2, E2, A2>): Effect<R | R2, E2, A | A2>;
987
+ };
988
+ /**
989
+ * Recovers from both recoverable and unrecoverable errors.
990
+ *
991
+ * See `absorb`, `sandbox`, `mapErrorCause` for other functions that can
992
+ * recover from defects.
993
+ *
994
+ * @since 2.0.0
995
+ * @category error handling
996
+ */
997
+ export declare const catchAllCause: {
998
+ <E, R2, E2, A2>(f: (cause: Cause.Cause<E>) => Effect<R2, E2, A2>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2, A2 | A>;
999
+ <R, A, E, R2, E2, A2>(self: Effect<R, E, A>, f: (cause: Cause.Cause<E>) => Effect<R2, E2, A2>): Effect<R | R2, E2, A | A2>;
1000
+ };
1001
+ /**
1002
+ * Recovers from all defects with provided function.
1003
+ *
1004
+ * **WARNING**: There is no sensible way to recover from defects. This
1005
+ * method should be used only at the boundary between Effect and an external
1006
+ * system, to transmit information on a defect for diagnostic or explanatory
1007
+ * purposes.
1008
+ *
1009
+ * @since 2.0.0
1010
+ * @category error handling
1011
+ */
1012
+ export declare const catchAllDefect: {
1013
+ <R2, E2, A2>(f: (defect: unknown) => Effect<R2, E2, A2>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A2 | A>;
1014
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, f: (defect: unknown) => Effect<R2, E2, A2>): Effect<R | R2, E | E2, A | A2>;
1015
+ };
1016
+ /**
1017
+ * Recovers from errors that match the given predicate.
1018
+ *
1019
+ * @since 2.0.0
1020
+ * @category error handling
1021
+ */
1022
+ export declare const catchIf: {
1023
+ <E, EA extends E, EB extends EA, R2, E2, A2>(refinement: Refinement<EA, EB>, f: (e: EB) => Effect<R2, E2, A2>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | Exclude<E, EB>, A2 | A>;
1024
+ <E, EX extends E, R2, E2, A2>(predicate: Predicate<EX>, f: (e: EX) => Effect<R2, E2, A2>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E | E2, A2 | A>;
1025
+ <R, E, A, EA extends E, EB extends EA, R2, E2, A2>(self: Effect<R, E, A>, refinement: Refinement<EA, EB>, f: (e: EB) => Effect<R2, E2, A2>): Effect<R | R2, E2 | Exclude<E, EB>, A | A2>;
1026
+ <R, E, A, EX extends E, R2, E2, A2>(self: Effect<R, E, A>, predicate: Predicate<EX>, f: (e: EX) => Effect<R2, E2, A2>): Effect<R | R2, E | E2, A | A2>;
1027
+ };
1028
+ /**
1029
+ * Recovers from some or all of the error cases.
1030
+ *
1031
+ * @since 2.0.0
1032
+ * @category error handling
1033
+ */
1034
+ export declare const catchSome: {
1035
+ <E, R2, E2, A2>(pf: (e: E) => Option.Option<Effect<R2, E2, A2>>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E | E2, A2 | A>;
1036
+ <R, A, E, R2, E2, A2>(self: Effect<R, E, A>, pf: (e: E) => Option.Option<Effect<R2, E2, A2>>): Effect<R | R2, E | E2, A | A2>;
1037
+ };
1038
+ /**
1039
+ * Recovers from some or all of the error cases with provided cause.
1040
+ *
1041
+ * @since 2.0.0
1042
+ * @category error handling
1043
+ */
1044
+ export declare const catchSomeCause: {
1045
+ <E, R2, E2, A2>(f: (cause: Cause.Cause<E>) => Option.Option<Effect<R2, E2, A2>>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E | E2, A2 | A>;
1046
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, f: (cause: Cause.Cause<E>) => Option.Option<Effect<R2, E2, A2>>): Effect<R | R2, E | E2, A | A2>;
1047
+ };
1048
+ /**
1049
+ * Recovers from some or all of the defects with provided partial function.
1050
+ *
1051
+ * **WARNING**: There is no sensible way to recover from defects. This
1052
+ * method should be used only at the boundary between Effect and an external
1053
+ * system, to transmit information on a defect for diagnostic or explanatory
1054
+ * purposes.
1055
+ *
1056
+ * @since 2.0.0
1057
+ * @category error handling
1058
+ */
1059
+ export declare const catchSomeDefect: {
1060
+ <R2, E2, A2>(pf: (defect: unknown) => Option.Option<Effect<R2, E2, A2>>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A2 | A>;
1061
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, pf: (defect: unknown) => Option.Option<Effect<R2, E2, A2>>): Effect<R | R2, E | E2, A | A2>;
1062
+ };
1063
+ /**
1064
+ * Recovers from the specified tagged error.
1065
+ *
1066
+ * @since 2.0.0
1067
+ * @category error handling
1068
+ */
1069
+ export declare const catchTag: {
1070
+ <K extends (E extends {
1071
+ _tag: string;
1072
+ } ? E["_tag"] : never), E, R1, E1, A1>(k: K, f: (e: Extract<E, {
1073
+ _tag: K;
1074
+ }>) => Effect<R1, E1, A1>): <R, A>(self: Effect<R, E, A>) => Effect<R1 | R, E1 | Exclude<E, {
1075
+ _tag: K;
1076
+ }>, A1 | A>;
1077
+ <R, E, A, K extends (E extends {
1078
+ _tag: string;
1079
+ } ? E["_tag"] : never), R1, E1, A1>(self: Effect<R, E, A>, k: K, f: (e: Extract<E, {
1080
+ _tag: K;
1081
+ }>) => Effect<R1, E1, A1>): Effect<R | R1, E1 | Exclude<E, {
1082
+ _tag: K;
1083
+ }>, A | A1>;
1084
+ };
1085
+ /**
1086
+ * Recovers from the specified tagged errors.
1087
+ *
1088
+ * @since 2.0.0
1089
+ * @category error handling
1090
+ */
1091
+ export declare const catchTags: {
1092
+ <E, Cases extends (E extends {
1093
+ _tag: string;
1094
+ } ? {
1095
+ [K in E["_tag"]]+?: ((error: Extract<E, {
1096
+ _tag: K;
1097
+ }>) => Effect<any, any, any>);
1098
+ } : {})>(cases: Cases): <R, A>(self: Effect<R, E, A>) => Effect<R | {
1099
+ [K in keyof Cases]: Cases[K] extends (...args: Array<any>) => Effect<infer R, any, any> ? R : never;
1100
+ }[keyof Cases], Exclude<E, {
1101
+ _tag: keyof Cases;
1102
+ }> | {
1103
+ [K in keyof Cases]: Cases[K] extends (...args: Array<any>) => Effect<any, infer E, any> ? E : never;
1104
+ }[keyof Cases], A | {
1105
+ [K in keyof Cases]: Cases[K] extends (...args: Array<any>) => Effect<any, any, infer A> ? A : never;
1106
+ }[keyof Cases]>;
1107
+ <R, E, A, Cases extends (E extends {
1108
+ _tag: string;
1109
+ } ? {
1110
+ [K in E["_tag"]]+?: ((error: Extract<E, {
1111
+ _tag: K;
1112
+ }>) => Effect<any, any, any>);
1113
+ } : {})>(self: Effect<R, E, A>, cases: Cases): Effect<R | {
1114
+ [K in keyof Cases]: Cases[K] extends (...args: Array<any>) => Effect<infer R, any, any> ? R : never;
1115
+ }[keyof Cases], Exclude<E, {
1116
+ _tag: keyof Cases;
1117
+ }> | {
1118
+ [K in keyof Cases]: Cases[K] extends (...args: Array<any>) => Effect<any, infer E, any> ? E : never;
1119
+ }[keyof Cases], A | {
1120
+ [K in keyof Cases]: Cases[K] extends (...args: Array<any>) => Effect<any, any, infer A> ? A : never;
1121
+ }[keyof Cases]>;
1122
+ };
1123
+ /**
1124
+ * Returns an effect that succeeds with the cause of failure of this effect,
1125
+ * or `Cause.empty` if the effect did succeed.
1126
+ *
1127
+ * @since 2.0.0
1128
+ * @category error handling
1129
+ */
1130
+ export declare const cause: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, Cause.Cause<E>>;
1131
+ /**
1132
+ * Returns an effect that ignores errors and runs repeatedly until it
1133
+ * eventually succeeds.
1134
+ *
1135
+ * @since 2.0.0
1136
+ * @category error handling
1137
+ */
1138
+ export declare const eventually: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, A>;
1139
+ /**
1140
+ * Returns a new effect that ignores the success or failure of this effect.
1141
+ *
1142
+ * @since 2.0.0
1143
+ * @category error handling
1144
+ */
1145
+ export declare const ignore: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, void>;
1146
+ /**
1147
+ * Returns a new effect that ignores the success or failure of this effect,
1148
+ * but which also logs failures at the Debug level, just in case the failure
1149
+ * turns out to be important.
1150
+ *
1151
+ * @since 2.0.0
1152
+ * @category error handling
1153
+ */
1154
+ export declare const ignoreLogged: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, void>;
1155
+ /**
1156
+ * Exposes all parallel errors in a single call.
1157
+ *
1158
+ * @since 2.0.0
1159
+ * @category error handling
1160
+ */
1161
+ export declare const parallelErrors: <R, E, A>(self: Effect<R, E, A>) => Effect<R, Array<E>, A>;
1162
+ /**
1163
+ * Exposes the full `Cause` of failure for the specified effect.
1164
+ *
1165
+ * @since 2.0.0
1166
+ * @category error handling
1167
+ */
1168
+ export declare const sandbox: <R, E, A>(self: Effect<R, E, A>) => Effect<R, Cause.Cause<E>, A>;
1169
+ /**
1170
+ * Retries with the specified retry policy. Retries are done following the
1171
+ * failure of the original `io` (up to a fixed maximum with `once` or `recurs`
1172
+ * for example), so that that `io.retry(Schedule.once)` means "execute `io`
1173
+ * and in case of failure, try again once".
1174
+ *
1175
+ * @since 2.0.0
1176
+ * @category error handling
1177
+ */
1178
+ export declare const retry: {
1179
+ <R1, E extends E0, E0, B>(policy: Schedule.Schedule<R1, E0, B>): <R, A>(self: Effect<R, E, A>) => Effect<R1 | R, E, A>;
1180
+ <R, E extends E0, E0, A, R1, B>(self: Effect<R, E, A>, policy: Schedule.Schedule<R1, E0, B>): Effect<R | R1, E, A>;
1181
+ };
1182
+ /**
1183
+ * Retries this effect the specified number of times.
1184
+ *
1185
+ * @since 2.0.0
1186
+ * @category error handling
1187
+ */
1188
+ export declare const retryN: {
1189
+ (n: number): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1190
+ <R, E, A>(self: Effect<R, E, A>, n: number): Effect<R, E, A>;
1191
+ };
1192
+ /**
1193
+ * Retries with the specified schedule, until it fails, and then both the
1194
+ * value produced by the schedule together with the last error are passed to
1195
+ * the recovery function.
1196
+ *
1197
+ * @since 2.0.0
1198
+ * @category error handling
1199
+ */
1200
+ export declare const retryOrElse: {
1201
+ <R1, E extends E3, A1, R2, E2, A2, E3>(policy: Schedule.Schedule<R1, E3, A1>, orElse: (e: E, out: A1) => Effect<R2, E2, A2>): <R, A>(self: Effect<R, E, A>) => Effect<R1 | R2 | R, E | E2, A2 | A>;
1202
+ <R, E extends E3, A, R1, A1, R2, E2, A2, E3>(self: Effect<R, E, A>, policy: Schedule.Schedule<R1, E3, A1>, orElse: (e: E, out: A1) => Effect<R2, E2, A2>): Effect<R | R1 | R2, E | E2, A | A2>;
1203
+ };
1204
+ /**
1205
+ * Retries this effect until its error satisfies the specified predicate.
1206
+ *
1207
+ * @since 2.0.0
1208
+ * @category error handling
1209
+ */
1210
+ export declare const retryUntil: {
1211
+ <E, E2 extends E>(f: Refinement<E, E2>): <R, A>(self: Effect<R, E, A>) => Effect<R, E2, A>;
1212
+ <E>(f: Predicate<E>): <R, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1213
+ <R, E, A, E2 extends E>(self: Effect<R, E, A>, f: Refinement<E, E2>): Effect<R, E2, A>;
1214
+ <R, E, A>(self: Effect<R, E, A>, f: Predicate<E>): Effect<R, E, A>;
1215
+ };
1216
+ /**
1217
+ * Retries this effect until its error satisfies the specified effectful
1218
+ * predicate.
1219
+ *
1220
+ * @since 2.0.0
1221
+ * @category error handling
1222
+ */
1223
+ export declare const retryUntilEffect: {
1224
+ <R1, E, E2>(f: (e: E) => Effect<R1, E2, boolean>): <R, A>(self: Effect<R, E, A>) => Effect<R1 | R, E | E2, A>;
1225
+ <R, E, A, R1, E2>(self: Effect<R, E, A>, f: (e: E) => Effect<R1, E2, boolean>): Effect<R | R1, E | E2, A>;
1226
+ };
1227
+ /**
1228
+ * Retries this effect while its error satisfies the specified predicate.
1229
+ *
1230
+ * @since 2.0.0
1231
+ * @category error handling
1232
+ */
1233
+ export declare const retryWhile: {
1234
+ <E>(f: Predicate<E>): <R, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1235
+ <R, E, A>(self: Effect<R, E, A>, f: Predicate<E>): Effect<R, E, A>;
1236
+ };
1237
+ /**
1238
+ * Retries this effect while its error satisfies the specified effectful
1239
+ * predicate.
1240
+ *
1241
+ * @since 2.0.0
1242
+ * @category error handling
1243
+ */
1244
+ export declare const retryWhileEffect: {
1245
+ <R1, E, E2>(f: (e: E) => Effect<R1, E2, boolean>): <R, A>(self: Effect<R, E, A>) => Effect<R1 | R, E | E2, A>;
1246
+ <R, E, A, R1, E2>(self: Effect<R, E, A>, f: (e: E) => Effect<R1, E2, boolean>): Effect<R | R1, E | E2, A>;
1247
+ };
1248
+ declare const try_: {
1249
+ <A, E>(options: {
1250
+ readonly try: LazyArg<A>;
1251
+ readonly catch: (error: unknown) => E;
1252
+ }): Effect<never, E, A>;
1253
+ <A>(evaluate: LazyArg<A>): Effect<never, unknown, A>;
1254
+ };
1255
+ export {
1256
+ /**
1257
+ * Imports a synchronous side-effect into a pure `Effect` value, translating any
1258
+ * thrown exceptions into typed failed effects creating with `Effect.fail`.
1259
+ *
1260
+ * @since 2.0.0
1261
+ * @category error handling
1262
+ */
1263
+ try_ as try };
1264
+ /**
1265
+ * Returns an effect whose success is mapped by the specified side effecting
1266
+ * `try` function, translating any promise rejections into typed failed effects
1267
+ * via the `catch` function.
1268
+ *
1269
+ * @since 2.0.0
1270
+ * @category error handling
1271
+ */
1272
+ export declare const tryMap: {
1273
+ <A, B, E1>(options: {
1274
+ readonly try: (a: A) => B;
1275
+ readonly catch: (error: unknown) => E1;
1276
+ }): <R, E>(self: Effect<R, E, A>) => Effect<R, E1 | E, B>;
1277
+ <R, E, A, B, E1>(self: Effect<R, E, A>, options: {
1278
+ readonly try: (a: A) => B;
1279
+ readonly catch: (error: unknown) => E1;
1280
+ }): Effect<R, E | E1, B>;
1281
+ };
1282
+ /**
1283
+ * Returns an effect whose success is mapped by the specified side effecting
1284
+ * `try` function, translating any promise rejections into typed failed effects
1285
+ * via the `catch` function.
1286
+ *
1287
+ * An optional `AbortSignal` can be provided to allow for interruption of the
1288
+ * wrapped Promise api.
1289
+ *
1290
+ * @since 2.0.0
1291
+ * @category error handling
1292
+ */
1293
+ export declare const tryMapPromise: {
1294
+ <A, B, E1>(options: {
1295
+ readonly try: (a: A, signal: AbortSignal) => Promise<B>;
1296
+ readonly catch: (error: unknown) => E1;
1297
+ }): <R, E>(self: Effect<R, E, A>) => Effect<R, E1 | E, B>;
1298
+ <R, E, A, B, E1>(self: Effect<R, E, A>, options: {
1299
+ readonly try: (a: A, signal: AbortSignal) => Promise<B>;
1300
+ readonly catch: (error: unknown) => E1;
1301
+ }): Effect<R, E | E1, B>;
1302
+ };
1303
+ /**
1304
+ * Create an `Effect` that when executed will construct `promise` and wait for
1305
+ * its result, errors will produce failure as `unknown`.
1306
+ *
1307
+ * An optional `AbortSignal` can be provided to allow for interruption of the
1308
+ * wrapped Promise api.
1309
+ *
1310
+ * @since 2.0.0
1311
+ * @category error handling
1312
+ */
1313
+ export declare const tryPromise: {
1314
+ <A, E>(options: {
1315
+ readonly try: (signal: AbortSignal) => Promise<A>;
1316
+ readonly catch: (error: unknown) => E;
1317
+ }): Effect<never, E, A>;
1318
+ <A>(try_: (signal: AbortSignal) => Promise<A>): Effect<never, unknown, A>;
1319
+ };
1320
+ /**
1321
+ * The inverse operation `sandbox(effect)`
1322
+ *
1323
+ * Terminates with exceptions on the `Left` side of the `Either` error, if it
1324
+ * exists. Otherwise extracts the contained `Effect<R, E, A>`
1325
+ *
1326
+ * @since 2.0.0
1327
+ * @category error handling
1328
+ */
1329
+ export declare const unsandbox: <R, E, A>(self: Effect<R, Cause.Cause<E>, A>) => Effect<R, E, A>;
1330
+ /**
1331
+ * This function checks if any fibers are attempting to interrupt the current
1332
+ * fiber, and if so, performs self-interruption.
1333
+ *
1334
+ * Note that this allows for interruption to occur in uninterruptible regions.
1335
+ *
1336
+ * @returns A new `Effect` value that represents the check for interruption
1337
+ * and the potential self-interruption of the current fiber.
1338
+ *
1339
+ * @since 2.0.0
1340
+ * @category interruption
1341
+ */
1342
+ export declare const allowInterrupt: Effect<never, never, void>;
1343
+ /**
1344
+ * Checks the interrupt status, and produces the effect returned by the
1345
+ * specified callback.
1346
+ *
1347
+ * @since 2.0.0
1348
+ * @category interruption
1349
+ */
1350
+ export declare const checkInterruptible: <R, E, A>(f: (isInterruptible: boolean) => Effect<R, E, A>) => Effect<R, E, A>;
1351
+ /**
1352
+ * Returns an effect whose interruption will be disconnected from the
1353
+ * fiber's own interruption, being performed in the background without
1354
+ * slowing down the fiber's interruption.
1355
+ *
1356
+ * This method is useful to create "fast interrupting" effects. For
1357
+ * example, if you call this on a bracketed effect, then even if the
1358
+ * effect is "stuck" in acquire or release, its interruption will return
1359
+ * immediately, while the acquire / release are performed in the
1360
+ * background.
1361
+ *
1362
+ * See timeout and race for other applications.
1363
+ *
1364
+ * @since 2.0.0
1365
+ * @category interruption
1366
+ */
1367
+ export declare const disconnect: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1368
+ /**
1369
+ * @since 2.0.0
1370
+ * @category interruption
1371
+ */
1372
+ export declare const interrupt: Effect<never, never, never>;
1373
+ /**
1374
+ * @since 2.0.0
1375
+ * @category interruption
1376
+ */
1377
+ export declare const interruptWith: (fiberId: FiberId.FiberId) => Effect<never, never, never>;
1378
+ /**
1379
+ * @since 2.0.0
1380
+ * @category interruption
1381
+ */
1382
+ export declare const interruptible: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1383
+ /**
1384
+ * @since 2.0.0
1385
+ * @category interruption
1386
+ */
1387
+ export declare const interruptibleMask: <R, E, A>(f: (restore: <RX, EX, AX>(effect: Effect<RX, EX, AX>) => Effect<RX, EX, AX>) => Effect<R, E, A>) => Effect<R, E, A>;
1388
+ /**
1389
+ * @since 2.0.0
1390
+ * @category interruption
1391
+ */
1392
+ export declare const onInterrupt: {
1393
+ <R2, X>(cleanup: (interruptors: HashSet.HashSet<FiberId.FiberId>) => Effect<R2, never, X>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E, A>;
1394
+ <R, E, A, R2, X>(self: Effect<R, E, A>, cleanup: (interruptors: HashSet.HashSet<FiberId.FiberId>) => Effect<R2, never, X>): Effect<R | R2, E, A>;
1395
+ };
1396
+ /**
1397
+ * @since 2.0.0
1398
+ * @category interruption
1399
+ */
1400
+ export declare const uninterruptible: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1401
+ /**
1402
+ * @since 2.0.0
1403
+ * @category interruption
1404
+ */
1405
+ export declare const uninterruptibleMask: <R, E, A>(f: (restore: <RX, EX, AX>(effect: Effect<RX, EX, AX>) => Effect<RX, EX, AX>) => Effect<R, E, A>) => Effect<R, E, A>;
1406
+ /**
1407
+ * This function maps the success value of an `Effect` value to a specified
1408
+ * constant value.
1409
+ *
1410
+ * @param value - The constant value that the success value of the `Effect`
1411
+ * value will be mapped to.
1412
+ * @param self - The `Effect` value whose success value will be mapped to the
1413
+ * specified constant value.
1414
+ *
1415
+ * @returns A new `Effect` value that represents the mapping of the success
1416
+ * value of the original `Effect` value to the specified constant value.
1417
+ *
1418
+ * @since 2.0.0
1419
+ * @category mapping
1420
+ */
1421
+ export declare const as: {
1422
+ <B>(value: B): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, B>;
1423
+ <R, E, A, B>(self: Effect<R, E, A>, value: B): Effect<R, E, B>;
1424
+ };
1425
+ /**
1426
+ * This function maps the success value of an `Effect` value to a `Some` value
1427
+ * in an `Option` value. If the original `Effect` value fails, the returned
1428
+ * `Effect` value will also fail.
1429
+ *
1430
+ * @param self - The `Effect` value whose success value will be mapped to a
1431
+ * `Some` value in an `Option` value.
1432
+ *
1433
+ * @returns A new `Effect` value that represents the mapping of the success
1434
+ * value of the original `Effect` value to a `Some` value in an `Option`
1435
+ * value. The returned `Effect` value may fail if the original `Effect` value
1436
+ * fails.
1437
+ *
1438
+ * @category mapping
1439
+ * @since 2.0.0
1440
+ */
1441
+ export declare const asSome: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, Option.Option<A>>;
1442
+ /**
1443
+ * This function maps the error value of an `Effect` value to a `Some` value
1444
+ * in an `Option` value. If the original `Effect` value succeeds, the returned
1445
+ * `Effect` value will also succeed.
1446
+ *
1447
+ * @param self - The `Effect` value whose error value will be mapped to a
1448
+ * `Some` value in an `Option` value.
1449
+ *
1450
+ * @returns A new `Effect` value that represents the mapping of the error
1451
+ * value of the original `Effect` value to a `Some` value in an `Option`
1452
+ * value. The returned `Effect` value may succeed if the original `Effect`
1453
+ * value succeeds.
1454
+ *
1455
+ * @category mapping
1456
+ * @since 2.0.0
1457
+ */
1458
+ export declare const asSomeError: <R, E, A>(self: Effect<R, E, A>) => Effect<R, Option.Option<E>, A>;
1459
+ /**
1460
+ * This function maps the success value of an `Effect` value to `void`. If the
1461
+ * original `Effect` value succeeds, the returned `Effect` value will also
1462
+ * succeed. If the original `Effect` value fails, the returned `Effect` value
1463
+ * will fail with the same error.
1464
+ *
1465
+ * @param self - The `Effect` value whose success value will be mapped to `void`.
1466
+ *
1467
+ * @returns A new `Effect` value that represents the mapping of the success
1468
+ * value of the original `Effect` value to `void`.
1469
+ *
1470
+ * @since 2.0.0
1471
+ * @category mapping
1472
+ */
1473
+ export declare const asUnit: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, void>;
1474
+ /**
1475
+ * Returns an effect that swaps the error/success cases. This allows you to
1476
+ * use all methods on the error channel, possibly before flipping back.
1477
+ *
1478
+ * @since 2.0.0
1479
+ * @category mapping
1480
+ */
1481
+ export declare const flip: <R, E, A>(self: Effect<R, E, A>) => Effect<R, A, E>;
1482
+ /**
1483
+ * Swaps the error/value parameters, applies the function `f` and flips the
1484
+ * parameters back
1485
+ *
1486
+ * @since 2.0.0
1487
+ * @category mapping
1488
+ */
1489
+ export declare const flipWith: {
1490
+ <R, A, E, R2, A2, E2>(f: (effect: Effect<R, A, E>) => Effect<R2, A2, E2>): (self: Effect<R, E, A>) => Effect<R2, E2, A2>;
1491
+ <R, A, E, R2, A2, E2>(self: Effect<R, E, A>, f: (effect: Effect<R, A, E>) => Effect<R2, A2, E2>): Effect<R2, E2, A2>;
1492
+ };
1493
+ /**
1494
+ * @since 2.0.0
1495
+ * @category mapping
1496
+ */
1497
+ export declare const map: {
1498
+ <A, B>(f: (a: A) => B): <R, E>(self: Effect<R, E, A>) => Effect<R, E, B>;
1499
+ <R, E, A, B>(self: Effect<R, E, A>, f: (a: A) => B): Effect<R, E, B>;
1500
+ };
1501
+ /**
1502
+ * Statefully and effectfully maps over the elements of this chunk to produce
1503
+ * new elements.
1504
+ *
1505
+ * @since 2.0.0
1506
+ * @category mapping
1507
+ */
1508
+ export declare const mapAccum: {
1509
+ <A, B, R, E, Z>(zero: Z, f: (z: Z, a: A, i: number) => Effect<R, E, readonly [Z, B]>): (elements: Iterable<A>) => Effect<R, E, readonly [Z, Array<B>]>;
1510
+ <A, B, R, E, Z>(elements: Iterable<A>, zero: Z, f: (z: Z, a: A, i: number) => Effect<R, E, readonly [Z, B]>): Effect<R, E, readonly [Z, Array<B>]>;
1511
+ };
1512
+ /**
1513
+ * Returns an effect whose failure and success channels have been mapped by
1514
+ * the specified `onFailure` and `onSuccess` functions.
1515
+ *
1516
+ * @since 2.0.0
1517
+ * @category mapping
1518
+ */
1519
+ export declare const mapBoth: {
1520
+ <E, A, E2, A2>(options: {
1521
+ readonly onFailure: (e: E) => E2;
1522
+ readonly onSuccess: (a: A) => A2;
1523
+ }): <R>(self: Effect<R, E, A>) => Effect<R, E2, A2>;
1524
+ <R, E, A, E2, A2>(self: Effect<R, E, A>, options: {
1525
+ readonly onFailure: (e: E) => E2;
1526
+ readonly onSuccess: (a: A) => A2;
1527
+ }): Effect<R, E2, A2>;
1528
+ };
1529
+ /**
1530
+ * Returns an effect with its error channel mapped using the specified function.
1531
+ *
1532
+ * @since 2.0.0
1533
+ * @category mapping
1534
+ */
1535
+ export declare const mapError: {
1536
+ <E, E2>(f: (e: E) => E2): <R, A>(self: Effect<R, E, A>) => Effect<R, E2, A>;
1537
+ <R, A, E, E2>(self: Effect<R, E, A>, f: (e: E) => E2): Effect<R, E2, A>;
1538
+ };
1539
+ /**
1540
+ * Returns an effect with its full cause of failure mapped using the specified
1541
+ * function. This can be used to transform errors while preserving the
1542
+ * original structure of `Cause`.
1543
+ *
1544
+ * See `absorb`, `sandbox`, `catchAllCause` for other functions for dealing
1545
+ * with defects.
1546
+ *
1547
+ * @since 2.0.0
1548
+ * @category mapping
1549
+ */
1550
+ export declare const mapErrorCause: {
1551
+ <E, E2>(f: (cause: Cause.Cause<E>) => Cause.Cause<E2>): <R, A>(self: Effect<R, E, A>) => Effect<R, E2, A>;
1552
+ <R, E, A, E2>(self: Effect<R, E, A>, f: (cause: Cause.Cause<E>) => Cause.Cause<E2>): Effect<R, E2, A>;
1553
+ };
1554
+ /**
1555
+ * Returns a new effect where the error channel has been merged into the
1556
+ * success channel to their common combined type.
1557
+ *
1558
+ * @since 2.0.0
1559
+ * @category mapping
1560
+ */
1561
+ export declare const merge: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, E | A>;
1562
+ /**
1563
+ * Returns a new effect where boolean value of this effect is negated.
1564
+ *
1565
+ * @since 2.0.0
1566
+ * @category mapping
1567
+ */
1568
+ export declare const negate: <R, E>(self: Effect<R, E, boolean>) => Effect<R, E, boolean>;
1569
+ /**
1570
+ * This function constructs a scoped resource from an `acquire` and `release`
1571
+ * `Effect` value.
1572
+ *
1573
+ * If the `acquire` `Effect` value successfully completes execution, then the
1574
+ * `release` `Effect` value will be added to the finalizers associated with the
1575
+ * scope of this `Effect` value, and it is guaranteed to be run when the scope
1576
+ * is closed.
1577
+ *
1578
+ * The `acquire` and `release` `Effect` values will be run uninterruptibly.
1579
+ * Additionally, the `release` `Effect` value may depend on the `Exit` value
1580
+ * specified when the scope is closed.
1581
+ *
1582
+ * @param acquire - The `Effect` value that acquires the resource.
1583
+ * @param release - The `Effect` value that releases the resource.
1584
+ *
1585
+ * @returns A new `Effect` value that represents the scoped resource.
1586
+ *
1587
+ * @since 2.0.0
1588
+ * @category scoping, resources & finalization
1589
+ */
1590
+ export declare const acquireRelease: {
1591
+ <A, R2, X>(release: (a: A, exit: Exit.Exit<unknown, unknown>) => Effect<R2, never, X>): <R, E>(acquire: Effect<R, E, A>) => Effect<Scope.Scope | R2 | R, E, A>;
1592
+ <R, E, A, R2, X>(acquire: Effect<R, E, A>, release: (a: A, exit: Exit.Exit<unknown, unknown>) => Effect<R2, never, X>): Effect<Scope.Scope | R | R2, E, A>;
1593
+ };
1594
+ /**
1595
+ * This function constructs a scoped resource from an `acquire` and `release`
1596
+ * `Effect` value.
1597
+ *
1598
+ * If the `acquire` `Effect` value successfully completes execution, then the
1599
+ * `release` `Effect` value will be added to the finalizers associated with the
1600
+ * scope of this `Effect` value, and it is guaranteed to be run when the scope
1601
+ * is closed.
1602
+ *
1603
+ * The `acquire` `Effect` values will be run interruptibly.
1604
+ * The `release` `Effect` values will be run uninterruptibly.
1605
+ *
1606
+ * Additionally, the `release` `Effect` value may depend on the `Exit` value
1607
+ * specified when the scope is closed.
1608
+ *
1609
+ * @param acquire - The `Effect` value that acquires the resource.
1610
+ * @param release - The `Effect` value that releases the resource.
1611
+ *
1612
+ * @returns A new `Effect` value that represents the scoped resource.
1613
+ *
1614
+ * @since 2.0.0
1615
+ * @category scoping, resources & finalization
1616
+ */
1617
+ export declare const acquireReleaseInterruptible: {
1618
+ <A, R2, X>(release: (exit: Exit.Exit<unknown, unknown>) => Effect<R2, never, X>): <R, E>(acquire: Effect<R, E, A>) => Effect<Scope.Scope | R2 | R, E, A>;
1619
+ <R, E, A, R2, X>(acquire: Effect<R, E, A>, release: (exit: Exit.Exit<unknown, unknown>) => Effect<R2, never, X>): Effect<Scope.Scope | R | R2, E, A>;
1620
+ };
1621
+ /**
1622
+ * This function is used to ensure that an `Effect` value that represents the
1623
+ * acquisition of a resource (for example, opening a file, launching a thread,
1624
+ * etc.) will not be interrupted, and that the resource will always be released
1625
+ * when the `Effect` value completes execution.
1626
+ *
1627
+ * `acquireUseRelease` does the following:
1628
+ *
1629
+ * 1. Ensures that the `Effect` value that acquires the resource will not be
1630
+ * interrupted. Note that acquisition may still fail due to internal
1631
+ * reasons (such as an uncaught exception).
1632
+ * 2. Ensures that the `release` `Effect` value will not be interrupted,
1633
+ * and will be executed as long as the acquisition `Effect` value
1634
+ * successfully acquires the resource.
1635
+ *
1636
+ * During the time period between the acquisition and release of the resource,
1637
+ * the `use` `Effect` value will be executed.
1638
+ *
1639
+ * If the `release` `Effect` value fails, then the entire `Effect` value will
1640
+ * fail, even if the `use` `Effect` value succeeds. If this fail-fast behavior
1641
+ * is not desired, errors produced by the `release` `Effect` value can be caught
1642
+ * and ignored.
1643
+ *
1644
+ * @param acquire - The `Effect` value that acquires the resource.
1645
+ * @param use - The `Effect` value that is executed between the acquisition
1646
+ * and release of the resource.
1647
+ * @param release - The `Effect` value that releases the resource.
1648
+ *
1649
+ * @returns A new `Effect` value that represents the acquisition, use, and
1650
+ * release of the resource.
1651
+ *
1652
+ * @since 2.0.0
1653
+ * @category scoping, resources & finalization
1654
+ */
1655
+ export declare const acquireUseRelease: {
1656
+ <A, R2, E2, A2, R3, X>(use: (a: A) => Effect<R2, E2, A2>, release: (a: A, exit: Exit.Exit<E2, A2>) => Effect<R3, never, X>): <R, E>(acquire: Effect<R, E, A>) => Effect<R2 | R3 | R, E2 | E, A2>;
1657
+ <R, E, A, R2, E2, A2, R3, X>(acquire: Effect<R, E, A>, use: (a: A) => Effect<R2, E2, A2>, release: (a: A, exit: Exit.Exit<E2, A2>) => Effect<R3, never, X>): Effect<R | R2 | R3, E | E2, A2>;
1658
+ };
1659
+ /**
1660
+ * This function adds a finalizer to the scope of the calling `Effect` value.
1661
+ * The finalizer is guaranteed to be run when the scope is closed, and it may
1662
+ * depend on the `Exit` value that the scope is closed with.
1663
+ *
1664
+ * @param finalizer - The finalizer to add to the scope of the calling
1665
+ * `Effect` value. This function must take an `Exit` value as its parameter,
1666
+ * and return a new `Effect` value.
1667
+ *
1668
+ * @returns A new `Effect` value that represents the addition of the finalizer
1669
+ * to the scope of the calling `Effect` value.
1670
+ *
1671
+ * @since 2.0.0
1672
+ * @category scoping, resources & finalization
1673
+ */
1674
+ export declare const addFinalizer: <R, X>(finalizer: (exit: Exit.Exit<unknown, unknown>) => Effect<R, never, X>) => Effect<R | Scope.Scope, never, void>;
1675
+ /**
1676
+ * Returns an effect that, if this effect _starts_ execution, then the
1677
+ * specified `finalizer` is guaranteed to be executed, whether this effect
1678
+ * succeeds, fails, or is interrupted.
1679
+ *
1680
+ * For use cases that need access to the effect's result, see `onExit`.
1681
+ *
1682
+ * Finalizers offer very powerful guarantees, but they are low-level, and
1683
+ * should generally not be used for releasing resources. For higher-level
1684
+ * logic built on `ensuring`, see the `acquireRelease` family of methods.
1685
+ *
1686
+ * @since 2.0.0
1687
+ * @category scoping, resources & finalization
1688
+ */
1689
+ export declare const ensuring: {
1690
+ <R1, X>(finalizer: Effect<R1, never, X>): <R, E, A>(self: Effect<R, E, A>) => Effect<R1 | R, E, A>;
1691
+ <R, E, A, R1, X>(self: Effect<R, E, A>, finalizer: Effect<R1, never, X>): Effect<R | R1, E, A>;
1692
+ };
1693
+ /**
1694
+ * Runs the specified effect if this effect fails, providing the error to the
1695
+ * effect if it exists. The provided effect will not be interrupted.
1696
+ *
1697
+ * @since 2.0.0
1698
+ * @category scoping, resources & finalization
1699
+ */
1700
+ export declare const onError: {
1701
+ <E, R2, X>(cleanup: (cause: Cause.Cause<E>) => Effect<R2, never, X>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E, A>;
1702
+ <R, A, E, R2, X>(self: Effect<R, E, A>, cleanup: (cause: Cause.Cause<E>) => Effect<R2, never, X>): Effect<R | R2, E, A>;
1703
+ };
1704
+ /**
1705
+ * Ensures that a cleanup functions runs, whether this effect succeeds, fails,
1706
+ * or is interrupted.
1707
+ *
1708
+ * @since 2.0.0
1709
+ * @category scoping, resources & finalization
1710
+ */
1711
+ export declare const onExit: {
1712
+ <E, A, R2, X>(cleanup: (exit: Exit.Exit<E, A>) => Effect<R2, never, X>): <R>(self: Effect<R, E, A>) => Effect<R2 | R, E, A>;
1713
+ <R, E, A, R2, X>(self: Effect<R, E, A>, cleanup: (exit: Exit.Exit<E, A>) => Effect<R2, never, X>): Effect<R | R2, E, A>;
1714
+ };
1715
+ /**
1716
+ * @since 2.0.0
1717
+ * @category scoping, resources & finalization
1718
+ */
1719
+ export declare const parallelFinalizers: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1720
+ /**
1721
+ * @since 2.0.0
1722
+ * @category scoping, resources & finalization
1723
+ */
1724
+ export declare const finalizersMask: (strategy: ExecutionStrategy) => <R, E, A>(self: (restore: <R1, E1, A1>(self: Effect<R1, E1, A1>) => Effect<R1, E1, A1>) => Effect<R, E, A>) => Effect<R, E, A>;
1725
+ /**
1726
+ * Returns a new scoped workflow that runs finalizers added to the scope of
1727
+ * this workflow sequentially in the reverse of the order in which they were
1728
+ * added. Note that finalizers are run sequentially by default so this only
1729
+ * has meaning if used within a scope where finalizers are being run in
1730
+ * parallel.
1731
+ *
1732
+ * @since 2.0.0
1733
+ * @category scoping, resources & finalization
1734
+ */
1735
+ export declare const sequentialFinalizers: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1736
+ /**
1737
+ * @since 2.0.0
1738
+ * @category scoping, resources & finalization
1739
+ */
1740
+ export declare const scope: Effect<Scope.Scope, never, Scope.Scope>;
1741
+ /**
1742
+ * Accesses the current scope and uses it to perform the specified effect.
1743
+ *
1744
+ * @since 2.0.0
1745
+ * @category scoping, resources & finalization
1746
+ */
1747
+ export declare const scopeWith: <R, E, A>(f: (scope: Scope.Scope) => Effect<R, E, A>) => Effect<R | Scope.Scope, E, A>;
1748
+ /**
1749
+ * Scopes all resources uses in this workflow to the lifetime of the workflow,
1750
+ * ensuring that their finalizers are run as soon as this workflow completes
1751
+ * execution, whether by success, failure, or interruption.
1752
+ *
1753
+ * @since 2.0.0
1754
+ * @category scoping, resources & finalization
1755
+ */
1756
+ export declare const scoped: <R, E, A>(effect: Effect<R, E, A>) => Effect<Exclude<R, Scope.Scope>, E, A>;
1757
+ /**
1758
+ * Scopes all resources acquired by `resource` to the lifetime of `use`
1759
+ * without effecting the scope of any resources acquired by `use`.
1760
+ *
1761
+ * @since 2.0.0
1762
+ * @category scoping, resources & finalization
1763
+ */
1764
+ export declare const using: {
1765
+ <A, R2, E2, A2>(use: (a: A) => Effect<R2, E2, A2>): <R, E>(self: Effect<R, E, A>) => Effect<R2 | Exclude<R, Scope.Scope>, E2 | E, A2>;
1766
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, use: (a: A) => Effect<R2, E2, A2>): Effect<R2 | Exclude<R, Scope.Scope>, E | E2, A2>;
1767
+ };
1768
+ /**
1769
+ * Returns a new scoped workflow that returns the result of this workflow as
1770
+ * well as a finalizer that can be run to close the scope of this workflow.
1771
+ *
1772
+ * @since 2.0.0
1773
+ * @category scoping, resources & finalization
1774
+ */
1775
+ export declare const withEarlyRelease: <R, E, A>(self: Effect<R, E, A>) => Effect<Scope.Scope | R, E, readonly [Effect<never, never, void>, A]>;
1776
+ /**
1777
+ * Returns a new effect that will not succeed with its value before first
1778
+ * waiting for the end of all child fibers forked by the effect.
1779
+ *
1780
+ * @since 2.0.0
1781
+ * @category supervision & fibers
1782
+ */
1783
+ export declare const awaitAllChildren: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1784
+ /**
1785
+ * Returns a new workflow that will not supervise any fibers forked by this
1786
+ * workflow.
1787
+ *
1788
+ * @since 2.0.0
1789
+ * @category supervision & fibers
1790
+ */
1791
+ export declare const daemonChildren: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1792
+ /**
1793
+ * Constructs an effect with information about the current `Fiber`.
1794
+ *
1795
+ * @since 2.0.0
1796
+ * @category supervision & fibers
1797
+ */
1798
+ export declare const descriptor: Effect<never, never, Fiber.Fiber.Descriptor>;
1799
+ /**
1800
+ * Constructs an effect based on information about the current `Fiber`.
1801
+ *
1802
+ * @since 2.0.0
1803
+ * @category supervision & fibers
1804
+ */
1805
+ export declare const descriptorWith: <R, E, A>(f: (descriptor: Fiber.Fiber.Descriptor) => Effect<R, E, A>) => Effect<R, E, A>;
1806
+ /**
1807
+ * Returns a new workflow that executes this one and captures the changes in
1808
+ * `FiberRef` values.
1809
+ *
1810
+ * @since 2.0.0
1811
+ * @category supervision & fibers
1812
+ */
1813
+ export declare const diffFiberRefs: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, readonly [FiberRefsPatch.FiberRefsPatch, A]>;
1814
+ /**
1815
+ * Acts on the children of this fiber (collected into a single fiber),
1816
+ * guaranteeing the specified callback will be invoked, whether or not this
1817
+ * effect succeeds.
1818
+ *
1819
+ * @since 2.0.0
1820
+ * @category supervision & fibers
1821
+ */
1822
+ export declare const ensuringChild: {
1823
+ <R2, X>(f: (fiber: Fiber.Fiber<any, ReadonlyArray<unknown>>) => Effect<R2, never, X>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E, A>;
1824
+ <R, E, A, R2, X>(self: Effect<R, E, A>, f: (fiber: Fiber.Fiber<any, ReadonlyArray<unknown>>) => Effect<R2, never, X>): Effect<R | R2, E, A>;
1825
+ };
1826
+ /**
1827
+ * Acts on the children of this fiber, guaranteeing the specified callback
1828
+ * will be invoked, whether or not this effect succeeds.
1829
+ *
1830
+ * @since 2.0.0
1831
+ * @category supervision & fibers
1832
+ */
1833
+ export declare const ensuringChildren: {
1834
+ <R1, X>(children: (fibers: ReadonlyArray<Fiber.RuntimeFiber<any, any>>) => Effect<R1, never, X>): <R, E, A>(self: Effect<R, E, A>) => Effect<R1 | R, E, A>;
1835
+ <R, E, A, R1, X>(self: Effect<R, E, A>, children: (fibers: ReadonlyArray<Fiber.RuntimeFiber<any, any>>) => Effect<R1, never, X>): Effect<R | R1, E, A>;
1836
+ };
1837
+ /**
1838
+ * @since 2.0.0
1839
+ * @category supervision & fibers
1840
+ */
1841
+ export declare const fiberId: Effect<never, never, FiberId.FiberId>;
1842
+ /**
1843
+ * @since 2.0.0
1844
+ * @category supervision & fibers
1845
+ */
1846
+ export declare const fiberIdWith: <R, E, A>(f: (descriptor: FiberId.Runtime) => Effect<R, E, A>) => Effect<R, E, A>;
1847
+ /**
1848
+ * Returns an effect that forks this effect into its own separate fiber,
1849
+ * returning the fiber immediately, without waiting for it to begin executing
1850
+ * the effect.
1851
+ *
1852
+ * You can use the `fork` method whenever you want to execute an effect in a
1853
+ * new fiber, concurrently and without "blocking" the fiber executing other
1854
+ * effects. Using fibers can be tricky, so instead of using this method
1855
+ * directly, consider other higher-level methods, such as `raceWith`,
1856
+ * `zipPar`, and so forth.
1857
+ *
1858
+ * The fiber returned by this method has methods to interrupt the fiber and to
1859
+ * wait for it to finish executing the effect. See `Fiber` for more
1860
+ * information.
1861
+ *
1862
+ * Whenever you use this method to launch a new fiber, the new fiber is
1863
+ * attached to the parent fiber's scope. This means when the parent fiber
1864
+ * terminates, the child fiber will be terminated as well, ensuring that no
1865
+ * fibers leak. This behavior is called "auto supervision", and if this
1866
+ * behavior is not desired, you may use the `forkDaemon` or `forkIn` methods.
1867
+ *
1868
+ * @since 2.0.0
1869
+ * @category supervision & fibers
1870
+ */
1871
+ export declare const fork: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, Fiber.RuntimeFiber<E, A>>;
1872
+ /**
1873
+ * Forks the effect into a new fiber attached to the global scope. Because the
1874
+ * new fiber is attached to the global scope, when the fiber executing the
1875
+ * returned effect terminates, the forked fiber will continue running.
1876
+ *
1877
+ * @since 2.0.0
1878
+ * @category supervision & fibers
1879
+ */
1880
+ export declare const forkDaemon: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, Fiber.RuntimeFiber<E, A>>;
1881
+ /**
1882
+ * Returns an effect that forks all of the specified values, and returns a
1883
+ * composite fiber that produces a list of their results, in order.
1884
+ *
1885
+ * @since 2.0.0
1886
+ * @category supervision & fibers
1887
+ */
1888
+ export declare const forkAll: {
1889
+ (options?: {
1890
+ readonly discard?: false;
1891
+ }): <R, E, A>(effects: Iterable<Effect<R, E, A>>) => Effect<R, never, Fiber.Fiber<E, Array<A>>>;
1892
+ (options: {
1893
+ readonly discard: true;
1894
+ }): <R, E, A>(effects: Iterable<Effect<R, E, A>>) => Effect<R, never, void>;
1895
+ <R, E, A>(effects: Iterable<Effect<R, E, A>>, options?: {
1896
+ readonly discard?: false;
1897
+ }): Effect<R, never, Fiber.Fiber<E, Array<A>>>;
1898
+ <R, E, A>(effects: Iterable<Effect<R, E, A>>, options: {
1899
+ readonly discard: true;
1900
+ }): Effect<R, never, void>;
1901
+ };
1902
+ /**
1903
+ * Forks the effect in the specified scope. The fiber will be interrupted
1904
+ * when the scope is closed.
1905
+ *
1906
+ * @since 2.0.0
1907
+ * @category supervision & fibers
1908
+ */
1909
+ export declare const forkIn: {
1910
+ (scope: Scope.Scope): <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, Fiber.RuntimeFiber<E, A>>;
1911
+ <R, E, A>(self: Effect<R, E, A>, scope: Scope.Scope): Effect<R, never, Fiber.RuntimeFiber<E, A>>;
1912
+ };
1913
+ /**
1914
+ * Forks the fiber in a `Scope`, interrupting it when the scope is closed.
1915
+ *
1916
+ * @since 2.0.0
1917
+ * @category supervision & fibers
1918
+ */
1919
+ export declare const forkScoped: <R, E, A>(self: Effect<R, E, A>) => Effect<Scope.Scope | R, never, Fiber.RuntimeFiber<E, A>>;
1920
+ /**
1921
+ * Like fork but handles an error with the provided handler.
1922
+ *
1923
+ * @since 2.0.0
1924
+ * @category supervision & fibers
1925
+ */
1926
+ export declare const forkWithErrorHandler: {
1927
+ <E, X>(handler: (e: E) => Effect<never, never, X>): <R, A>(self: Effect<R, E, A>) => Effect<R, never, Fiber.RuntimeFiber<E, A>>;
1928
+ <R, E, A, X>(self: Effect<R, E, A>, handler: (e: E) => Effect<never, never, X>): Effect<R, never, Fiber.RuntimeFiber<E, A>>;
1929
+ };
1930
+ /**
1931
+ * Creates an `Effect` value that represents the exit value of the specified
1932
+ * fiber.
1933
+ *
1934
+ * @since 2.0.0
1935
+ * @category supervision & fibers
1936
+ */
1937
+ export declare const fromFiber: <E, A>(fiber: Fiber.Fiber<E, A>) => Effect<never, E, A>;
1938
+ /**
1939
+ * Creates an `Effect` value that represents the exit value of the specified
1940
+ * fiber.
1941
+ *
1942
+ * @since 2.0.0
1943
+ * @category supervision & fibers
1944
+ */
1945
+ export declare const fromFiberEffect: <R, E, A>(fiber: Effect<R, E, Fiber.Fiber<E, A>>) => Effect<R, E, A>;
1946
+ /**
1947
+ * Returns an effect with the behavior of this one, but where all child fibers
1948
+ * forked in the effect are reported to the specified supervisor.
1949
+ *
1950
+ * @since 2.0.0
1951
+ * @category supervision & fibers
1952
+ */
1953
+ export declare const supervised: {
1954
+ <X>(supervisor: Supervisor.Supervisor<X>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1955
+ <R, E, A, X>(self: Effect<R, E, A>, supervisor: Supervisor.Supervisor<X>): Effect<R, E, A>;
1956
+ };
1957
+ /**
1958
+ * Transplants specified effects so that when those effects fork other
1959
+ * effects, the forked effects will be governed by the scope of the fiber that
1960
+ * executes this effect.
1961
+ *
1962
+ * This can be used to "graft" deep grandchildren onto a higher-level scope,
1963
+ * effectively extending their lifespans into the parent scope.
1964
+ *
1965
+ * @since 2.0.0
1966
+ * @category supervision & fibers
1967
+ */
1968
+ export declare const transplant: <R, E, A>(f: (grafter: <R2, E2, A2>(effect: Effect<R2, E2, A2>) => Effect<R2, E2, A2>) => Effect<R, E, A>) => Effect<R, E, A>;
1969
+ /**
1970
+ * @since 2.0.0
1971
+ * @category supervision & fibers
1972
+ */
1973
+ export declare const withConcurrency: {
1974
+ (concurrency: number | "unbounded"): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
1975
+ <R, E, A>(self: Effect<R, E, A>, concurrency: number | "unbounded"): Effect<R, E, A>;
1976
+ };
1977
+ /**
1978
+ * Sets the provided scheduler for usage in the wrapped effect
1979
+ *
1980
+ * @since 2.0.0
1981
+ * @category scheduler
1982
+ */
1983
+ export declare const withScheduler: {
1984
+ (scheduler: Scheduler.Scheduler): <R, E, B>(self: Effect<R, E, B>) => Effect<R, E, B>;
1985
+ <R, E, B>(self: Effect<R, E, B>, scheduler: Scheduler.Scheduler): Effect<R, E, B>;
1986
+ };
1987
+ /**
1988
+ * Sets the scheduling priority used when yielding
1989
+ *
1990
+ * @since 2.0.0
1991
+ * @category utils
1992
+ */
1993
+ export declare const withSchedulingPriority: {
1994
+ (priority: number): <R, E, B>(self: Effect<R, E, B>) => Effect<R, E, B>;
1995
+ <R, E, B>(self: Effect<R, E, B>, priority: number): Effect<R, E, B>;
1996
+ };
1997
+ /**
1998
+ * Sets the maximum number of operations before yield by the default schedulers
1999
+ *
2000
+ * @since 2.0.0
2001
+ * @category utils
2002
+ */
2003
+ export declare const withMaxOpsBeforeYield: {
2004
+ (priority: number): <R, E, B>(self: Effect<R, E, B>) => Effect<R, E, B>;
2005
+ <R, E, B>(self: Effect<R, E, B>, priority: number): Effect<R, E, B>;
2006
+ };
2007
+ /**
2008
+ * Retreives the `Clock` service from the context
2009
+ *
2010
+ * @since 2.0.0
2011
+ * @category clock
2012
+ */
2013
+ export declare const clock: Effect<never, never, Clock.Clock>;
2014
+ /**
2015
+ * Retreives the `Clock` service from the context and provides it to the
2016
+ * specified effectful function.
2017
+ *
2018
+ * @since 2.0.0
2019
+ * @category clock
2020
+ */
2021
+ export declare const clockWith: <R, E, A>(f: (clock: Clock.Clock) => Effect<R, E, A>) => Effect<R, E, A>;
2022
+ /**
2023
+ * Sets the implementation of the clock service to the specified value and
2024
+ * restores it to its original value when the scope is closed.
2025
+ *
2026
+ * @since 2.0.0
2027
+ * @category constructors
2028
+ */
2029
+ export declare const withClockScoped: <A extends Clock.Clock>(value: A) => Effect<Scope.Scope, never, void>;
2030
+ /**
2031
+ * Executes the specified workflow with the specified implementation of the
2032
+ * clock service.
2033
+ *
2034
+ * @since 2.0.0
2035
+ * @category clock
2036
+ */
2037
+ export declare const withClock: {
2038
+ <A extends Clock.Clock>(value: A): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
2039
+ <R, E, A extends Clock.Clock>(effect: Effect<R, E, A>, value: A): Effect<R, E, A>;
2040
+ };
2041
+ /**
2042
+ * Returns an effect that is delayed from this effect by the specified
2043
+ * `Duration`.
2044
+ *
2045
+ * @since 2.0.0
2046
+ * @category delays & timeouts
2047
+ */
2048
+ export declare const delay: {
2049
+ (duration: Duration.DurationInput): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
2050
+ <R, E, A>(self: Effect<R, E, A>, duration: Duration.DurationInput): Effect<R, E, A>;
2051
+ };
2052
+ /**
2053
+ * Returns an effect that suspends for the specified duration. This method is
2054
+ * asynchronous, and does not actually block the fiber executing the effect.
2055
+ *
2056
+ * @since 2.0.0
2057
+ * @category delays & timeouts
2058
+ */
2059
+ export declare const sleep: (duration: Duration.DurationInput) => Effect<never, never, void>;
2060
+ /**
2061
+ * Returns a new effect that executes this one and times the execution.
2062
+ *
2063
+ * @since 2.0.0
2064
+ * @category delays & timeouts
2065
+ */
2066
+ export declare const timed: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, readonly [Duration.Duration, A]>;
2067
+ /**
2068
+ * A more powerful variation of `timed` that allows specifying the clock.
2069
+ *
2070
+ * @since 2.0.0
2071
+ * @category delays & timeouts
2072
+ */
2073
+ export declare const timedWith: {
2074
+ <R1, E1>(nanoseconds: Effect<R1, E1, bigint>): <R, E, A>(self: Effect<R, E, A>) => Effect<R1 | R, E1 | E, readonly [Duration.Duration, A]>;
2075
+ <R, E, A, R1, E1>(self: Effect<R, E, A>, nanoseconds: Effect<R1, E1, bigint>): Effect<R | R1, E | E1, readonly [Duration.Duration, A]>;
2076
+ };
2077
+ /**
2078
+ * Returns an effect that will timeout this effect, returning `None` if the
2079
+ * timeout elapses before the effect has produced a value; and returning
2080
+ * `Some` of the produced value otherwise.
2081
+ *
2082
+ * If the timeout elapses without producing a value, the running effect will
2083
+ * be safely interrupted.
2084
+ *
2085
+ * WARNING: The effect returned by this method will not itself return until
2086
+ * the underlying effect is actually interrupted. This leads to more
2087
+ * predictable resource utilization. If early return is desired, then instead
2088
+ * of using `effect.timeout(d)`, use `effect.disconnect.timeout(d)`, which
2089
+ * first disconnects the effect's interruption signal before performing the
2090
+ * timeout, resulting in earliest possible return, before an underlying effect
2091
+ * has been successfully interrupted.
2092
+ *
2093
+ * @since 2.0.0
2094
+ * @category delays & timeouts
2095
+ */
2096
+ export declare const timeout: {
2097
+ (duration: Duration.DurationInput): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, Option.Option<A>>;
2098
+ <R, E, A>(self: Effect<R, E, A>, duration: Duration.DurationInput): Effect<R, E, Option.Option<A>>;
2099
+ };
2100
+ /**
2101
+ * The same as `timeout`, but instead of producing a `None` in the event of
2102
+ * timeout, it will produce the specified error.
2103
+ *
2104
+ * @since 2.0.0
2105
+ * @category delays & timeouts
2106
+ */
2107
+ export declare const timeoutFail: {
2108
+ <E1>(options: {
2109
+ readonly onTimeout: LazyArg<E1>;
2110
+ readonly duration: Duration.DurationInput;
2111
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E1 | E, A>;
2112
+ <R, E, A, E1>(self: Effect<R, E, A>, options: {
2113
+ readonly onTimeout: LazyArg<E1>;
2114
+ readonly duration: Duration.DurationInput;
2115
+ }): Effect<R, E | E1, A>;
2116
+ };
2117
+ /**
2118
+ * The same as `timeout`, but instead of producing a `None` in the event of
2119
+ * timeout, it will produce the specified failure.
2120
+ *
2121
+ * @since 2.0.0
2122
+ * @category delays & timeouts
2123
+ */
2124
+ export declare const timeoutFailCause: {
2125
+ <E1>(options: {
2126
+ readonly onTimeout: LazyArg<Cause.Cause<E1>>;
2127
+ readonly duration: Duration.DurationInput;
2128
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E1 | E, A>;
2129
+ <R, E, A, E1>(self: Effect<R, E, A>, options: {
2130
+ readonly onTimeout: LazyArg<Cause.Cause<E1>>;
2131
+ readonly duration: Duration.DurationInput;
2132
+ }): Effect<R, E | E1, A>;
2133
+ };
2134
+ /**
2135
+ * Returns an effect that will timeout this effect, returning either the
2136
+ * default value if the timeout elapses before the effect has produced a
2137
+ * value or returning the result of applying the function `onSuccess` to the
2138
+ * success value of the effect.
2139
+ *
2140
+ * If the timeout elapses without producing a value, the running effect will
2141
+ * be safely interrupted.
2142
+ *
2143
+ * @since 2.0.0
2144
+ * @category delays & timeouts
2145
+ */
2146
+ export declare const timeoutTo: {
2147
+ <A, B, B1>(options: {
2148
+ readonly onTimeout: LazyArg<B1>;
2149
+ readonly onSuccess: (a: A) => B;
2150
+ readonly duration: Duration.DurationInput;
2151
+ }): <R, E>(self: Effect<R, E, A>) => Effect<R, E, B | B1>;
2152
+ <R, E, A, B, B1>(self: Effect<R, E, A>, options: {
2153
+ readonly onTimeout: LazyArg<B1>;
2154
+ readonly onSuccess: (a: A) => B;
2155
+ readonly duration: Duration.DurationInput;
2156
+ }): Effect<R, E, B | B1>;
2157
+ };
2158
+ /**
2159
+ * Uses the default config provider to load the specified config, or fail with
2160
+ * an error of type Config.Error.
2161
+ *
2162
+ * @since 2.0.0
2163
+ * @category config
2164
+ */
2165
+ export declare const config: <A>(config: Config<A>) => Effect<never, ConfigError, A>;
2166
+ /**
2167
+ * Retrieves the default config provider, and passes it to the specified
2168
+ * function, which may return an effect that uses the provider to perform some
2169
+ * work or compute some value.
2170
+ *
2171
+ * @since 2.0.0
2172
+ * @category config
2173
+ */
2174
+ export declare const configProviderWith: <R, E, A>(f: (configProvider: ConfigProvider) => Effect<R, E, A>) => Effect<R, E, A>;
2175
+ /**
2176
+ * Executes the specified workflow with the specified configuration provider.
2177
+ *
2178
+ * @since 2.0.0
2179
+ * @category config
2180
+ */
2181
+ export declare const withConfigProvider: {
2182
+ (value: ConfigProvider): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
2183
+ <R, E, A>(effect: Effect<R, E, A>, value: ConfigProvider): Effect<R, E, A>;
2184
+ };
2185
+ /**
2186
+ * Sets the configuration provider to the specified value and restores it to its original value
2187
+ * when the scope is closed.
2188
+ *
2189
+ * @since 2.0.0
2190
+ * @category config
2191
+ */
2192
+ export declare const withConfigProviderScoped: (value: ConfigProvider) => Effect<Scope.Scope, never, void>;
2193
+ /**
2194
+ * @since 2.0.0
2195
+ * @category context
2196
+ */
2197
+ export declare const context: <R>() => Effect<R, never, Context.Context<R>>;
2198
+ /**
2199
+ * Accesses the context of the effect.
2200
+ *
2201
+ * @since 2.0.0
2202
+ * @category context
2203
+ */
2204
+ export declare const contextWith: <R, A>(f: (context: Context.Context<R>) => A) => Effect<R, never, A>;
2205
+ /**
2206
+ * Effectually accesses the context of the effect.
2207
+ *
2208
+ * @since 2.0.0
2209
+ * @category context
2210
+ */
2211
+ export declare const contextWithEffect: <R, R0, E, A>(f: (context: Context.Context<R0>) => Effect<R, E, A>) => Effect<R | R0, E, A>;
2212
+ /**
2213
+ * Provides some of the context required to run this effect,
2214
+ * leaving the remainder `R0`.
2215
+ *
2216
+ * @since 2.0.0
2217
+ * @category context
2218
+ */
2219
+ export declare const mapInputContext: {
2220
+ <R0, R>(f: (context: Context.Context<R0>) => Context.Context<R>): <E, A>(self: Effect<R, E, A>) => Effect<R0, E, A>;
2221
+ <R0, R, E, A>(self: Effect<R, E, A>, f: (context: Context.Context<R0>) => Context.Context<R>): Effect<R0, E, A>;
2222
+ };
2223
+ /**
2224
+ * Splits the context into two parts, providing one part using the
2225
+ * specified layer/context/runtime and leaving the remainder `R0`
2226
+ *
2227
+ * @since 2.0.0
2228
+ * @category context
2229
+ */
2230
+ export declare const provide: {
2231
+ <R2, E2, A2>(layer: Layer.Layer<R2, E2, A2>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | Exclude<R, A2>, E2 | E, A>;
2232
+ <R2>(context: Context.Context<R2>): <R, E, A>(self: Effect<R, E, A>) => Effect<Exclude<R, R2>, E, A>;
2233
+ <R2>(runtime: Runtime.Runtime<R2>): <R, E, A>(self: Effect<R, E, A>) => Effect<Exclude<R, R2>, E, A>;
2234
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, layer: Layer.Layer<R2, E2, A2>): Effect<R2 | Exclude<R, A2>, E | E2, A>;
2235
+ <R, E, A, R2>(self: Effect<R, E, A>, context: Context.Context<R2>): Effect<Exclude<R, R2>, E, A>;
2236
+ <R, E, A, R2>(self: Effect<R, E, A>, runtime: Runtime.Runtime<R2>): Effect<Exclude<R, R2>, E, A>;
2237
+ };
2238
+ /**
2239
+ * Provides the effect with the single service it requires. If the effect
2240
+ * requires more than one service use `provideContext` instead.
2241
+ *
2242
+ * @since 2.0.0
2243
+ * @category context
2244
+ */
2245
+ export declare const provideService: {
2246
+ <T extends Context.Tag<any, any>>(tag: T, service: Context.Tag.Service<T>): <R, E, A>(self: Effect<R, E, A>) => Effect<Exclude<R, Context.Tag.Identifier<T>>, E, A>;
2247
+ <R, E, A, T extends Context.Tag<any, any>>(self: Effect<R, E, A>, tag: T, service: Context.Tag.Service<T>): Effect<Exclude<R, Context.Tag.Identifier<T>>, E, A>;
2248
+ };
2249
+ /**
2250
+ * Provides the effect with the single service it requires. If the effect
2251
+ * requires more than one service use `provideContext` instead.
2252
+ *
2253
+ * @since 2.0.0
2254
+ * @category context
2255
+ */
2256
+ export declare const provideServiceEffect: {
2257
+ <T extends Context.Tag<any, any>, R1, E1>(tag: T, effect: Effect<R1, E1, Context.Tag.Service<T>>): <R, E, A>(self: Effect<R, E, A>) => Effect<R1 | Exclude<R, Context.Tag.Identifier<T>>, E1 | E, A>;
2258
+ <R, E, A, T extends Context.Tag<any, any>, R1, E1>(self: Effect<R, E, A>, tag: T, effect: Effect<R1, E1, Context.Tag.Service<T>>): Effect<R1 | Exclude<R, Context.Tag.Identifier<T>>, E | E1, A>;
2259
+ };
2260
+ /**
2261
+ * @since 2.0.0
2262
+ * @category context
2263
+ */
2264
+ export declare const serviceFunction: <T extends Context.Tag<any, any>, Args extends Array<any>, A>(service: T, f: (_: Context.Tag.Service<T>) => (...args: Args) => A) => (...args: Args) => Effect<Context.Tag.Identifier<T>, never, A>;
2265
+ /**
2266
+ * @since 2.0.0
2267
+ * @category context
2268
+ */
2269
+ export declare const serviceFunctionEffect: <T extends Context.Tag<any, any>, Args extends Array<any>, R, E, A>(service: T, f: (_: Context.Tag.Service<T>) => (...args: Args) => Effect<R, E, A>) => (...args: Args) => Effect<R | Context.Tag.Identifier<T>, E, A>;
2270
+ /**
2271
+ * @since 2.0.0
2272
+ * @category context
2273
+ */
2274
+ export declare const serviceFunctions: <I, S>(tag: Context.Tag<I, S>) => {
2275
+ [k in {
2276
+ [k in keyof S]: S[k] extends (...args: Array<any>) => Effect<any, any, any> ? k : never;
2277
+ }[keyof S]]: S[k] extends (...args: infer Args) => Effect<infer R, infer E, infer A> ? (...args: Args) => Effect<R | I, E, A> : never;
2278
+ };
2279
+ /**
2280
+ * @since 2.0.0
2281
+ * @category context
2282
+ */
2283
+ export declare const serviceConstants: <I, S>(tag: Context.Tag<I, S>) => {
2284
+ [k in {
2285
+ [k in keyof S]: S[k] extends Effect<any, any, any> ? k : never;
2286
+ }[keyof S]]: S[k] extends Effect<infer R, infer E, infer A> ? Effect<R | I, E, A> : never;
2287
+ };
2288
+ /**
2289
+ * @since 2.0.0
2290
+ * @category context
2291
+ */
2292
+ export declare const serviceMembers: <I, S>(tag: Context.Tag<I, S>) => {
2293
+ functions: {
2294
+ [k in {
2295
+ [k in keyof S]: S[k] extends (...args: Array<any>) => Effect<any, any, any> ? k : never;
2296
+ }[keyof S]]: S[k] extends (...args: infer Args) => Effect<infer R, infer E, infer A> ? (...args: Args) => Effect<R | I, E, A> : never;
2297
+ };
2298
+ constants: {
2299
+ [k in {
2300
+ [k in keyof S]: S[k] extends Effect<any, any, any> ? k : never;
2301
+ }[keyof S]]: S[k] extends Effect<infer R, infer E, infer A> ? Effect<R | I, E, A> : never;
2302
+ };
2303
+ };
2304
+ /**
2305
+ * @since 2.0.0
2306
+ * @category context
2307
+ */
2308
+ export declare const serviceOption: <I, A>(tag: Context.Tag<I, A>) => Effect<never, never, Option.Option<A>>;
2309
+ /**
2310
+ * Updates the service with the required service entry.
2311
+ *
2312
+ * @since 2.0.0
2313
+ * @category context
2314
+ */
2315
+ export declare const updateService: {
2316
+ <T extends Context.Tag<any, any>>(tag: T, f: (service: Context.Tag.Service<T>) => Context.Tag.Service<T>): <R, E, A>(self: Effect<R, E, A>) => Effect<R | Context.Tag.Identifier<T>, E, A>;
2317
+ <R, E, A, T extends Context.Tag<any, any>>(self: Effect<R, E, A>, tag: T, f: (service: Context.Tag.Service<T>) => Context.Tag.Service<T>): Effect<R | Context.Tag.Identifier<T>, E, A>;
2318
+ };
2319
+ /**
2320
+ * @since 2.0.0
2321
+ * @category do notation
2322
+ */
2323
+ export declare const Do: Effect<never, never, {}>;
2324
+ /**
2325
+ * Binds an effectful value in a `do` scope
2326
+ *
2327
+ * @since 2.0.0
2328
+ * @category do notation
2329
+ */
2330
+ export declare const bind: {
2331
+ <N extends string, K, R2, E2, A>(tag: Exclude<N, keyof K>, f: (_: K) => Effect<R2, E2, A>): <R, E>(self: Effect<R, E, K>) => Effect<R2 | R, E2 | E, MergeRecord<K, {
2332
+ [k in N]: A;
2333
+ }>>;
2334
+ <R, E, N extends string, K, R2, E2, A>(self: Effect<R, E, K>, tag: Exclude<N, keyof K>, f: (_: K) => Effect<R2, E2, A>): Effect<R | R2, E | E2, MergeRecord<K, {
2335
+ [k in N]: A;
2336
+ }>>;
2337
+ };
2338
+ /**
2339
+ * @category do notation
2340
+ * @since 2.0.0
2341
+ */
2342
+ export declare const bindTo: {
2343
+ <N extends string>(tag: N): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, Record<N, A>>;
2344
+ <R, E, A, N extends string>(self: Effect<R, E, A>, tag: N): Effect<R, E, Record<N, A>>;
2345
+ };
2346
+ declare const let_: {
2347
+ <N extends string, K, A>(tag: Exclude<N, keyof K>, f: (_: K) => A): <R, E>(self: Effect<R, E, K>) => Effect<R, E, MergeRecord<K, {
2348
+ [k in N]: A;
2349
+ }>>;
2350
+ <R, E, K, N extends string, A>(self: Effect<R, E, K>, tag: Exclude<N, keyof K>, f: (_: K) => A): Effect<R, E, MergeRecord<K, {
2351
+ [k in N]: A;
2352
+ }>>;
2353
+ };
2354
+ export {
2355
+ /**
2356
+ * Like bind for values
2357
+ *
2358
+ * @since 2.0.0
2359
+ * @category do notation
2360
+ */
2361
+ let_ as let };
2362
+ /**
2363
+ * Returns an effect whose failure and success have been lifted into an
2364
+ * `Either`. The resulting effect cannot fail, because the failure case has
2365
+ * been exposed as part of the `Either` success case.
2366
+ *
2367
+ * This method is useful for recovering from effects that may fail.
2368
+ *
2369
+ * The error parameter of the returned `Effect` is `never`, since it is
2370
+ * guaranteed the effect does not model failure.
2371
+ *
2372
+ * @since 2.0.0
2373
+ * @category conversions
2374
+ */
2375
+ export declare const either: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, Either.Either<E, A>>;
2376
+ /**
2377
+ * @since 2.0.0
2378
+ * @category conversions
2379
+ */
2380
+ export declare const exit: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, Exit.Exit<E, A>>;
2381
+ /**
2382
+ * @since 2.0.0
2383
+ * @category conversions
2384
+ */
2385
+ export declare const intoDeferred: {
2386
+ <E, A>(deferred: Deferred.Deferred<E, A>): <R>(self: Effect<R, E, A>) => Effect<R, never, boolean>;
2387
+ <R, E, A>(self: Effect<R, E, A>, deferred: Deferred.Deferred<E, A>): Effect<R, never, boolean>;
2388
+ };
2389
+ /**
2390
+ * Executes this effect, skipping the error but returning optionally the
2391
+ * success.
2392
+ *
2393
+ * @since 2.0.0
2394
+ * @category conversions
2395
+ */
2396
+ export declare const option: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, Option.Option<A>>;
2397
+ declare const if_: {
2398
+ <R1, R2, E1, E2, A, A1>(options: {
2399
+ readonly onTrue: Effect<R1, E1, A>;
2400
+ readonly onFalse: Effect<R2, E2, A1>;
2401
+ }): <R = never, E = never>(self: boolean | Effect<R, E, boolean>) => Effect<R1 | R2 | R, E1 | E2 | E, A | A1>;
2402
+ <R1, R2, E1, E2, A, A1>(self: boolean, options: {
2403
+ readonly onTrue: Effect<R1, E1, A>;
2404
+ readonly onFalse: Effect<R2, E2, A1>;
2405
+ }): Effect<R1 | R2, E1 | E2, A | A1>;
2406
+ <R, E, R1, R2, E1, E2, A, A1>(self: Effect<R, E, boolean>, options: {
2407
+ readonly onTrue: Effect<R1, E1, A>;
2408
+ readonly onFalse: Effect<R2, E2, A1>;
2409
+ }): Effect<R | R1 | R2, E | E1 | E2, A | A1>;
2410
+ };
2411
+ export {
2412
+ /**
2413
+ * Runs `onTrue` if the result of `self` is `true` and `onFalse` otherwise.
2414
+ *
2415
+ * @since 2.0.0
2416
+ * @category filtering & conditionals
2417
+ */
2418
+ if_ as if };
2419
+ /**
2420
+ * Filter the specified effect with the provided function, dying with specified
2421
+ * defect if the predicate fails.
2422
+ *
2423
+ * @since 2.0.0
2424
+ * @category filtering & conditionals
2425
+ */
2426
+ export declare const filterOrDie: {
2427
+ <A, B extends A, X extends A>(filter: Refinement<A, B>, orDieWith: (a: X) => unknown): <R, E>(self: Effect<R, E, A>) => Effect<R, E, B>;
2428
+ <A, X extends A, Y extends A>(filter: Predicate<X>, orDieWith: (a: Y) => unknown): <R, E>(self: Effect<R, E, A>) => Effect<R, E, A>;
2429
+ <R, E, A, B extends A, X extends A>(self: Effect<R, E, A>, filter: Refinement<A, B>, orDieWith: (a: X) => unknown): Effect<R, E, B>;
2430
+ <R, E, A, X extends A, Y extends A>(self: Effect<R, E, A>, filter: Predicate<X>, orDieWith: (a: Y) => unknown): Effect<R, E, A>;
2431
+ };
2432
+ /**
2433
+ * Filter the specified effect with the provided function, dying with specified
2434
+ * message if the predicate fails.
2435
+ *
2436
+ * @since 2.0.0
2437
+ * @category filtering & conditionals
2438
+ */
2439
+ export declare const filterOrDieMessage: {
2440
+ <A, B extends A>(filter: Refinement<A, B>, message: string): <R, E>(self: Effect<R, E, A>) => Effect<R, E, B>;
2441
+ <A, X extends A>(filter: Predicate<X>, message: string): <R, E>(self: Effect<R, E, A>) => Effect<R, E, A>;
2442
+ <R, E, A, B extends A>(self: Effect<R, E, A>, filter: Refinement<A, B>, message: string): Effect<R, E, B>;
2443
+ <R, E, A, X extends A>(self: Effect<R, E, A>, filter: Predicate<X>, message: string): Effect<R, E, A>;
2444
+ };
2445
+ /**
2446
+ * Filters the specified effect with the provided function returning the value
2447
+ * of the effect if it is successful, otherwise returns the value of `orElse`.
2448
+ *
2449
+ * @since 2.0.0
2450
+ * @category filtering & conditionals
2451
+ */
2452
+ export declare const filterOrElse: {
2453
+ <A, B extends A, X extends A, R2, E2, C>(filter: Refinement<A, B>, orElse: (a: X) => Effect<R2, E2, C>): <R, E>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, B | C>;
2454
+ <A, X extends A, Y extends A, R2, E2, B>(filter: Predicate<X>, orElse: (a: Y) => Effect<R2, E2, B>): <R, E>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A | B>;
2455
+ <R, E, A, B extends A, X extends A, R2, E2, C>(self: Effect<R, E, A>, filter: Refinement<A, B>, orElse: (a: X) => Effect<R2, E2, C>): Effect<R | R2, E | E2, B | C>;
2456
+ <R, E, A, X extends A, Y extends A, R2, E2, B>(self: Effect<R, E, A>, filter: Predicate<X>, orElse: (a: Y) => Effect<R2, E2, B>): Effect<R | R2, E | E2, A | B>;
2457
+ };
2458
+ /**
2459
+ * Filter the specified effect with the provided function, failing with specified
2460
+ * error if the predicate fails.
2461
+ *
2462
+ * @since 2.0.0
2463
+ * @category filtering & conditionals
2464
+ */
2465
+ export declare const filterOrFail: {
2466
+ <A, B extends A, X extends A, E2>(filter: Refinement<A, B>, orFailWith: (a: X) => E2): <R, E>(self: Effect<R, E, A>) => Effect<R, E2 | E, B>;
2467
+ <A, X extends A, Y extends A, E2>(filter: Predicate<X>, orFailWith: (a: Y) => E2): <R, E>(self: Effect<R, E, A>) => Effect<R, E2 | E, A>;
2468
+ <R, E, A, B extends A, X extends A, E2>(self: Effect<R, E, A>, filter: Refinement<A, B>, orFailWith: (a: X) => E2): Effect<R, E | E2, B>;
2469
+ <R, E, A, X extends A, Y extends A, E2>(self: Effect<R, E, A>, filter: Predicate<X>, orFailWith: (a: Y) => E2): Effect<R, E | E2, A>;
2470
+ };
2471
+ /**
2472
+ * The moral equivalent of `if (!p) exp`.
2473
+ *
2474
+ * @since 2.0.0
2475
+ * @category filtering & conditionals
2476
+ */
2477
+ export declare const unless: {
2478
+ (predicate: LazyArg<boolean>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, Option.Option<A>>;
2479
+ <R, E, A>(self: Effect<R, E, A>, predicate: LazyArg<boolean>): Effect<R, E, Option.Option<A>>;
2480
+ };
2481
+ /**
2482
+ * The moral equivalent of `if (!p) exp` when `p` has side-effects.
2483
+ *
2484
+ * @since 2.0.0
2485
+ * @category filtering & conditionals
2486
+ */
2487
+ export declare const unlessEffect: {
2488
+ <R2, E2>(predicate: Effect<R2, E2, boolean>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, Option.Option<A>>;
2489
+ <R, E, A, R2, E2>(self: Effect<R, E, A>, predicate: Effect<R2, E2, boolean>): Effect<R | R2, E | E2, Option.Option<A>>;
2490
+ };
2491
+ /**
2492
+ * The moral equivalent of `if (p) exp`.
2493
+ *
2494
+ * @since 2.0.0
2495
+ * @category filtering & conditionals
2496
+ */
2497
+ export declare const when: {
2498
+ (predicate: LazyArg<boolean>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, Option.Option<A>>;
2499
+ <R, E, A>(self: Effect<R, E, A>, predicate: LazyArg<boolean>): Effect<R, E, Option.Option<A>>;
2500
+ };
2501
+ /**
2502
+ * @since 2.0.0
2503
+ * @category filtering & conditionals
2504
+ */
2505
+ export declare const whenEffect: {
2506
+ <R, E>(predicate: Effect<R, E, boolean>): <R2, E2, A>(effect: Effect<R2, E2, A>) => Effect<R | R2, E | E2, Option.Option<A>>;
2507
+ <R, E, A, R2, E2>(self: Effect<R2, E2, A>, predicate: Effect<R, E, boolean>): Effect<R | R2, E | E2, Option.Option<A>>;
2508
+ };
2509
+ /**
2510
+ * Executes this workflow when value of the specified `FiberRef` satisfies the
2511
+ * predicate.
2512
+ *
2513
+ * @since 2.0.0
2514
+ * @category filtering & conditionals
2515
+ */
2516
+ export declare const whenFiberRef: {
2517
+ <S>(fiberRef: FiberRef.FiberRef<S>, predicate: Predicate<S>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, readonly [S, Option.Option<A>]>;
2518
+ <R, E, A, S>(self: Effect<R, E, A>, fiberRef: FiberRef.FiberRef<S>, predicate: Predicate<S>): Effect<R, E, readonly [S, Option.Option<A>]>;
2519
+ };
2520
+ /**
2521
+ * Executes this workflow when the value of the `Ref` satisfies the predicate.
2522
+ *
2523
+ * @since 2.0.0
2524
+ * @category filtering & conditionals
2525
+ */
2526
+ export declare const whenRef: {
2527
+ <S>(ref: Ref.Ref<S>, predicate: Predicate<S>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, readonly [S, Option.Option<A>]>;
2528
+ <R, E, A, S>(self: Effect<R, E, A>, ref: Ref.Ref<S>, predicate: Predicate<S>): Effect<R, E, readonly [S, Option.Option<A>]>;
2529
+ };
2530
+ /**
2531
+ * This function is a pipeable operator that maps over an `Effect` value,
2532
+ * flattening the result of the mapping function into a new `Effect` value.
2533
+ *
2534
+ * @param f - The mapping function to apply to the `Effect` value.
2535
+ * This function must return another `Effect` value.
2536
+ *
2537
+ * @returns A new `Effect` value that is the result of flattening the
2538
+ * mapped `Effect` value.
2539
+ *
2540
+ * @since 2.0.0
2541
+ * @category sequencing
2542
+ */
2543
+ export declare const flatMap: {
2544
+ <A, R1, E1, B>(f: (a: A) => Effect<R1, E1, B>): <R, E>(self: Effect<R, E, A>) => Effect<R1 | R, E1 | E, B>;
2545
+ <R, E, A, R1, E1, B>(self: Effect<R, E, A>, f: (a: A) => Effect<R1, E1, B>): Effect<R | R1, E | E1, B>;
2546
+ };
2547
+ /**
2548
+ * @since 2.0.0
2549
+ * @category sequencing
2550
+ */
2551
+ export declare const flatten: <R, E, R1, E1, A>(self: Effect<R, E, Effect<R1, E1, A>>) => Effect<R | R1, E | E1, A>;
2552
+ /**
2553
+ * Returns an effect that races this effect with all the specified effects,
2554
+ * yielding the value of the first effect to succeed with a value. Losers of
2555
+ * the race will be interrupted immediately
2556
+ *
2557
+ * @since 2.0.0
2558
+ * @category sequencing
2559
+ */
2560
+ export declare const raceAll: <R, E, A>(effects: Iterable<Effect<R, E, A>>) => Effect<R, E, A>;
2561
+ /**
2562
+ * Returns an effect that races this effect with the specified effect,
2563
+ * returning the first successful `A` from the faster side. If one effect
2564
+ * succeeds, the other will be interrupted. If neither succeeds, then the
2565
+ * effect will fail with some error.
2566
+ *
2567
+ * @since 2.0.0
2568
+ * @category sequencing
2569
+ */
2570
+ export declare const race: {
2571
+ <R2, E2, A2>(that: Effect<R2, E2, A2>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A2 | A>;
2572
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, that: Effect<R2, E2, A2>): Effect<R | R2, E | E2, A | A2>;
2573
+ };
2574
+ /**
2575
+ * Returns an effect that races this effect with the specified effect,
2576
+ * yielding the first result to complete, whether by success or failure. If
2577
+ * neither effect completes, then the composed effect will not complete.
2578
+ *
2579
+ * WARNING: The raced effect will safely interrupt the "loser", but will not
2580
+ * resume until the loser has been cleanly terminated. If early return is
2581
+ * desired, then instead of performing `l raceFirst r`, perform
2582
+ * `l.disconnect raceFirst r.disconnect`, which disconnects left and right
2583
+ * interrupt signal, allowing a fast return, with interruption performed
2584
+ * in the background.
2585
+ *
2586
+ * @since 2.0.0
2587
+ * @category sequencing
2588
+ */
2589
+ export declare const raceFirst: {
2590
+ <R2, E2, A2>(that: Effect<R2, E2, A2>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A2 | A>;
2591
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, that: Effect<R2, E2, A2>): Effect<R | R2, E | E2, A | A2>;
2592
+ };
2593
+ /**
2594
+ * Returns an effect that races this effect with the specified effect, calling
2595
+ * the specified finisher as soon as one result or the other has been computed.
2596
+ *
2597
+ * @since 2.0.0
2598
+ * @category sequencing
2599
+ */
2600
+ export declare const raceWith: {
2601
+ <E, A, R1, E1, A1, R2, E2, A2, R3, E3, A3>(other: Effect<R1, E1, A1>, options: {
2602
+ readonly onSelfDone: (exit: Exit.Exit<E, A>, fiber: Fiber.Fiber<E1, A1>) => Effect<R2, E2, A2>;
2603
+ readonly onOtherDone: (exit: Exit.Exit<E1, A1>, fiber: Fiber.Fiber<E, A>) => Effect<R3, E3, A3>;
2604
+ }): <R>(self: Effect<R, E, A>) => Effect<R1 | R2 | R3 | R, E2 | E3, A2 | A3>;
2605
+ <R, E, A, R1, E1, A1, R2, E2, A2, R3, E3, A3>(self: Effect<R, E, A>, other: Effect<R1, E1, A1>, options: {
2606
+ readonly onSelfDone: (exit: Exit.Exit<E, A>, fiber: Fiber.Fiber<E1, A1>) => Effect<R2, E2, A2>;
2607
+ readonly onOtherDone: (exit: Exit.Exit<E1, A1>, fiber: Fiber.Fiber<E, A>) => Effect<R3, E3, A3>;
2608
+ }): Effect<R | R1 | R2 | R3, E2 | E3, A2 | A3>;
2609
+ };
2610
+ /**
2611
+ * Summarizes a effect by computing some value before and after execution, and
2612
+ * then combining the values to produce a summary, together with the result of
2613
+ * execution.
2614
+ *
2615
+ * @since 2.0.0
2616
+ * @category sequencing
2617
+ */
2618
+ export declare const summarized: {
2619
+ <R2, E2, B, C>(summary: Effect<R2, E2, B>, f: (start: B, end: B) => C): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, readonly [C, A]>;
2620
+ <R, E, A, R2, E2, B, C>(self: Effect<R, E, A>, summary: Effect<R2, E2, B>, f: (start: B, end: B) => C): Effect<R | R2, E | E2, readonly [C, A]>;
2621
+ };
2622
+ /**
2623
+ * @since 2.0.0
2624
+ * @category sequencing
2625
+ */
2626
+ export declare const tap: {
2627
+ <A, X extends A, R2, E2, _>(f: (a: X) => Effect<R2, E2, _>): <R, E>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A>;
2628
+ <R, E, A, X extends A, R2, E2, _>(self: Effect<R, E, A>, f: (a: X) => Effect<R2, E2, _>): Effect<R | R2, E | E2, A>;
2629
+ };
2630
+ /**
2631
+ * Returns an effect that effectfully "peeks" at the failure or success of
2632
+ * this effect.
2633
+ *
2634
+ * @since 2.0.0
2635
+ * @category sequencing
2636
+ */
2637
+ export declare const tapBoth: {
2638
+ <E, XE extends E, A, XA extends A, R2, E2, X, R3, E3, X1>(options: {
2639
+ readonly onFailure: (e: XE) => Effect<R2, E2, X>;
2640
+ readonly onSuccess: (a: XA) => Effect<R3, E3, X1>;
2641
+ }): <R>(self: Effect<R, E, A>) => Effect<R2 | R3 | R, E | E2 | E3, A>;
2642
+ <R, E, A, XE extends E, XA extends A, R2, E2, X, R3, E3, X1>(self: Effect<R, E, A>, options: {
2643
+ readonly onFailure: (e: XE) => Effect<R2, E2, X>;
2644
+ readonly onSuccess: (a: XA) => Effect<R3, E3, X1>;
2645
+ }): Effect<R | R2 | R3, E | E2 | E3, A>;
2646
+ };
2647
+ /**
2648
+ * Returns an effect that effectually "peeks" at the defect of this effect.
2649
+ *
2650
+ * @since 2.0.0
2651
+ * @category sequencing
2652
+ */
2653
+ export declare const tapDefect: {
2654
+ <R2, E2, X>(f: (cause: Cause.Cause<never>) => Effect<R2, E2, X>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A>;
2655
+ <R, E, A, R2, E2, X>(self: Effect<R, E, A>, f: (cause: Cause.Cause<never>) => Effect<R2, E2, X>): Effect<R | R2, E | E2, A>;
2656
+ };
2657
+ /**
2658
+ * Returns an effect that effectfully "peeks" at the failure of this effect.
2659
+ *
2660
+ * @since 2.0.0
2661
+ * @category sequencing
2662
+ */
2663
+ export declare const tapError: {
2664
+ <E, XE extends E, R2, E2, X>(f: (e: XE) => Effect<R2, E2, X>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E | E2, A>;
2665
+ <R, E, XE extends E, A, R2, E2, X>(self: Effect<R, E, A>, f: (e: XE) => Effect<R2, E2, X>): Effect<R | R2, E | E2, A>;
2666
+ };
2667
+ /**
2668
+ * Returns an effect that effectfully "peeks" at the specific tagged failure of this effect.
2669
+ *
2670
+ * @since 2.0.0
2671
+ * @category sequencing
2672
+ */
2673
+ export declare const tapErrorTag: {
2674
+ <K extends (E extends {
2675
+ _tag: string;
2676
+ } ? E["_tag"] : never), E, R1, E1, A1>(k: K, f: (e: Extract<E, {
2677
+ _tag: K;
2678
+ }>) => Effect<R1, E1, A1>): <R, A>(self: Effect<R, E, A>) => Effect<R | R1, E | E1, A>;
2679
+ <R, E, A, K extends (E extends {
2680
+ _tag: string;
2681
+ } ? E["_tag"] : never), R1, E1, A1>(self: Effect<R, E, A>, k: K, f: (e: Extract<E, {
2682
+ _tag: K;
2683
+ }>) => Effect<R1, E1, A1>): Effect<R | R1, E | E1, A>;
2684
+ };
2685
+ /**
2686
+ * Returns an effect that effectually "peeks" at the cause of the failure of
2687
+ * this effect.
2688
+ *
2689
+ * @since 2.0.0
2690
+ * @category sequencing
2691
+ */
2692
+ export declare const tapErrorCause: {
2693
+ <E, XE extends E, R2, E2, X>(f: (cause: Cause.Cause<XE>) => Effect<R2, E2, X>): <R, A>(self: Effect<R, E, A>) => Effect<R2 | R, E | E2, A>;
2694
+ <R, E, A, XE extends E, R2, E2, X>(self: Effect<R, E, A>, f: (cause: Cause.Cause<XE>) => Effect<R2, E2, X>): Effect<R | R2, E | E2, A>;
2695
+ };
2696
+ /**
2697
+ * Repeats this effect forever (until the first error).
2698
+ *
2699
+ * @since 2.0.0
2700
+ * @category repetition / recursion
2701
+ */
2702
+ export declare const forever: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, never>;
2703
+ /**
2704
+ * Iterates with the specified effectual function. The moral equivalent of:
2705
+ *
2706
+ * ```ts
2707
+ * let s = initial
2708
+ *
2709
+ * while (cont(s)) {
2710
+ * s = body(s)
2711
+ * }
2712
+ *
2713
+ * return s
2714
+ * ```
2715
+ *
2716
+ * @since 2.0.0
2717
+ * @category repetition / recursion
2718
+ */
2719
+ export declare const iterate: <Z, R, E>(initial: Z, options: {
2720
+ readonly while: (z: Z) => boolean;
2721
+ readonly body: (z: Z) => Effect<R, E, Z>;
2722
+ }) => Effect<R, E, Z>;
2723
+ /**
2724
+ * Loops with the specified effectual function, collecting the results into a
2725
+ * list. The moral equivalent of:
2726
+ *
2727
+ * ```ts
2728
+ * let s = initial
2729
+ * let as = [] as readonly A[]
2730
+ *
2731
+ * while (cont(s)) {
2732
+ * as = [body(s), ...as]
2733
+ * s = inc(s)
2734
+ * }
2735
+ *
2736
+ * A.reverse(as)
2737
+ * ```
2738
+ *
2739
+ * @since 2.0.0
2740
+ * @category repetition / recursion
2741
+ */
2742
+ export declare const loop: {
2743
+ <Z, R, E, A>(initial: Z, options: {
2744
+ readonly while: (z: Z) => boolean;
2745
+ readonly step: (z: Z) => Z;
2746
+ readonly body: (z: Z) => Effect<R, E, A>;
2747
+ readonly discard?: false;
2748
+ }): Effect<R, E, Array<A>>;
2749
+ <Z, R, E, A>(initial: Z, options: {
2750
+ readonly while: (z: Z) => boolean;
2751
+ readonly step: (z: Z) => Z;
2752
+ readonly body: (z: Z) => Effect<R, E, A>;
2753
+ readonly discard: true;
2754
+ }): Effect<R, E, void>;
2755
+ };
2756
+ /**
2757
+ * Returns a new effect that repeats this effect according to the specified
2758
+ * schedule or until the first failure. Scheduled recurrences are in addition
2759
+ * to the first execution, so that `io.repeat(Schedule.once)` yields an effect
2760
+ * that executes `io`, and then if that succeeds, executes `io` an additional
2761
+ * time.
2762
+ *
2763
+ * @since 2.0.0
2764
+ * @category repetition / recursion
2765
+ */
2766
+ export declare const repeat: {
2767
+ <R1, A extends A0, A0, B>(schedule: Schedule.Schedule<R1, A, B>): <R, E>(self: Effect<R, E, A>) => Effect<R1 | R, E, B>;
2768
+ <R, E, A extends A0, A0, R1, B>(self: Effect<R, E, A>, schedule: Schedule.Schedule<R1, A0, B>): Effect<R | R1, E, B>;
2769
+ };
2770
+ /**
2771
+ * Returns a new effect that repeats this effect the specified number of times
2772
+ * or until the first failure. Repeats are in addition to the first execution,
2773
+ * so that `io.repeatN(1)` yields an effect that executes `io`, and then if
2774
+ * that succeeds, executes `io` an additional time.
2775
+ *
2776
+ * @since 2.0.0
2777
+ * @category repetition / recursion
2778
+ */
2779
+ export declare const repeatN: {
2780
+ (n: number): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
2781
+ <R, E, A>(self: Effect<R, E, A>, n: number): Effect<R, E, A>;
2782
+ };
2783
+ /**
2784
+ * Returns a new effect that repeats this effect according to the specified
2785
+ * schedule or until the first failure, at which point, the failure value and
2786
+ * schedule output are passed to the specified handler.
2787
+ *
2788
+ * Scheduled recurrences are in addition to the first execution, so that
2789
+ * `pipe(effect, Effect.repeat(Schedule.once()))` yields an effect that executes
2790
+ * `effect`, and then if that succeeds, executes `effect` an additional time.
2791
+ *
2792
+ * @since 2.0.0
2793
+ * @category repetition / recursion
2794
+ */
2795
+ export declare const repeatOrElse: {
2796
+ <R2, A extends A0, A0, B, E, R3, E2>(schedule: Schedule.Schedule<R2, A, B>, orElse: (error: E, option: Option.Option<B>) => Effect<R3, E2, B>): <R>(self: Effect<R, E, A>) => Effect<R2 | R3 | R, E2, B>;
2797
+ <R, E, A extends A0, A0, R2, B, R3, E2>(self: Effect<R, E, A>, schedule: Schedule.Schedule<R2, A0, B>, orElse: (error: E, option: Option.Option<B>) => Effect<R3, E2, B>): Effect<R | R2 | R3, E2, B>;
2798
+ };
2799
+ /**
2800
+ * Repeats this effect until its value satisfies the specified predicate or
2801
+ * until the first failure.
2802
+ *
2803
+ * @since 2.0.0
2804
+ * @category repetition / recursion
2805
+ */
2806
+ export declare const repeatUntil: {
2807
+ <A, B extends A>(f: Refinement<A, B>): <R, E>(self: Effect<R, E, A>) => Effect<R, E, B>;
2808
+ <A>(f: Predicate<A>): <R, E>(self: Effect<R, E, A>) => Effect<R, E, A>;
2809
+ <R, E, A, B extends A>(self: Effect<R, E, A>, f: Predicate<A>): Effect<R, E, B>;
2810
+ <R, E, A>(self: Effect<R, E, A>, f: Predicate<A>): Effect<R, E, A>;
2811
+ };
2812
+ /**
2813
+ * Repeats this effect until its value satisfies the specified effectful
2814
+ * predicate or until the first failure.
2815
+ *
2816
+ * @since 2.0.0
2817
+ * @category repetition / recursion
2818
+ */
2819
+ export declare const repeatUntilEffect: {
2820
+ <A, R2, E2>(f: (a: A) => Effect<R2, E2, boolean>): <R, E>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A>;
2821
+ <R, E, A, R2, E2>(self: Effect<R, E, A>, f: (a: A) => Effect<R2, E2, boolean>): Effect<R | R2, E | E2, A>;
2822
+ };
2823
+ /**
2824
+ * Repeats this effect while its value satisfies the specified effectful
2825
+ * predicate or until the first failure.
2826
+ *
2827
+ * @since 2.0.0
2828
+ * @category repetition / recursion
2829
+ */
2830
+ export declare const repeatWhile: {
2831
+ <A>(f: Predicate<A>): <R, E>(self: Effect<R, E, A>) => Effect<R, E, A>;
2832
+ <R, E, A>(self: Effect<R, E, A>, f: Predicate<A>): Effect<R, E, A>;
2833
+ };
2834
+ /**
2835
+ * Repeats this effect while its value satisfies the specified effectful
2836
+ * predicate or until the first failure.
2837
+ *
2838
+ * @since 2.0.0
2839
+ * @category repetition / recursion
2840
+ */
2841
+ export declare const repeatWhileEffect: {
2842
+ <R1, A, E2>(f: (a: A) => Effect<R1, E2, boolean>): <R, E>(self: Effect<R, E, A>) => Effect<R1 | R, E2 | E, A>;
2843
+ <R, E, R1, A, E2>(self: Effect<R, E, A>, f: (a: A) => Effect<R1, E2, boolean>): Effect<R | R1, E | E2, A>;
2844
+ };
2845
+ /**
2846
+ * Runs this effect according to the specified schedule.
2847
+ *
2848
+ * See `scheduleFrom` for a variant that allows the schedule's decision to
2849
+ * depend on the result of this effect.
2850
+ *
2851
+ * @since 2.0.0
2852
+ * @category repetition / recursion
2853
+ */
2854
+ export declare const schedule: {
2855
+ <R2, Out>(schedule: Schedule.Schedule<R2, unknown, Out>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E, Out>;
2856
+ <R, E, A, R2, Out>(self: Effect<R, E, A>, schedule: Schedule.Schedule<R2, unknown, Out>): Effect<R | R2, E, Out>;
2857
+ };
2858
+ /**
2859
+ * Runs this effect according to the specified schedule in a new fiber
2860
+ * attached to the current scope.
2861
+ *
2862
+ * @since 2.0.0
2863
+ * @category repetition / recursion
2864
+ */
2865
+ export declare const scheduleForked: {
2866
+ <R2, Out>(schedule: Schedule.Schedule<R2, unknown, Out>): <R, E, A>(self: Effect<R, E, A>) => Effect<Scope.Scope | R2 | R, never, Fiber.RuntimeFiber<E, Out>>;
2867
+ <R, E, A, R2, Out>(self: Effect<R, E, A>, schedule: Schedule.Schedule<R2, unknown, Out>): Effect<Scope.Scope | R | R2, never, Fiber.RuntimeFiber<E, Out>>;
2868
+ };
2869
+ /**
2870
+ * Runs this effect according to the specified schedule starting from the
2871
+ * specified input value.
2872
+ *
2873
+ * @since 2.0.0
2874
+ * @category repetition / recursion
2875
+ */
2876
+ export declare const scheduleFrom: {
2877
+ <R2, In, Out>(initial: In, schedule: Schedule.Schedule<R2, In, Out>): <R, E>(self: Effect<R, E, In>) => Effect<R2 | R, E, Out>;
2878
+ <R, E, In, R2, Out>(self: Effect<R, E, In>, initial: In, schedule: Schedule.Schedule<R2, In, Out>): Effect<R | R2, E, Out>;
2879
+ };
2880
+ /**
2881
+ * @since 2.0.0
2882
+ * @category repetition / recursion
2883
+ */
2884
+ export declare const whileLoop: <R, E, A>(options: {
2885
+ readonly while: LazyArg<boolean>;
2886
+ readonly body: LazyArg<Effect<R, E, A>>;
2887
+ readonly step: (a: A) => void;
2888
+ }) => Effect<R, E, void>;
2889
+ /**
2890
+ * Returns a collection of all `FiberRef` values for the fiber running this
2891
+ * effect.
2892
+ *
2893
+ * @since 2.0.0
2894
+ * @category fiber refs
2895
+ */
2896
+ export declare const getFiberRefs: Effect<never, never, FiberRefs.FiberRefs>;
2897
+ /**
2898
+ * Inherits values from all `FiberRef` instances into current fiber.
2899
+ *
2900
+ * @since 2.0.0
2901
+ * @category fiber refs
2902
+ */
2903
+ export declare const inheritFiberRefs: (childFiberRefs: FiberRefs.FiberRefs) => Effect<never, never, void>;
2904
+ /**
2905
+ * @since 2.0.0
2906
+ * @category fiber refs
2907
+ */
2908
+ export declare const locally: {
2909
+ <A>(self: FiberRef.FiberRef<A>, value: A): <R, E, B>(use: Effect<R, E, B>) => Effect<R, E, B>;
2910
+ <R, E, B, A>(use: Effect<R, E, B>, self: FiberRef.FiberRef<A>, value: A): Effect<R, E, B>;
2911
+ };
2912
+ /**
2913
+ * @since 2.0.0
2914
+ * @category fiber refs
2915
+ */
2916
+ export declare const locallyWith: {
2917
+ <A>(self: FiberRef.FiberRef<A>, f: (a: A) => A): <R, E, B>(use: Effect<R, E, B>) => Effect<R, E, B>;
2918
+ <R, E, B, A>(use: Effect<R, E, B>, self: FiberRef.FiberRef<A>, f: (a: A) => A): Effect<R, E, B>;
2919
+ };
2920
+ /**
2921
+ * @since 2.0.0
2922
+ * @category fiber refs
2923
+ */
2924
+ export declare const locallyScoped: {
2925
+ <A>(value: A): (self: FiberRef.FiberRef<A>) => Effect<Scope.Scope, never, void>;
2926
+ <A>(self: FiberRef.FiberRef<A>, value: A): Effect<Scope.Scope, never, void>;
2927
+ };
2928
+ /**
2929
+ * @since 2.0.0
2930
+ * @category fiber refs
2931
+ */
2932
+ export declare const locallyScopedWith: {
2933
+ <A>(f: (a: A) => A): (self: FiberRef.FiberRef<A>) => Effect<Scope.Scope, never, void>;
2934
+ <A>(self: FiberRef.FiberRef<A>, f: (a: A) => A): Effect<Scope.Scope, never, void>;
2935
+ };
2936
+ /**
2937
+ * Applies the specified changes to the `FiberRef` values for the fiber
2938
+ * running this workflow.
2939
+ *
2940
+ * @since 2.0.0
2941
+ * @category fiber refs
2942
+ */
2943
+ export declare const patchFiberRefs: (patch: FiberRefsPatch.FiberRefsPatch) => Effect<never, never, void>;
2944
+ /**
2945
+ * Sets the `FiberRef` values for the fiber running this effect to the values
2946
+ * in the specified collection of `FiberRef` values.
2947
+ *
2948
+ * @since 2.0.0
2949
+ * @category fiber refs
2950
+ */
2951
+ export declare const setFiberRefs: (fiberRefs: FiberRefs.FiberRefs) => Effect<never, never, void>;
2952
+ /**
2953
+ * Updates the `FiberRef` values for the fiber running this effect using the
2954
+ * specified function.
2955
+ *
2956
+ * @since 2.0.0
2957
+ * @category fiber refs
2958
+ */
2959
+ export declare const updateFiberRefs: (f: (fiberId: FiberId.Runtime, fiberRefs: FiberRefs.FiberRefs) => FiberRefs.FiberRefs) => Effect<never, never, void>;
2960
+ /**
2961
+ * Returns `true` if this effect is a failure, `false` otherwise.
2962
+ *
2963
+ * @since 2.0.0
2964
+ * @category getters & folding
2965
+ */
2966
+ export declare const isFailure: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, boolean>;
2967
+ /**
2968
+ * Returns `true` if this effect is a success, `false` otherwise.
2969
+ *
2970
+ * @since 2.0.0
2971
+ * @category getters & folding
2972
+ */
2973
+ export declare const isSuccess: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, boolean>;
2974
+ /**
2975
+ * Folds over the failure value or the success value to yield an effect that
2976
+ * does not fail, but succeeds with the value returned by the left or right
2977
+ * function passed to `match`.
2978
+ *
2979
+ * @since 2.0.0
2980
+ * @category getters & folding
2981
+ */
2982
+ export declare const match: {
2983
+ <E, A, A2, A3>(options: {
2984
+ readonly onFailure: (error: E) => A2;
2985
+ readonly onSuccess: (value: A) => A3;
2986
+ }): <R>(self: Effect<R, E, A>) => Effect<R, never, A2 | A3>;
2987
+ <R, E, A, A2, A3>(self: Effect<R, E, A>, options: {
2988
+ readonly onFailure: (error: E) => A2;
2989
+ readonly onSuccess: (value: A) => A3;
2990
+ }): Effect<R, never, A2 | A3>;
2991
+ };
2992
+ /**
2993
+ * @since 2.0.0
2994
+ * @category getters & folding
2995
+ */
2996
+ export declare const matchCause: {
2997
+ <E, A2, A, A3>(options: {
2998
+ readonly onFailure: (cause: Cause.Cause<E>) => A2;
2999
+ readonly onSuccess: (a: A) => A3;
3000
+ }): <R>(self: Effect<R, E, A>) => Effect<R, never, A2 | A3>;
3001
+ <R, E, A2, A, A3>(self: Effect<R, E, A>, options: {
3002
+ readonly onFailure: (cause: Cause.Cause<E>) => A2;
3003
+ readonly onSuccess: (a: A) => A3;
3004
+ }): Effect<R, never, A2 | A3>;
3005
+ };
3006
+ /**
3007
+ * @since 2.0.0
3008
+ * @category getters & folding
3009
+ */
3010
+ export declare const matchCauseEffect: {
3011
+ <E, A, R2, E2, A2, R3, E3, A3>(options: {
3012
+ readonly onFailure: (cause: Cause.Cause<E>) => Effect<R2, E2, A2>;
3013
+ readonly onSuccess: (a: A) => Effect<R3, E3, A3>;
3014
+ }): <R>(self: Effect<R, E, A>) => Effect<R2 | R3 | R, E2 | E3, A2 | A3>;
3015
+ <R, E, A, R2, E2, A2, R3, E3, A3>(self: Effect<R, E, A>, options: {
3016
+ readonly onFailure: (cause: Cause.Cause<E>) => Effect<R2, E2, A2>;
3017
+ readonly onSuccess: (a: A) => Effect<R3, E3, A3>;
3018
+ }): Effect<R | R2 | R3, E2 | E3, A2 | A3>;
3019
+ };
3020
+ /**
3021
+ * @since 2.0.0
3022
+ * @category getters & folding
3023
+ */
3024
+ export declare const matchEffect: {
3025
+ <E, A, R2, E2, A2, R3, E3, A3>(options: {
3026
+ readonly onFailure: (e: E) => Effect<R2, E2, A2>;
3027
+ readonly onSuccess: (a: A) => Effect<R3, E3, A3>;
3028
+ }): <R>(self: Effect<R, E, A>) => Effect<R2 | R3 | R, E2 | E3, A2 | A3>;
3029
+ <R, E, A, R2, E2, A2, R3, E3, A3>(self: Effect<R, E, A>, options: {
3030
+ readonly onFailure: (e: E) => Effect<R2, E2, A2>;
3031
+ readonly onSuccess: (a: A) => Effect<R3, E3, A3>;
3032
+ }): Effect<R | R2 | R3, E2 | E3, A2 | A3>;
3033
+ };
3034
+ /**
3035
+ * Logs the specified message or cause at the current log level.
3036
+ *
3037
+ * You can set the current log level using `FiberRef.currentLogLevel`.
3038
+ *
3039
+ * @since 2.0.0
3040
+ * @category logging
3041
+ */
3042
+ export declare const log: <A>(messageOrCause: A, supplementary?: A extends Cause.Cause<any> ? unknown : Cause.Cause<unknown>) => Effect<never, never, void>;
3043
+ /**
3044
+ * Logs the specified message or cause at the Trace log level.
3045
+ *
3046
+ * @since 2.0.0
3047
+ * @category logging
3048
+ */
3049
+ export declare const logTrace: <A>(messageOrCause: A, supplementary?: A extends Cause.Cause<any> ? unknown : Cause.Cause<unknown>) => Effect<never, never, void>;
3050
+ /**
3051
+ * Logs the specified message or cause at the Debug log level.
3052
+ *
3053
+ * @since 2.0.0
3054
+ * @category logging
3055
+ */
3056
+ export declare const logDebug: <A>(messageOrCause: A, supplementary?: A extends Cause.Cause<any> ? unknown : Cause.Cause<unknown>) => Effect<never, never, void>;
3057
+ /**
3058
+ * Logs the specified message or cause at the Info log level.
3059
+ *
3060
+ * @since 2.0.0
3061
+ * @category logging
3062
+ */
3063
+ export declare const logInfo: <A>(messageOrCause: A, supplementary?: A extends Cause.Cause<any> ? unknown : Cause.Cause<unknown>) => Effect<never, never, void>;
3064
+ /**
3065
+ * Logs the specified message or cause at the Warning log level.
3066
+ *
3067
+ * @since 2.0.0
3068
+ * @category logging
3069
+ */
3070
+ export declare const logWarning: <A>(messageOrCause: A, supplementary?: A extends Cause.Cause<any> ? unknown : Cause.Cause<unknown>) => Effect<never, never, void>;
3071
+ /**
3072
+ * Logs the specified message or cause at the Error log level.
3073
+ *
3074
+ * @since 2.0.0
3075
+ * @category logging
3076
+ */
3077
+ export declare const logError: <A>(messageOrCause: A, supplementary?: A extends Cause.Cause<any> ? unknown : Cause.Cause<unknown>) => Effect<never, never, void>;
3078
+ /**
3079
+ * Logs the specified message or cause at the Fatal log level.
3080
+ *
3081
+ * @since 2.0.0
3082
+ * @category logging
3083
+ */
3084
+ export declare const logFatal: <A>(messageOrCause: A, supplementary?: A extends Cause.Cause<any> ? unknown : Cause.Cause<unknown>) => Effect<never, never, void>;
3085
+ /**
3086
+ * Adjusts the label for the current logging span.
3087
+ *
3088
+ * @since 2.0.0
3089
+ * @category logging
3090
+ */
3091
+ export declare const withLogSpan: {
3092
+ (label: string): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3093
+ <R, E, A>(effect: Effect<R, E, A>, label: string): Effect<R, E, A>;
3094
+ };
3095
+ /**
3096
+ * Annotates each log in this effect with the specified log annotation.
3097
+ *
3098
+ * @since 2.0.0
3099
+ * @category logging
3100
+ */
3101
+ export declare const annotateLogs: {
3102
+ (key: string, value: unknown): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3103
+ (values: Record<string, unknown>): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3104
+ <R, E, A>(effect: Effect<R, E, A>, key: string, value: unknown): Effect<R, E, A>;
3105
+ <R, E, A>(effect: Effect<R, E, A>, values: Record<string, unknown>): Effect<R, E, A>;
3106
+ };
3107
+ /**
3108
+ * Retrieves the log annotations associated with the current scope.
3109
+ *
3110
+ * @since 2.0.0
3111
+ * @category logging
3112
+ */
3113
+ export declare const logAnnotations: Effect<never, never, HashMap.HashMap<string, unknown>>;
3114
+ /**
3115
+ * Decides wether child fibers will report or not unhandled errors via the logger
3116
+ *
3117
+ * @since 2.0.0
3118
+ * @category logging
3119
+ */
3120
+ export declare const withUnhandledErrorLogLevel: {
3121
+ (level: Option.Option<LogLevel>): <R, E, B>(self: Effect<R, E, B>) => Effect<R, E, B>;
3122
+ <R, E, B>(self: Effect<R, E, B>, level: Option.Option<LogLevel>): Effect<R, E, B>;
3123
+ };
3124
+ /**
3125
+ * Translates effect failure into death of the fiber, making all failures
3126
+ * unchecked and not a part of the type of the effect.
3127
+ *
3128
+ * @since 2.0.0
3129
+ * @category alternatives
3130
+ */
3131
+ export declare const orDie: <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, A>;
3132
+ /**
3133
+ * Keeps none of the errors, and terminates the fiber with them, using the
3134
+ * specified function to convert the `E` into a `Throwable`.
3135
+ *
3136
+ * @since 2.0.0
3137
+ * @category alternatives
3138
+ */
3139
+ export declare const orDieWith: {
3140
+ <E>(f: (error: E) => unknown): <R, A>(self: Effect<R, E, A>) => Effect<R, never, A>;
3141
+ <R, E, A>(self: Effect<R, E, A>, f: (error: E) => unknown): Effect<R, never, A>;
3142
+ };
3143
+ /**
3144
+ * Executes this effect and returns its value, if it succeeds, but otherwise
3145
+ * executes the specified effect.
3146
+ *
3147
+ * @since 2.0.0
3148
+ * @category alternatives
3149
+ */
3150
+ export declare const orElse: {
3151
+ <R2, E2, A2>(that: LazyArg<Effect<R2, E2, A2>>): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2, A2 | A>;
3152
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, that: LazyArg<Effect<R2, E2, A2>>): Effect<R | R2, E2, A | A2>;
3153
+ };
3154
+ /**
3155
+ * Executes this effect and returns its value, if it succeeds, but otherwise
3156
+ * fails with the specified error.
3157
+ *
3158
+ * @since 2.0.0
3159
+ * @category alternatives
3160
+ */
3161
+ export declare const orElseFail: {
3162
+ <E2>(evaluate: LazyArg<E2>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E2, A>;
3163
+ <R, E, A, E2>(self: Effect<R, E, A>, evaluate: LazyArg<E2>): Effect<R, E2, A>;
3164
+ };
3165
+ /**
3166
+ * Executes this effect and returns its value, if it succeeds, but
3167
+ * otherwise succeeds with the specified value.
3168
+ *
3169
+ * @since 2.0.0
3170
+ * @category alternatives
3171
+ */
3172
+ export declare const orElseSucceed: {
3173
+ <A2>(evaluate: LazyArg<A2>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, never, A2 | A>;
3174
+ <R, E, A, A2>(self: Effect<R, E, A>, evaluate: LazyArg<A2>): Effect<R, never, A | A2>;
3175
+ };
3176
+ /**
3177
+ * Retreives the `Random` service from the context.
3178
+ *
3179
+ * @since 2.0.0
3180
+ * @category random
3181
+ */
3182
+ export declare const random: Effect<never, never, Random.Random>;
3183
+ /**
3184
+ * Retreives the `Random` service from the context and uses it to run the
3185
+ * specified workflow.
3186
+ *
3187
+ * @since 2.0.0
3188
+ * @category random
3189
+ */
3190
+ export declare const randomWith: <R, E, A>(f: (random: Random.Random) => Effect<R, E, A>) => Effect<R, E, A>;
3191
+ /**
3192
+ * Returns an effect that accesses the runtime, which can be used to
3193
+ * (unsafely) execute tasks. This is useful for integration with legacy code
3194
+ * that must call back into Effect code.
3195
+ *
3196
+ * @since 2.0.0
3197
+ * @category runtime
3198
+ */
3199
+ export declare const runtime: <R>() => Effect<R, never, Runtime.Runtime<R>>;
3200
+ /**
3201
+ * Retrieves an effect that succeeds with the current runtime flags, which
3202
+ * govern behavior and features of the runtime system.
3203
+ *
3204
+ * @since 2.0.0
3205
+ * @category runtime
3206
+ */
3207
+ export declare const getRuntimeFlags: Effect<never, never, RuntimeFlags.RuntimeFlags>;
3208
+ /**
3209
+ * @since 2.0.0
3210
+ * @category runtime
3211
+ */
3212
+ export declare const patchRuntimeFlags: (patch: RuntimeFlagsPatch.RuntimeFlagsPatch) => Effect<never, never, void>;
3213
+ /**
3214
+ * @since 2.0.0
3215
+ * @category runtime
3216
+ */
3217
+ export declare const withRuntimeFlagsPatch: {
3218
+ (update: RuntimeFlagsPatch.RuntimeFlagsPatch): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
3219
+ <R, E, A>(self: Effect<R, E, A>, update: RuntimeFlagsPatch.RuntimeFlagsPatch): Effect<R, E, A>;
3220
+ };
3221
+ /**
3222
+ * @since 2.0.0
3223
+ * @category runtime
3224
+ */
3225
+ export declare const withRuntimeFlagsPatchScoped: (update: RuntimeFlagsPatch.RuntimeFlagsPatch) => Effect<Scope.Scope, never, void>;
3226
+ /**
3227
+ * Tags each metric in this effect with the specific tag.
3228
+ *
3229
+ * @since 2.0.0
3230
+ * @category metrics
3231
+ */
3232
+ export declare const tagMetrics: {
3233
+ (key: string, value: string): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3234
+ (values: Record<string, string>): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3235
+ <R, E, A>(effect: Effect<R, E, A>, key: string, value: string): Effect<R, E, A>;
3236
+ <R, E, A>(effect: Effect<R, E, A>, values: Record<string, string>): Effect<R, E, A>;
3237
+ };
3238
+ /**
3239
+ * Tags each metric in this effect with the specific tag.
3240
+ *
3241
+ * @since 2.0.0
3242
+ * @category metrics
3243
+ */
3244
+ export declare const labelMetrics: {
3245
+ (labels: Iterable<MetricLabel.MetricLabel>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
3246
+ <R, E, A>(self: Effect<R, E, A>, labels: Iterable<MetricLabel.MetricLabel>): Effect<R, E, A>;
3247
+ };
3248
+ /**
3249
+ * Tags each metric in this effect with the specific tag.
3250
+ *
3251
+ * @since 2.0.0
3252
+ * @category metrics
3253
+ */
3254
+ export declare const labelMetricsSet: {
3255
+ (labels: HashSet.HashSet<MetricLabel.MetricLabel>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
3256
+ <R, E, A>(self: Effect<R, E, A>, labels: HashSet.HashSet<MetricLabel.MetricLabel>): Effect<R, E, A>;
3257
+ };
3258
+ /**
3259
+ * Tags each metric in a scope with a the specific tag.
3260
+ *
3261
+ * @since 2.0.0
3262
+ * @category metrics
3263
+ */
3264
+ export declare const tagMetricsScoped: (key: string, value: string) => Effect<Scope.Scope, never, void>;
3265
+ /**
3266
+ * Tags each metric in a scope with a the specific tag.
3267
+ *
3268
+ * @since 2.0.0
3269
+ * @category metrics
3270
+ */
3271
+ export declare const labelMetricsScoped: (labels: ReadonlyArray<MetricLabel.MetricLabel>) => Effect<Scope.Scope, never, void>;
3272
+ /**
3273
+ * Tags each metric in a scope with a the specific tag.
3274
+ *
3275
+ * @since 2.0.0
3276
+ * @category metrics
3277
+ */
3278
+ export declare const labelMetricsScopedSet: (labels: HashSet.HashSet<MetricLabel.MetricLabel>) => Effect<Scope.Scope, never, void>;
3279
+ /**
3280
+ * Retrieves the metric labels associated with the current scope.
3281
+ *
3282
+ * @since 2.0.0
3283
+ * @category metrics
3284
+ */
3285
+ export declare const metricLabels: Effect<never, never, HashSet.HashSet<MetricLabel.MetricLabel>>;
3286
+ /**
3287
+ * @since 2.0.0
3288
+ * @category metrics
3289
+ */
3290
+ export declare const withMetric: {
3291
+ <Type, In, Out>(metric: Metric.Metric<Type, In, Out>): <R, E, A extends In>(self: Effect<R, E, A>) => Effect<R, E, A>;
3292
+ <R, E, A extends In, Type, In, Out>(self: Effect<R, E, A>, metric: Metric.Metric<Type, In, Out>): Effect<R, E, A>;
3293
+ };
3294
+ /**
3295
+ * Used to unify functions that would otherwise return `Effect<A, B, C> | Effect<D, E, F>`
3296
+ *
3297
+ * @category unify
3298
+ * @since 2.0.0
3299
+ */
3300
+ export declare const unifiedFn: <Args extends ReadonlyArray<any>, Ret extends Effect<any, any, any>>(f: (...args: Args) => Ret) => (...args: Args) => Effect.Unify<Ret>;
3301
+ /**
3302
+ * Used to unify effects that would otherwise be `Effect<A, B, C> | Effect<D, E, F>`
3303
+ *
3304
+ * @category unify
3305
+ * @since 2.0.0
3306
+ */
3307
+ export declare const unified: <Ret extends Effect<any, any, any>>(f: Ret) => Effect.Unify<Ret>;
3308
+ /**
3309
+ * @category semaphore
3310
+ * @since 2.0.0
3311
+ */
3312
+ export interface Permit {
3313
+ readonly index: number;
3314
+ }
3315
+ /**
3316
+ * @category semaphore
3317
+ * @since 2.0.0
3318
+ */
3319
+ export interface Semaphore {
3320
+ readonly withPermits: (permits: number) => <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
3321
+ readonly take: (permits: number) => Effect<never, never, number>;
3322
+ readonly release: (permits: number) => Effect<never, never, void>;
3323
+ }
3324
+ /**
3325
+ * Unsafely creates a new Semaphore
3326
+ *
3327
+ * @since 2.0.0
3328
+ * @category semaphore
3329
+ */
3330
+ export declare const unsafeMakeSemaphore: (permits: number) => Semaphore;
3331
+ /**
3332
+ * Creates a new Semaphore
3333
+ *
3334
+ * @since 2.0.0
3335
+ * @category semaphore
3336
+ */
3337
+ export declare const makeSemaphore: (permits: number) => Effect<never, never, Semaphore>;
3338
+ /**
3339
+ * @since 2.0.0
3340
+ * @category execution
3341
+ */
3342
+ export declare const runFork: <E, A>(effect: Effect<never, E, A>) => Fiber.RuntimeFiber<E, A>;
3343
+ /**
3344
+ * @since 2.0.0
3345
+ * @category execution
3346
+ */
3347
+ export declare const runCallback: <E, A>(effect: Effect<never, E, A>, onExit?: (exit: Exit.Exit<E, A>) => void) => Runtime.Cancel<E, A>;
3348
+ /**
3349
+ * Runs an `Effect` workflow, returning a `Promise` which resolves with the
3350
+ * result of the workflow or rejects with an error.
3351
+ *
3352
+ * @since 2.0.0
3353
+ * @category execution
3354
+ */
3355
+ export declare const runPromise: <E, A>(effect: Effect<never, E, A>) => Promise<A>;
3356
+ /**
3357
+ * Runs an `Effect` workflow, returning a `Promise` which resolves with the
3358
+ * `Exit` value of the workflow.
3359
+ *
3360
+ * @since 2.0.0
3361
+ * @category execution
3362
+ */
3363
+ export declare const runPromiseExit: <E, A>(effect: Effect<never, E, A>) => Promise<Exit.Exit<E, A>>;
3364
+ /**
3365
+ * @since 2.0.0
3366
+ * @category execution
3367
+ */
3368
+ export declare const runSync: <E, A>(effect: Effect<never, E, A>) => A;
3369
+ /**
3370
+ * @since 2.0.0
3371
+ * @category execution
3372
+ */
3373
+ export declare const runSyncExit: <E, A>(effect: Effect<never, E, A>) => Exit.Exit<E, A>;
3374
+ /**
3375
+ * Sequentially zips the this result with the specified result. Combines both
3376
+ * `Cause`s when both effects fail.
3377
+ *
3378
+ * @since 2.0.0
3379
+ * @category zipping
3380
+ */
3381
+ export declare const validate: {
3382
+ <R1, E1, B>(that: Effect<R1, E1, B>, options?: {
3383
+ readonly concurrent?: boolean;
3384
+ readonly batching?: boolean | "inherit";
3385
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<R1 | R, E1 | E, [A, B]>;
3386
+ <R, E, A, R1, E1, B>(self: Effect<R, E, A>, that: Effect<R1, E1, B>, options?: {
3387
+ readonly concurrent?: boolean;
3388
+ readonly batching?: boolean | "inherit";
3389
+ }): Effect<R | R1, E | E1, [A, B]>;
3390
+ };
3391
+ /**
3392
+ * Sequentially zips this effect with the specified effect using the specified
3393
+ * combiner function. Combines the causes in case both effect fail.
3394
+ *
3395
+ * @since 2.0.0
3396
+ * @category zipping
3397
+ */
3398
+ export declare const validateWith: {
3399
+ <A, R1, E1, B, C>(that: Effect<R1, E1, B>, f: (a: A, b: B) => C, options?: {
3400
+ readonly concurrent?: boolean;
3401
+ readonly batching?: boolean | "inherit";
3402
+ }): <R, E>(self: Effect<R, E, A>) => Effect<R1 | R, E1 | E, C>;
3403
+ <R, E, A, R1, E1, B, C>(self: Effect<R, E, A>, that: Effect<R1, E1, B>, f: (a: A, b: B) => C, options?: {
3404
+ readonly concurrent?: boolean;
3405
+ readonly batching?: boolean | "inherit";
3406
+ }): Effect<R | R1, E | E1, C>;
3407
+ };
3408
+ /**
3409
+ * @since 2.0.0
3410
+ * @category zipping
3411
+ */
3412
+ export declare const zip: {
3413
+ <R2, E2, A2>(that: Effect<R2, E2, A2>, options?: {
3414
+ readonly concurrent?: boolean;
3415
+ readonly batching?: boolean | "inherit";
3416
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, [A, A2]>;
3417
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, that: Effect<R2, E2, A2>, options?: {
3418
+ readonly concurrent?: boolean;
3419
+ readonly batching?: boolean | "inherit";
3420
+ }): Effect<R | R2, E | E2, [A, A2]>;
3421
+ };
3422
+ /**
3423
+ * @since 2.0.0
3424
+ * @category zipping
3425
+ */
3426
+ export declare const zipLeft: {
3427
+ <R2, E2, A2>(that: Effect<R2, E2, A2>, options?: {
3428
+ readonly concurrent?: boolean;
3429
+ readonly batching?: boolean | "inherit";
3430
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A>;
3431
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, that: Effect<R2, E2, A2>, options?: {
3432
+ readonly concurrent?: boolean;
3433
+ readonly batching?: boolean | "inherit";
3434
+ }): Effect<R | R2, E | E2, A>;
3435
+ };
3436
+ /**
3437
+ * @since 2.0.0
3438
+ * @category zipping
3439
+ */
3440
+ export declare const zipRight: {
3441
+ <R2, E2, A2>(that: Effect<R2, E2, A2>, options?: {
3442
+ readonly concurrent?: boolean;
3443
+ readonly batching?: boolean | "inherit";
3444
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, A2>;
3445
+ <R, E, A, R2, E2, A2>(self: Effect<R, E, A>, that: Effect<R2, E2, A2>, options?: {
3446
+ readonly concurrent?: boolean;
3447
+ readonly batching?: boolean | "inherit";
3448
+ }): Effect<R | R2, E | E2, A2>;
3449
+ };
3450
+ /**
3451
+ * @since 2.0.0
3452
+ * @category zipping
3453
+ */
3454
+ export declare const zipWith: {
3455
+ <R2, E2, A2, A, B>(that: Effect<R2, E2, A2>, f: (a: A, b: A2) => B, options?: {
3456
+ readonly concurrent?: boolean;
3457
+ readonly batching?: boolean | "inherit";
3458
+ }): <R, E>(self: Effect<R, E, A>) => Effect<R2 | R, E2 | E, B>;
3459
+ <R, E, A, R2, E2, A2, B>(self: Effect<R, E, A>, that: Effect<R2, E2, A2>, f: (a: A, b: A2) => B, options?: {
3460
+ readonly concurrent?: boolean;
3461
+ readonly batching?: boolean | "inherit";
3462
+ }): Effect<R | R2, E | E2, B>;
3463
+ };
3464
+ /**
3465
+ * @category combining
3466
+ * @since 2.0.0
3467
+ */
3468
+ export declare const ap: {
3469
+ <R2, E2, A>(that: Effect<R2, E2, A>): <R, E, B>(self: Effect<R, E, (a: A) => B>) => Effect<R | R2, E | E2, B>;
3470
+ <R, E, A, B, R2, E2>(self: Effect<R, E, (a: A) => B>, that: Effect<R2, E2, A>): Effect<R | R2, E | E2, B>;
3471
+ };
3472
+ /**
3473
+ * @category requests & batching
3474
+ * @since 2.0.0
3475
+ */
3476
+ export declare const blocked: <R, E, A>(blockedRequests: RequestBlock<R>, _continue: Effect<R, E, A>) => Blocked<R, E, A>;
3477
+ /**
3478
+ * @category requests & batching
3479
+ * @since 2.0.0
3480
+ */
3481
+ export declare const runRequestBlock: <R>(blockedRequests: RequestBlock<R>) => Blocked<R, never, void>;
3482
+ /**
3483
+ * @category requests & batching
3484
+ * @since 2.0.0
3485
+ */
3486
+ export declare const step: <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, Exit.Exit<E, A> | Blocked<R, E, A>>;
3487
+ /**
3488
+ * @category requests & batching
3489
+ * @since 2.0.0
3490
+ */
3491
+ export declare const flatMapStep: <R, E, A, R1, E1, B>(self: Effect<R, E, A>, f: (step: Exit.Exit<E, A> | Blocked<R, E, A>) => Effect<R1, E1, B>) => Effect<R | R1, E1, B>;
3492
+ /**
3493
+ * @since 2.0.0
3494
+ * @category requests & batching
3495
+ */
3496
+ export declare const request: {
3497
+ <A extends Request.Request<any, any>, Ds extends RequestResolver<A, never> | Effect<any, any, RequestResolver<A, never>>>(request: A, dataSource: Ds): Effect<[
3498
+ Ds
3499
+ ] extends [Effect<any, any, any>] ? Effect.Context<Ds> : never, Request.Request.Error<A>, Request.Request.Success<A>>;
3500
+ };
3501
+ /**
3502
+ * @since 2.0.0
3503
+ * @category requests & batching
3504
+ */
3505
+ export declare const cacheRequestResult: <A extends Request.Request<any, any>>(request: A, result: Request.Request.Result<A>) => Effect<never, never, void>;
3506
+ /**
3507
+ * @since 2.0.0
3508
+ * @category requests & batching
3509
+ */
3510
+ export declare const withRequestBatching: {
3511
+ (requestBatching: boolean): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
3512
+ <R, E, A>(self: Effect<R, E, A>, requestBatching: boolean): Effect<R, E, A>;
3513
+ };
3514
+ /**
3515
+ * @since 2.0.0
3516
+ * @category requests & batching
3517
+ */
3518
+ export declare const withRequestCaching: {
3519
+ (strategy: boolean): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
3520
+ <R, E, A>(self: Effect<R, E, A>, strategy: boolean): Effect<R, E, A>;
3521
+ };
3522
+ /**
3523
+ * @since 2.0.0
3524
+ * @category requests & batching
3525
+ */
3526
+ export declare const withRequestCache: {
3527
+ (cache: Request.Cache): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
3528
+ <R, E, A>(self: Effect<R, E, A>, cache: Request.Cache): Effect<R, E, A>;
3529
+ };
3530
+ /**
3531
+ * @since 2.0.0
3532
+ * @category tracing
3533
+ */
3534
+ export declare const tracer: Effect<never, never, Tracer.Tracer>;
3535
+ /**
3536
+ * @since 2.0.0
3537
+ * @category tracing
3538
+ */
3539
+ export declare const tracerWith: <R, E, A>(f: (tracer: Tracer.Tracer) => Effect<R, E, A>) => Effect<R, E, A>;
3540
+ /**
3541
+ * @since 2.0.0
3542
+ * @category tracing
3543
+ */
3544
+ export declare const withTracer: {
3545
+ (value: Tracer.Tracer): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3546
+ <R, E, A>(effect: Effect<R, E, A>, value: Tracer.Tracer): Effect<R, E, A>;
3547
+ };
3548
+ /**
3549
+ * @since 2.0.0
3550
+ * @category tracing
3551
+ */
3552
+ export declare const withTracerScoped: (value: Tracer.Tracer) => Effect<Scope.Scope, never, void>;
3553
+ /**
3554
+ * @since 2.0.0
3555
+ * @category tracing
3556
+ */
3557
+ export declare const withTracerTiming: {
3558
+ (enabled: boolean): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3559
+ <R, E, A>(effect: Effect<R, E, A>, enabled: boolean): Effect<R, E, A>;
3560
+ };
3561
+ /**
3562
+ * Adds an annotation to each span in this effect.
3563
+ *
3564
+ * @since 2.0.0
3565
+ * @category tracing
3566
+ */
3567
+ export declare const annotateSpans: {
3568
+ (key: string, value: unknown): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3569
+ (values: Record<string, unknown>): <R, E, A>(effect: Effect<R, E, A>) => Effect<R, E, A>;
3570
+ <R, E, A>(effect: Effect<R, E, A>, key: string, value: unknown): Effect<R, E, A>;
3571
+ <R, E, A>(effect: Effect<R, E, A>, values: Record<string, unknown>): Effect<R, E, A>;
3572
+ };
3573
+ /**
3574
+ * Adds an annotation to the current span if available
3575
+ *
3576
+ * @since 2.0.0
3577
+ * @category tracing
3578
+ */
3579
+ export declare const annotateCurrentSpan: {
3580
+ (key: string, value: unknown): Effect<never, never, void>;
3581
+ (values: Record<string, unknown>): Effect<never, never, void>;
3582
+ };
3583
+ /**
3584
+ * @since 2.0.0
3585
+ * @category tracing
3586
+ */
3587
+ export declare const currentSpan: Effect<never, never, Option.Option<Tracer.Span>>;
3588
+ /**
3589
+ * @since 2.0.0
3590
+ * @category tracing
3591
+ */
3592
+ export declare const currentParentSpan: Effect<never, never, Option.Option<Tracer.ParentSpan>>;
3593
+ /**
3594
+ * @since 2.0.0
3595
+ * @category tracing
3596
+ */
3597
+ export declare const spanAnnotations: Effect<never, never, HashMap.HashMap<string, unknown>>;
3598
+ /**
3599
+ * @since 2.0.0
3600
+ * @category tracing
3601
+ */
3602
+ export declare const spanLinks: Effect<never, never, Chunk.Chunk<Tracer.SpanLink>>;
3603
+ /**
3604
+ * For all spans in this effect, add a link with the provided span.
3605
+ *
3606
+ * @since 2.0.0
3607
+ * @category tracing
3608
+ */
3609
+ export declare const linkSpans: {
3610
+ (span: Tracer.ParentSpan, attributes?: Record<string, unknown>): <R, E, A>(self: Effect<R, E, A>) => Effect<R, E, A>;
3611
+ <R, E, A>(self: Effect<R, E, A>, span: Tracer.ParentSpan, attributes?: Record<string, unknown>): Effect<R, E, A>;
3612
+ };
3613
+ /**
3614
+ * Create a new span for tracing.
3615
+ *
3616
+ * @since 2.0.0
3617
+ * @category tracing
3618
+ */
3619
+ export declare const makeSpan: (name: string, options?: {
3620
+ readonly attributes?: Record<string, unknown>;
3621
+ readonly links?: ReadonlyArray<Tracer.SpanLink>;
3622
+ readonly parent?: Tracer.ParentSpan;
3623
+ readonly root?: boolean;
3624
+ readonly context?: Context.Context<never>;
3625
+ }) => Effect<never, never, Tracer.Span>;
3626
+ /**
3627
+ * Create a new span for tracing, and automatically close it when the Scope
3628
+ * finalizes.
3629
+ *
3630
+ * The span is not added to the current span stack, so no child spans will be
3631
+ * created for it.
3632
+ *
3633
+ * @since 2.0.0
3634
+ * @category tracing
3635
+ */
3636
+ export declare const makeSpanScoped: (name: string, options?: {
3637
+ readonly attributes?: Record<string, unknown>;
3638
+ readonly links?: ReadonlyArray<Tracer.SpanLink>;
3639
+ readonly parent?: Tracer.ParentSpan;
3640
+ readonly root?: boolean;
3641
+ readonly context?: Context.Context<never>;
3642
+ }) => Effect<Scope.Scope, never, Tracer.Span>;
3643
+ /**
3644
+ * Create a new span for tracing, and automatically close it when the effect
3645
+ * completes.
3646
+ *
3647
+ * The span is not added to the current span stack, so no child spans will be
3648
+ * created for it.
3649
+ *
3650
+ * @since 2.0.0
3651
+ * @category tracing
3652
+ */
3653
+ export declare const useSpan: {
3654
+ <R, E, A>(name: string, evaluate: (span: Tracer.Span) => Effect<R, E, A>): Effect<R, E, A>;
3655
+ <R, E, A>(name: string, options: {
3656
+ readonly attributes?: Record<string, unknown>;
3657
+ readonly links?: ReadonlyArray<Tracer.SpanLink>;
3658
+ readonly parent?: Tracer.ParentSpan;
3659
+ readonly root?: boolean;
3660
+ readonly context?: Context.Context<never>;
3661
+ }, evaluate: (span: Tracer.Span) => Effect<R, E, A>): Effect<R, E, A>;
3662
+ };
3663
+ /**
3664
+ * Wraps the effect with a new span for tracing.
3665
+ *
3666
+ * @since 2.0.0
3667
+ * @category tracing
3668
+ */
3669
+ export declare const withSpan: {
3670
+ (name: string, options?: {
3671
+ readonly attributes?: Record<string, unknown>;
3672
+ readonly links?: ReadonlyArray<Tracer.SpanLink>;
3673
+ readonly parent?: Tracer.ParentSpan;
3674
+ readonly root?: boolean;
3675
+ readonly context?: Context.Context<never>;
3676
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<Exclude<R, Tracer.ParentSpan>, E, A>;
3677
+ <R, E, A>(self: Effect<R, E, A>, name: string, options?: {
3678
+ readonly attributes?: Record<string, unknown>;
3679
+ readonly links?: ReadonlyArray<Tracer.SpanLink>;
3680
+ readonly parent?: Tracer.ParentSpan;
3681
+ readonly root?: boolean;
3682
+ readonly context?: Context.Context<never>;
3683
+ }): Effect<Exclude<R, Tracer.ParentSpan>, E, A>;
3684
+ };
3685
+ /**
3686
+ * Wraps the effect with a new span for tracing.
3687
+ *
3688
+ * The span is ended when the Scope is finalized.
3689
+ *
3690
+ * @since 2.0.0
3691
+ * @category tracing
3692
+ */
3693
+ export declare const withSpanScoped: {
3694
+ (name: string, options?: {
3695
+ readonly attributes?: Record<string, unknown>;
3696
+ readonly links?: ReadonlyArray<Tracer.SpanLink>;
3697
+ readonly parent?: Tracer.ParentSpan;
3698
+ readonly root?: boolean;
3699
+ readonly context?: Context.Context<never>;
3700
+ }): <R, E, A>(self: Effect<R, E, A>) => Effect<Exclude<R, Tracer.ParentSpan> | Scope.Scope, E, A>;
3701
+ <R, E, A>(self: Effect<R, E, A>, name: string, options?: {
3702
+ readonly attributes?: Record<string, unknown>;
3703
+ readonly links?: ReadonlyArray<Tracer.SpanLink>;
3704
+ readonly parent?: Tracer.ParentSpan;
3705
+ readonly root?: boolean;
3706
+ readonly context?: Context.Context<never>;
3707
+ }): Effect<Scope.Scope | Exclude<R, Tracer.ParentSpan>, E, A>;
3708
+ };
3709
+ /**
3710
+ * Adds the provided span to the current span stack.
3711
+ *
3712
+ * @since 2.0.0
3713
+ * @category tracing
3714
+ */
3715
+ export declare const withParentSpan: {
3716
+ (span: Tracer.ParentSpan): <R, E, A>(self: Effect<R, E, A>) => Effect<Exclude<R, Tracer.ParentSpan>, E, A>;
3717
+ <R, E, A>(self: Effect<R, E, A>, span: Tracer.ParentSpan): Effect<Exclude<R, Tracer.ParentSpan>, E, A>;
3718
+ };
3719
+ /**
3720
+ * Returns an effect that errors with `NoSuchElementException` if the value is
3721
+ * null or undefined, otherwise succeeds with the value.
3722
+ *
3723
+ * @since 2.0.0
3724
+ * @category optionality
3725
+ */
3726
+ export declare const fromNullable: <A>(value: A) => Effect<never, Cause.NoSuchElementException, NonNullable<A>>;
3727
+ /**
3728
+ * Wraps the success value of this effect with `Option.some`, and maps
3729
+ * `Cause.NoSuchElementException` to `Option.none`.
3730
+ *
3731
+ * @since 2.0.0
3732
+ * @category optionality
3733
+ */
3734
+ export declare const optionFromOptional: <R, E, A>(self: Effect<R, E, A>) => Effect<R, Exclude<E, Cause.NoSuchElementException>, Option.Option<A>>;
3735
+ //# sourceMappingURL=Effect.d.ts.map