@typed/fx 1.22.2 → 1.24.0

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 (157) hide show
  1. package/dist/cjs/AsyncData.js.map +1 -1
  2. package/dist/cjs/Form.js.map +1 -1
  3. package/dist/cjs/FormEntry.js.map +1 -1
  4. package/dist/cjs/Fx.js +1 -1
  5. package/dist/cjs/Fx.js.map +1 -1
  6. package/dist/cjs/Idle.js.map +1 -1
  7. package/dist/cjs/Match.js.map +1 -1
  8. package/dist/cjs/Pull.js +5 -3
  9. package/dist/cjs/Pull.js.map +1 -1
  10. package/dist/cjs/RefArray.js.map +1 -1
  11. package/dist/cjs/RefChunk.js.map +1 -1
  12. package/dist/cjs/RefHashSet.js.map +1 -1
  13. package/dist/cjs/RefSubject.js +3 -2
  14. package/dist/cjs/RefSubject.js.map +1 -1
  15. package/dist/cjs/Sink.js.map +1 -1
  16. package/dist/cjs/Subject.js.map +1 -1
  17. package/dist/cjs/Versioned.js.map +1 -1
  18. package/dist/cjs/internal/core.js.map +1 -1
  19. package/dist/cjs/internal/helpers.js.map +1 -1
  20. package/dist/cjs/internal/keyed.js +1 -1
  21. package/dist/cjs/internal/keyed.js.map +1 -1
  22. package/dist/cjs/internal/provide.js.map +1 -1
  23. package/dist/cjs/internal/share.js.map +1 -1
  24. package/dist/cjs/internal/sync-producer.js.map +1 -1
  25. package/dist/dts/AsyncData.d.ts +53 -53
  26. package/dist/dts/AsyncData.d.ts.map +1 -1
  27. package/dist/dts/Emitter.d.ts +7 -7
  28. package/dist/dts/Emitter.d.ts.map +1 -1
  29. package/dist/dts/Form.d.ts +14 -14
  30. package/dist/dts/Form.d.ts.map +1 -1
  31. package/dist/dts/FormEntry.d.ts +11 -11
  32. package/dist/dts/FormEntry.d.ts.map +1 -1
  33. package/dist/dts/Fx.d.ts +417 -417
  34. package/dist/dts/Fx.d.ts.map +1 -1
  35. package/dist/dts/Guard.d.ts +21 -21
  36. package/dist/dts/Guard.d.ts.map +1 -1
  37. package/dist/dts/Idle.d.ts +12 -12
  38. package/dist/dts/Idle.d.ts.map +1 -1
  39. package/dist/dts/Match.d.ts +16 -16
  40. package/dist/dts/Match.d.ts.map +1 -1
  41. package/dist/dts/Pull.d.ts +5 -5
  42. package/dist/dts/Pull.d.ts.map +1 -1
  43. package/dist/dts/Push.d.ts +40 -40
  44. package/dist/dts/Push.d.ts.map +1 -1
  45. package/dist/dts/RefArray.d.ts +59 -59
  46. package/dist/dts/RefArray.d.ts.map +1 -1
  47. package/dist/dts/RefChunk.d.ts +45 -45
  48. package/dist/dts/RefChunk.d.ts.map +1 -1
  49. package/dist/dts/RefHashMap.d.ts +35 -35
  50. package/dist/dts/RefHashMap.d.ts.map +1 -1
  51. package/dist/dts/RefHashSet.d.ts +17 -17
  52. package/dist/dts/RefHashSet.d.ts.map +1 -1
  53. package/dist/dts/RefSubject.d.ts +136 -136
  54. package/dist/dts/RefSubject.d.ts.map +1 -1
  55. package/dist/dts/Sink.d.ts +63 -63
  56. package/dist/dts/Sink.d.ts.map +1 -1
  57. package/dist/dts/Stream.d.ts +11 -11
  58. package/dist/dts/Stream.d.ts.map +1 -1
  59. package/dist/dts/Subject.d.ts +13 -13
  60. package/dist/dts/Subject.d.ts.map +1 -1
  61. package/dist/dts/Typeclass.d.ts +1 -1
  62. package/dist/dts/Typeclass.d.ts.map +1 -1
  63. package/dist/dts/Versioned.d.ts +33 -33
  64. package/dist/dts/Versioned.d.ts.map +1 -1
  65. package/dist/dts/index.d.ts +1 -1
  66. package/dist/dts/internal/DeferredRef.d.ts +8 -8
  67. package/dist/dts/internal/DeferredRef.d.ts.map +1 -1
  68. package/dist/dts/internal/core.d.ts +191 -191
  69. package/dist/dts/internal/core.d.ts.map +1 -1
  70. package/dist/dts/internal/effect-loop-operator.d.ts +6 -6
  71. package/dist/dts/internal/effect-loop-operator.d.ts.map +1 -1
  72. package/dist/dts/internal/effect-operator.d.ts +16 -16
  73. package/dist/dts/internal/effect-operator.d.ts.map +1 -1
  74. package/dist/dts/internal/effect-producer.d.ts +13 -13
  75. package/dist/dts/internal/effect-producer.d.ts.map +1 -1
  76. package/dist/dts/internal/helpers.d.ts +26 -26
  77. package/dist/dts/internal/helpers.d.ts.map +1 -1
  78. package/dist/dts/internal/keyed.d.ts +1 -1
  79. package/dist/dts/internal/keyed.d.ts.map +1 -1
  80. package/dist/dts/internal/loop-operator.d.ts +2 -2
  81. package/dist/dts/internal/loop-operator.d.ts.map +1 -1
  82. package/dist/dts/internal/operator.d.ts +2 -2
  83. package/dist/dts/internal/operator.d.ts.map +1 -1
  84. package/dist/dts/internal/protos.d.ts +12 -12
  85. package/dist/dts/internal/protos.d.ts.map +1 -1
  86. package/dist/dts/internal/provide.d.ts +15 -15
  87. package/dist/dts/internal/provide.d.ts.map +1 -1
  88. package/dist/dts/internal/share.d.ts +11 -11
  89. package/dist/dts/internal/share.d.ts.map +1 -1
  90. package/dist/dts/internal/sync-operator.d.ts +2 -2
  91. package/dist/dts/internal/sync-operator.d.ts.map +1 -1
  92. package/dist/dts/internal/sync-producer.d.ts +6 -6
  93. package/dist/dts/internal/sync-producer.d.ts.map +1 -1
  94. package/dist/dts/internal/withKey.d.ts +1 -1
  95. package/dist/dts/internal/withKey.d.ts.map +1 -1
  96. package/dist/esm/AsyncData.js.map +1 -1
  97. package/dist/esm/Form.js.map +1 -1
  98. package/dist/esm/FormEntry.js.map +1 -1
  99. package/dist/esm/Fx.js +1 -1
  100. package/dist/esm/Fx.js.map +1 -1
  101. package/dist/esm/Idle.js.map +1 -1
  102. package/dist/esm/Match.js.map +1 -1
  103. package/dist/esm/Pull.js +3 -3
  104. package/dist/esm/Pull.js.map +1 -1
  105. package/dist/esm/RefArray.js.map +1 -1
  106. package/dist/esm/RefChunk.js.map +1 -1
  107. package/dist/esm/RefHashSet.js.map +1 -1
  108. package/dist/esm/RefSubject.js +3 -1
  109. package/dist/esm/RefSubject.js.map +1 -1
  110. package/dist/esm/Sink.js.map +1 -1
  111. package/dist/esm/Subject.js.map +1 -1
  112. package/dist/esm/Versioned.js.map +1 -1
  113. package/dist/esm/index.js +1 -1
  114. package/dist/esm/internal/core.js.map +1 -1
  115. package/dist/esm/internal/helpers.js.map +1 -1
  116. package/dist/esm/internal/keyed.js +1 -1
  117. package/dist/esm/internal/keyed.js.map +1 -1
  118. package/dist/esm/internal/provide.js.map +1 -1
  119. package/dist/esm/internal/share.js.map +1 -1
  120. package/dist/esm/internal/sync-producer.js.map +1 -1
  121. package/package.json +6 -6
  122. package/src/AsyncData.ts +142 -144
  123. package/src/Emitter.ts +13 -13
  124. package/src/Form.ts +55 -55
  125. package/src/FormEntry.ts +39 -39
  126. package/src/Fx.ts +788 -789
  127. package/src/Guard.ts +43 -43
  128. package/src/Idle.ts +26 -26
  129. package/src/Match.ts +60 -61
  130. package/src/Pull.ts +42 -43
  131. package/src/Push.ts +195 -195
  132. package/src/RefArray.ts +121 -119
  133. package/src/RefChunk.ts +98 -97
  134. package/src/RefHashMap.ts +79 -79
  135. package/src/RefHashSet.ts +40 -39
  136. package/src/RefSubject.ts +574 -565
  137. package/src/Sink.ts +303 -303
  138. package/src/Stream.ts +27 -27
  139. package/src/Subject.ts +48 -46
  140. package/src/Typeclass.ts +2 -2
  141. package/src/Versioned.ts +97 -97
  142. package/src/index.ts +1 -1
  143. package/src/internal/DeferredRef.ts +7 -7
  144. package/src/internal/core.ts +768 -781
  145. package/src/internal/effect-loop-operator.ts +7 -7
  146. package/src/internal/effect-operator.ts +23 -23
  147. package/src/internal/effect-producer.ts +38 -38
  148. package/src/internal/helpers.ts +51 -51
  149. package/src/internal/keyed.ts +21 -21
  150. package/src/internal/loop-operator.ts +2 -2
  151. package/src/internal/operator.ts +2 -2
  152. package/src/internal/protos.ts +15 -15
  153. package/src/internal/provide.ts +27 -27
  154. package/src/internal/share.ts +25 -25
  155. package/src/internal/sync-operator.ts +4 -4
  156. package/src/internal/sync-producer.ts +15 -15
  157. package/src/internal/withKey.ts +13 -13
@@ -12,213 +12,213 @@ import * as Scope from "effect/Scope";
12
12
  import * as Tracer from "effect/Tracer";
13
13
  import type { FlattenStrategy, Fx, MergeStrategy } from "../Fx.js";
14
14
  import * as Sink from "../Sink.js";
15
- export declare function make<A>(run: (sink: Sink.Sink<never, never, A>) => Effect.Effect<never, never, unknown>): Fx<never, never, A>;
16
- export declare function make<E, A>(run: (sink: Sink.Sink<never, E, A>) => Effect.Effect<never, never, unknown>): Fx<never, E, A>;
17
- export declare function make<R, E, A>(run: (sink: Sink.Sink<never, E, A>) => Effect.Effect<R, never, unknown>): Fx<R, E, A>;
18
- export declare const succeed: <A>(value: A) => Fx<never, never, A>;
19
- export declare const fromSync: <A>(f: () => A) => Fx<never, never, A>;
20
- export declare const fromArray: <const A extends readonly any[]>(array: A) => Fx<never, never, A[number]>;
21
- export declare const fromIterable: <A>(iterable: Iterable<A>) => Fx<never, never, A>;
22
- export declare const fromEffect: <R, E, A>(effect: Effect.Effect<R, E, A>) => Fx<R, E, A>;
23
- export declare const fromScheduled: <R, E, I, R2, O>(input: Effect.Effect<R, E, I>, schedule: Schedule.Schedule<R2, I, O>) => Fx<R | R2, E, O>;
24
- export declare const schedule: <R, E, A, R2, O>(input: Effect.Effect<R, E, A>, schedule: Schedule.Schedule<R2, unknown, O>) => Fx<R | R2, E, A>;
15
+ export declare function make<A>(run: (sink: Sink.Sink<A>) => Effect.Effect<unknown>): Fx<A>;
16
+ export declare function make<A, E>(run: (sink: Sink.Sink<A, E>) => Effect.Effect<unknown>): Fx<A, E>;
17
+ export declare function make<A, E, R>(run: (sink: Sink.Sink<A, E>) => Effect.Effect<unknown, never, R>): Fx<A, E, R>;
18
+ export declare const succeed: <A>(value: A) => Fx<A, never, never>;
19
+ export declare const fromSync: <A>(f: () => A) => Fx<A, never, never>;
20
+ export declare const fromArray: <const A extends readonly any[]>(array: A) => Fx<A[number], never, never>;
21
+ export declare const fromIterable: <A>(iterable: Iterable<A>) => Fx<A, never, never>;
22
+ export declare const fromEffect: <A, E, R>(effect: Effect.Effect<A, E, R>) => Fx<A, E, R>;
23
+ export declare const fromScheduled: <R, E, I, R2, O>(input: Effect.Effect<I, E, R>, schedule: Schedule.Schedule<R2, I, O>) => Fx<O, E, R | R2>;
24
+ export declare const schedule: <A, E, R, R2, O>(input: Effect.Effect<A, E, R>, schedule: Schedule.Schedule<R2, unknown, O>) => Fx<A, E, R | R2>;
25
25
  export declare const failCause: <E>(cause: Cause.Cause<E>) => Fx<never, E, never>;
26
26
  export declare const fail: <E>(error: E) => Fx<never, E, never>;
27
- export declare const die: (error: unknown) => Fx<never, never, never>;
28
- export declare const map: <R, E, A, B>(fx: Fx<R, E, A>, f: (a: A) => B) => Fx<R, E, B>;
29
- export declare const filter: <R, E, A>(fx: Fx<R, E, A>, f: Predicate.Predicate<A>) => Fx<R, E, A>;
30
- export declare const filterMap: <R, E, A, B>(fx: Fx<R, E, A>, f: (a: A) => Option.Option<B>) => Fx<R, E, B>;
31
- export declare const mapEffect: <R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, B>) => Fx<R | R2, E | E2, B>;
32
- export declare const filterMapEffect: <R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, Option.Option<B>>) => Fx<R | R2, E | E2, B>;
33
- export declare const filterEffect: <R, E, A, R2, E2>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, boolean>) => Fx<R | R2, E | E2, A>;
34
- export declare const tapEffect: <R, E, A, R2, E2>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, unknown>) => Fx<R | R2, E | E2, A>;
35
- export declare const loop: <R, E, A, B, C>(fx: Fx<R, E, A>, seed: B, f: (acc: B, a: A) => readonly [C, B]) => Fx<R, E, C>;
36
- export declare const withPrevious: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, readonly [Option.Option<A>, A]>;
37
- export declare const filterMapLoop: <R, E, A, B, C>(fx: Fx<R, E, A>, seed: B, f: (acc: B, a: A) => readonly [Option.Option<C>, B]) => Fx<R, E, C>;
38
- export declare const loopEffect: <R, E, A, R2, E2, B, C>(fx: Fx<R, E, A>, seed: B, f: (acc: B, a: A) => Effect.Effect<R2, E2, readonly [C, B]>) => Fx<R | R2, E | E2, C>;
39
- export declare const filterMapLoopEffect: <R, E, A, R2, E2, B, C>(fx: Fx<R, E, A>, seed: B, f: (acc: B, a: A) => Effect.Effect<R2, E2, readonly [Option.Option<C>, B]>) => Fx<R | R2, E | E2, C>;
40
- export declare const observe: <R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, B>) => Effect.Effect<R | R2, E | E2, void>;
41
- export declare const drain: <R, E, A>(fx: Fx<R, E, A>) => Effect.Effect<R, E, void>;
42
- export declare const reduce: <R, E, A, B>(fx: Fx<R, E, A>, seed: B, f: (acc: B, a: A) => B) => Effect.Effect<R, E, B>;
43
- export declare const toReadonlyArray: <R, E, A>(fx: Fx<R, E, A>) => Effect.Effect<R, E, readonly A[]>;
44
- export declare const slice: <R, E, A>(fx: Fx<R, E, A>, drop: number, take: number) => Fx<R, E, A>;
45
- export declare const take: <R, E, A>(fx: Fx<R, E, A>, n: number) => Fx<R, E, A>;
46
- export declare const drop: <R, E, A>(fx: Fx<R, E, A>, n: number) => Fx<R, E, A>;
47
- export declare function skipRepeatsWith<R, E, A>(fx: Fx<R, E, A>, eq: Equivalence.Equivalence<A>): Fx<R, E, A>;
48
- export declare function skipRepeats<R, E, A>(fx: Fx<R, E, A>): Fx<R, E, A>;
49
- export declare const empty: Fx<never, never, never>;
50
- export declare const never: Fx<never, never, never>;
51
- export declare function padWith<R, E, A, B, C>(fx: Fx<R, E, A>, start: Iterable<B>, end: Iterable<C>): Fx<R, E, A | B | C>;
52
- export declare function prependAll<R, E, A, B>(fx: Fx<R, E, A>, start: Iterable<B>): Fx<R, E, A | B>;
53
- export declare function appendAll<R, E, A, C>(fx: Fx<R, E, A>, end: Iterable<C>): Fx<R, E, A | C>;
54
- export declare function prepend<R, E, A, B>(fx: Fx<R, E, A>, start: B): Fx<R, E, A | B>;
55
- export declare function append<R, E, A, C>(fx: Fx<R, E, A>, end: C): Fx<R, E, A | C>;
56
- export declare function scan<R, E, A, B>(fx: Fx<R, E, A>, seed: B, f: (b: B, a: A) => B): Fx<R, E, B>;
57
- export declare function flatMapWithStrategy<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Fx<R2, E2, B>, strategy: FlattenStrategy, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
58
- export declare function switchMap<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
59
- export declare function switchMapEffect<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
60
- export declare function exhaustMap<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
61
- export declare function exhaustMapEffect<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
62
- export declare function exhaustMapLatest<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
63
- export declare function exhaustMapLatestEffect<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
64
- export declare function exhaustFilterMapLatestEffect<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, Option.Option<B>>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
65
- export declare function flatMapConcurrently<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Fx<R2, E2, B>, capacity: number, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
66
- export declare function concatMap<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
67
- export declare function flatMapConcurrentlyEffect<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, B>, capacity: number, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
68
- export declare function flatMap<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
69
- export declare function flatMapEffect<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E | E2, B>;
70
- export declare function fromFxEffect<R, E, R2, E2, B>(effect: Effect.Effect<R, E, Fx<R2, E2, B>>): Fx<R | R2, E | E2, B>;
71
- export declare function gen<Y extends Effect.EffectGen<any, any, any>, FX extends Fx<any, any, any>>(f: (_: Effect.Adapter) => Generator<Y, FX, any>): Fx<Effect.Effect.Context<Y["value"]> | Fx.Context<FX>, Effect.Effect.Error<Y["value"]> | Fx.Error<FX>, Fx.Success<FX>>;
72
- export declare function genScoped<Y extends Effect.EffectGen<any, any, any>, FX extends Fx<any, any, any>>(f: (_: Effect.Adapter) => Generator<Y, FX, any>): Fx<Exclude<Effect.Effect.Context<Y["value"]> | Fx.Context<FX>, Scope.Scope>, Effect.Effect.Error<Y["value"]> | Fx.Error<FX>, Fx.Success<FX>>;
73
- export declare function continueWith<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: () => Fx<R2, E2, B>): Fx<R | R2, E | E2, A | B>;
74
- export declare function orElseCause<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Fx<R2, E2, B>): Fx<R | R2, E2, A | B>;
75
- export declare function orElse<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (error: E) => Fx<R2, E2, B>): Fx<R | R2, E2, A | B>;
76
- export declare function suspend<R, E, A>(f: () => Fx<R, E, A>): Fx<R, E, A>;
77
- export declare function mergeWithStrategy<const FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX, stategy: MergeStrategy): Fx<Fx.Context<FX[number]>, Fx.Error<FX[number]>, Fx.Success<FX[number]>>;
78
- export declare function merge<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, other: Fx<R2, E2, B>): Fx<R | R2, E | E2, A | B>;
79
- export declare function mergeAll<FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Context<FX[number]>, Fx.Error<FX[number]>, Fx.Success<FX[number]>>;
80
- export declare function mergeOrdered<FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Context<FX[number]>, Fx.Error<FX[number]>, Fx.Success<FX[number]>>;
81
- export declare function mergeOrderedConcurrently<FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX, concurrency: number): Fx<Fx.Context<FX[number]>, Fx.Error<FX[number]>, Fx.Success<FX[number]>>;
82
- export declare function mergeSwitch<FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Context<FX[number]>, Fx.Error<FX[number]>, Fx.Success<FX[number]>>;
83
- export declare function takeWhile<R, E, A>(fx: Fx<R, E, A>, f: Predicate.Predicate<A>): Fx<R, E, A>;
84
- export declare function takeUntil<R, E, A>(fx: Fx<R, E, A>, f: Predicate.Predicate<A>): Fx<R, E, A>;
85
- export declare function dropWhile<R, E, A>(fx: Fx<R, E, A>, f: Predicate.Predicate<A>): Fx<R, E, A>;
86
- export declare function dropUntil<R, E, A>(fx: Fx<R, E, A>, f: Predicate.Predicate<A>): Fx<R, E, A>;
87
- export declare function dropAfter<R, E, A>(fx: Fx<R, E, A>, f: Predicate.Predicate<A>): Fx<R, E, A>;
88
- export declare function takeWhileEffect<R, E, A, R2, E2>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, boolean>): Fx<R | R2, E | E2, A>;
89
- export declare function takeUntilEffect<R, E, A, R2, E2>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, boolean>): Fx<R | R2, E | E2, A>;
90
- export declare function dropWhileEffect<R, E, A>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R, E, boolean>): Fx<R, E, A>;
91
- export declare function dropUntilEffect<R, E, A>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R, E, boolean>): Fx<R, E, A>;
92
- export declare function dropAfterEffect<R, E, A, R2, E2>(fx: Fx<R, E, A>, f: (a: A) => Effect.Effect<R2, E2, boolean>): Fx<R | R2, E | E2, A>;
93
- export declare function during<R, E, A, R2, E2, R3, E3, B>(fx: Fx<R, E, A>, window: Fx<R2, E2, Fx<R3, E3, B>>): Fx<R | R2 | R3 | Scope.Scope, E | E2 | E3, A>;
94
- export declare function since<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, window: Fx<R2, E2, B>): Fx<R | R2 | Scope.Scope, E | E2, A>;
95
- export declare function until<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, window: Fx<R2, E2, B>): Fx<R | R2 | Scope.Scope, E | E2, A>;
96
- export declare function middleware<R, E, A, R3>(fx: Fx<R, E, A>, effect: (effect: Effect.Effect<R, never, unknown>) => Effect.Effect<R3, never, unknown>, sink?: (sink: Sink.Sink<never, E, A>) => Sink.Sink<R, E, A>): Fx<R3, E, A>;
97
- export declare function onExit<R, E, A, R2>(fx: Fx<R, E, A>, f: (exit: Exit.Exit<never, unknown>) => Effect.Effect<R2, never, unknown>): Fx<R | R2, E, A>;
98
- export declare function onInterrupt<R, E, A, R2>(fx: Fx<R, E, A>, f: (interruptors: HashSet.HashSet<FiberId.FiberId>) => Effect.Effect<R2, never, unknown>): Fx<R | R2, E, A>;
99
- export declare function onError<R, E, A, R2>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<never>) => Effect.Effect<R2, never, unknown>): Fx<R | R2, E, A>;
100
- export declare const scoped: <R, E, A>(fx: Fx<R, E, A>) => Fx<Exclude<R, Scope.Scope>, E, A>;
101
- export declare function annotateLogs<R, E, A>(fx: Fx<R, E, A>, key: string | Record<string, unknown>, value?: unknown): Fx<R, E, A>;
102
- export declare function annotateSpans<R, E, A>(fx: Fx<R, E, A>, key: string | Record<string, unknown>, value?: unknown): Fx<R, E, A>;
103
- export declare const interruptible: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
104
- export declare const uninterruptible: <R, E, A>(fx: Fx<R, E, A>) => Fx<R, E, A>;
105
- export declare function locally<R, E, B, A>(use: Fx<R, E, B>, self: FiberRef.FiberRef<A>, value: A): Fx<R, E, B>;
106
- export declare function locallyWith<R, E, B, A>(use: Fx<R, E, B>, self: FiberRef.FiberRef<A>, f: (a: A) => A): Fx<R, E, B>;
107
- export declare function withTracerTiming<R, E, A>(fx: Fx<R, E, A>, enabled: boolean): Fx<R, E, A>;
108
- export declare function withConcurrency<R, E, A>(fx: Fx<R, E, A>, concurrency: number | "unbounded"): Fx<R, E, A>;
109
- export declare function withConfigProvider<R, E, A>(fx: Fx<R, E, A>, configProvider: ConfigProvider.ConfigProvider): Fx<R, E, A>;
110
- export declare function withLogSpan<R, E, A>(fx: Fx<R, E, A>, span: string): Fx<R, E, A>;
111
- export declare function withMaxOpsBeforeYield<R, E, A>(fx: Fx<R, E, A>, maxOps: number): Fx<R, E, A>;
112
- export declare function withParentSpan<R, E, A>(fx: Fx<R, E, A>, parentSpan: Tracer.ParentSpan): Fx<R, E, A>;
113
- export declare function withRequestBatching<R, E, A>(fx: Fx<R, E, A>, requestBatching: boolean): Fx<R, E, A>;
114
- export declare function withRequestCache<R, E, A>(fx: Fx<R, E, A>, cache: Request.Cache): Fx<R, E, A>;
115
- export declare function withRequestCaching<R, E, A>(fx: Fx<R, E, A>, requestCaching: boolean): Fx<R, E, A>;
116
- export declare function withScheduler<R, E, A>(fx: Fx<R, E, A>, scheduler: Scheduler.Scheduler): Fx<R, E, A>;
117
- export declare function withTracer<R, E, A>(fx: Fx<R, E, A>, tracer: Tracer.Tracer): Fx<R, E, A>;
118
- export declare function acquireUseRelease<R, E, A, R2, E2, B, R3, E3, C>(acquire: Effect.Effect<R, E, A>, use: (a: A) => Fx<R2, E2, B>, release: (a: A, exit: Exit.Exit<unknown, unknown>) => Effect.Effect<R3, E3, C>): Fx<R | R2 | R3, E | E2 | E3, B>;
119
- export declare function withSpan<R, E, A>(self: Fx<R, E, A>, name: string, options?: {
27
+ export declare const die: (error: unknown) => Fx<never>;
28
+ export declare const map: <A, E, R, B>(fx: Fx<A, E, R>, f: (a: A) => B) => Fx<B, E, R>;
29
+ export declare const filter: <A, E, R>(fx: Fx<A, E, R>, f: Predicate.Predicate<A>) => Fx<A, E, R>;
30
+ export declare const filterMap: <A, E, R, B>(fx: Fx<A, E, R>, f: (a: A) => Option.Option<B>) => Fx<B, E, R>;
31
+ export declare const mapEffect: <A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<B, E2, R2>) => Fx<B, E | E2, R | R2>;
32
+ export declare const filterMapEffect: <A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>) => Fx<B, E | E2, R | R2>;
33
+ export declare const filterEffect: <A, E, R, R2, E2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<boolean, E2, R2>) => Fx<A, E | E2, R | R2>;
34
+ export declare const tapEffect: <A, E, R, R2, E2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<unknown, E2, R2>) => Fx<A, E | E2, R | R2>;
35
+ export declare const loop: <A, E, R, B, C>(fx: Fx<A, E, R>, seed: B, f: (acc: B, a: A) => readonly [C, B]) => Fx<C, E, R>;
36
+ export declare const withPrevious: <A, E, R>(fx: Fx<A, E, R>) => Fx<readonly [Option.Option<A>, A], E, R>;
37
+ export declare const filterMapLoop: <A, E, R, B, C>(fx: Fx<A, E, R>, seed: B, f: (acc: B, a: A) => readonly [Option.Option<C>, B]) => Fx<C, E, R>;
38
+ export declare const loopEffect: <A, E, R, B, E2, R2, C>(fx: Fx<A, E, R>, seed: B, f: (acc: B, a: A) => Effect.Effect<readonly [C, B], E2, R2>) => Fx<C, E | E2, R | R2>;
39
+ export declare const filterMapLoopEffect: <A, E, R, B, E2, R2, C>(fx: Fx<A, E, R>, seed: B, f: (acc: B, a: A) => Effect.Effect<readonly [Option.Option<C>, B], E2, R2>) => Fx<C, E | E2, R | R2>;
40
+ export declare const observe: <A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<B, E2, R2>) => Effect.Effect<void, E | E2, R | R2>;
41
+ export declare const drain: <A, E, R>(fx: Fx<A, E, R>) => Effect.Effect<void, E, R>;
42
+ export declare const reduce: <A, E, R, B>(fx: Fx<A, E, R>, seed: B, f: (acc: B, a: A) => B) => Effect.Effect<B, E, R>;
43
+ export declare const toReadonlyArray: <A, E, R>(fx: Fx<A, E, R>) => Effect.Effect<readonly A[], E, R>;
44
+ export declare const slice: <A, E, R>(fx: Fx<A, E, R>, drop: number, take: number) => Fx<A, E, R>;
45
+ export declare const take: <A, E, R>(fx: Fx<A, E, R>, n: number) => Fx<A, E, R>;
46
+ export declare const drop: <A, E, R>(fx: Fx<A, E, R>, n: number) => Fx<A, E, R>;
47
+ export declare function skipRepeatsWith<A, E, R>(fx: Fx<A, E, R>, eq: Equivalence.Equivalence<A>): Fx<A, E, R>;
48
+ export declare function skipRepeats<A, E, R>(fx: Fx<A, E, R>): Fx<A, E, R>;
49
+ export declare const empty: Fx<never>;
50
+ export declare const never: Fx<never>;
51
+ export declare function padWith<A, E, R, B, C>(fx: Fx<A, E, R>, start: Iterable<B>, end: Iterable<C>): Fx<A | B | C, E, R>;
52
+ export declare function prependAll<A, E, R, B>(fx: Fx<A, E, R>, start: Iterable<B>): Fx<A | B, E, R>;
53
+ export declare function appendAll<A, E, R, C>(fx: Fx<A, E, R>, end: Iterable<C>): Fx<A | C, E, R>;
54
+ export declare function prepend<A, E, R, B>(fx: Fx<A, E, R>, start: B): Fx<A | B, E, R>;
55
+ export declare function append<A, E, R, C>(fx: Fx<A, E, R>, end: C): Fx<A | C, E, R>;
56
+ export declare function scan<A, E, R, B>(fx: Fx<A, E, R>, seed: B, f: (b: B, a: A) => B): Fx<B, E, R>;
57
+ export declare function flatMapWithStrategy<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Fx<B, E2, R2>, strategy: FlattenStrategy, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
58
+ export declare function switchMap<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
59
+ export declare function switchMapEffect<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
60
+ export declare function exhaustMap<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
61
+ export declare function exhaustMapEffect<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
62
+ export declare function exhaustMapLatest<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
63
+ export declare function exhaustMapLatestEffect<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
64
+ export declare function exhaustFilterMapLatestEffect<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<Option.Option<B>, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
65
+ export declare function flatMapConcurrently<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Fx<B, E2, R2>, capacity: number, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
66
+ export declare function concatMap<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
67
+ export declare function flatMapConcurrentlyEffect<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<B, E2, R2>, capacity: number, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
68
+ export declare function flatMap<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
69
+ export declare function flatMapEffect<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<B, E | E2, R | R2 | Scope.Scope>;
70
+ export declare function fromFxEffect<B, E, R, E2, R2>(effect: Effect.Effect<Fx<B, E2, R2>, E, R>): Fx<B, E | E2, R | R2>;
71
+ export declare function gen<Y extends Effect.EffectGen<any, any, any>, FX extends Fx<any, any, any>>(f: (_: Effect.Adapter) => Generator<Y, FX, any>): Fx<Fx.Success<FX>, Effect.Effect.Error<Y["value"]> | Fx.Error<FX>, Effect.Effect.Context<Y["value"]> | Fx.Context<FX>>;
72
+ export declare function genScoped<Y extends Effect.EffectGen<any, any, any>, FX extends Fx<any, any, any>>(f: (_: Effect.Adapter) => Generator<Y, FX, any>): Fx<Fx.Success<FX>, Effect.Effect.Error<Y["value"]> | Fx.Error<FX>, Exclude<Effect.Effect.Context<Y["value"]> | Fx.Context<FX>, Scope.Scope>>;
73
+ export declare function continueWith<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: () => Fx<B, E2, R2>): Fx<A | B, E | E2, R | R2>;
74
+ export declare function orElseCause<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Fx<B, E2, R2>): Fx<A | B, E2, R | R2>;
75
+ export declare function orElse<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (error: E) => Fx<B, E2, R2>): Fx<A | B, E2, R | R2>;
76
+ export declare function suspend<A, E, R>(f: () => Fx<A, E, R>): Fx<A, E, R>;
77
+ export declare function mergeWithStrategy<const FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX, stategy: MergeStrategy): Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Context<FX[number]>>;
78
+ export declare function merge<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, other: Fx<B, E2, R2>): Fx<A | B, E | E2, R | R2>;
79
+ export declare function mergeAll<FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Context<FX[number]>>;
80
+ export declare function mergeOrdered<FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Context<FX[number]>>;
81
+ export declare function mergeOrderedConcurrently<FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX, concurrency: number): Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Context<FX[number]>>;
82
+ export declare function mergeSwitch<FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Context<FX[number]>>;
83
+ export declare function takeWhile<A, E, R>(fx: Fx<A, E, R>, f: Predicate.Predicate<A>): Fx<A, E, R>;
84
+ export declare function takeUntil<A, E, R>(fx: Fx<A, E, R>, f: Predicate.Predicate<A>): Fx<A, E, R>;
85
+ export declare function dropWhile<A, E, R>(fx: Fx<A, E, R>, f: Predicate.Predicate<A>): Fx<A, E, R>;
86
+ export declare function dropUntil<A, E, R>(fx: Fx<A, E, R>, f: Predicate.Predicate<A>): Fx<A, E, R>;
87
+ export declare function dropAfter<A, E, R>(fx: Fx<A, E, R>, f: Predicate.Predicate<A>): Fx<A, E, R>;
88
+ export declare function takeWhileEffect<A, E, R, R2, E2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<boolean, E2, R2>): Fx<A, E | E2, R | R2>;
89
+ export declare function takeUntilEffect<A, E, R, R2, E2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<boolean, E2, R2>): Fx<A, E | E2, R | R2>;
90
+ export declare function dropWhileEffect<A, E, R>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<boolean, E, R>): Fx<A, E, R>;
91
+ export declare function dropUntilEffect<A, E, R>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<boolean, E, R>): Fx<A, E, R>;
92
+ export declare function dropAfterEffect<A, E, R, R2, E2>(fx: Fx<A, E, R>, f: (a: A) => Effect.Effect<boolean, E2, R2>): Fx<A, E | E2, R | R2>;
93
+ export declare function during<A, E, R, B, E2, R2, E3, R3>(fx: Fx<A, E, R>, window: Fx<Fx<B, E3, R3>, E2, R2>): Fx<A, E | E2 | E3, R | R2 | R3 | Scope.Scope>;
94
+ export declare function since<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, window: Fx<B, E2, R2>): Fx<A, E | E2, R | R2 | Scope.Scope>;
95
+ export declare function until<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, window: Fx<B, E2, R2>): Fx<A, E | E2, R | R2 | Scope.Scope>;
96
+ export declare function middleware<A, E, R, R3>(fx: Fx<A, E, R>, effect: (effect: Effect.Effect<unknown, never, R>) => Effect.Effect<unknown, never, R3>, sink?: (sink: Sink.Sink<A, E>) => Sink.Sink<A, E, R>): Fx<A, E, R3>;
97
+ export declare function onExit<A, E, R, R2>(fx: Fx<A, E, R>, f: (exit: Exit.Exit<unknown>) => Effect.Effect<unknown, never, R2>): Fx<A, E, R | R2>;
98
+ export declare function onInterrupt<A, E, R, R2>(fx: Fx<A, E, R>, f: (interruptors: HashSet.HashSet<FiberId.FiberId>) => Effect.Effect<unknown, never, R2>): Fx<A, E, R | R2>;
99
+ export declare function onError<A, E, R, R2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<never>) => Effect.Effect<unknown, never, R2>): Fx<A, E, R | R2>;
100
+ export declare const scoped: <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E, Exclude<R, Scope.Scope>>;
101
+ export declare function annotateLogs<A, E, R>(fx: Fx<A, E, R>, key: string | Record<string, unknown>, value?: unknown): Fx<A, E, R>;
102
+ export declare function annotateSpans<A, E, R>(fx: Fx<A, E, R>, key: string | Record<string, unknown>, value?: unknown): Fx<A, E, R>;
103
+ export declare const interruptible: <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;
104
+ export declare const uninterruptible: <A, E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;
105
+ export declare function locally<B, E, R, A>(use: Fx<B, E, R>, self: FiberRef.FiberRef<A>, value: A): Fx<B, E, R>;
106
+ export declare function locallyWith<B, E, R, A>(use: Fx<B, E, R>, self: FiberRef.FiberRef<A>, f: (a: A) => A): Fx<B, E, R>;
107
+ export declare function withTracerTiming<A, E, R>(fx: Fx<A, E, R>, enabled: boolean): Fx<A, E, R>;
108
+ export declare function withConcurrency<A, E, R>(fx: Fx<A, E, R>, concurrency: number | "unbounded"): Fx<A, E, R>;
109
+ export declare function withConfigProvider<A, E, R>(fx: Fx<A, E, R>, configProvider: ConfigProvider.ConfigProvider): Fx<A, E, R>;
110
+ export declare function withLogSpan<A, E, R>(fx: Fx<A, E, R>, span: string): Fx<A, E, R>;
111
+ export declare function withMaxOpsBeforeYield<A, E, R>(fx: Fx<A, E, R>, maxOps: number): Fx<A, E, R>;
112
+ export declare function withParentSpan<A, E, R>(fx: Fx<A, E, R>, parentSpan: Tracer.ParentSpan): Fx<A, E, R>;
113
+ export declare function withRequestBatching<A, E, R>(fx: Fx<A, E, R>, requestBatching: boolean): Fx<A, E, R>;
114
+ export declare function withRequestCache<A, E, R>(fx: Fx<A, E, R>, cache: Request.Cache): Fx<A, E, R>;
115
+ export declare function withRequestCaching<A, E, R>(fx: Fx<A, E, R>, requestCaching: boolean): Fx<A, E, R>;
116
+ export declare function withScheduler<A, E, R>(fx: Fx<A, E, R>, scheduler: Scheduler.Scheduler): Fx<A, E, R>;
117
+ export declare function withTracer<A, E, R>(fx: Fx<A, E, R>, tracer: Tracer.Tracer): Fx<A, E, R>;
118
+ export declare function acquireUseRelease<A, E, R, B, E2, R2, C, E3, R3>(acquire: Effect.Effect<A, E, R>, use: (a: A) => Fx<B, E2, R2>, release: (a: A, exit: Exit.Exit<unknown, unknown>) => Effect.Effect<C, E3, R3>): Fx<B, E | E2 | E3, R | R2 | R3>;
119
+ export declare function withSpan<A, E, R>(self: Fx<A, E, R>, name: string, options?: {
120
120
  readonly attributes?: Record<string, unknown>;
121
121
  readonly links?: ReadonlyArray<Tracer.SpanLink>;
122
122
  readonly parent?: Tracer.ParentSpan;
123
123
  readonly root?: boolean;
124
124
  readonly context?: Context.Context<never>;
125
- }): Fx<R, E, A>;
126
- export declare function provideContext<R, E, A, R2>(fx: Fx<R, E, A>, context: Context.Context<R2>): Fx<Exclude<R, R2>, E, A>;
127
- export declare function provideLayer<R, E, A, R2, E2, S>(fx: Fx<R, E, A>, layer: Layer.Layer<R2, E2, S>): Fx<R2 | Exclude<R, S>, E | E2, A>;
128
- export declare function provideRuntime<R, E, A, R2>(fx: Fx<R, E, A>, runtime: Runtime.Runtime<R2>): Fx<Exclude<R, R2>, E, A>;
129
- export declare function provideService<R, E, A, I, S>(fx: Fx<R, E, A>, service: Context.Tag<I, S>, instance: S): Fx<Exclude<R, I>, E, A>;
130
- export declare function provideServiceEffect<R, E, A, I, S, R2, E2>(fx: Fx<R, E, A>, service: Context.Tag<I, S>, instance: Effect.Effect<R2, E2, S>): Fx<Exclude<R, I> | R2, E | E2, A>;
131
- export declare function provide<R, E, A, R2 = never, E2 = never, S = never>(fx: Fx<R, E, A>, provide: Layer.Layer<R2, E2, S> | Context.Context<S> | Runtime.Runtime<S>): Fx<Exclude<R, S> | R2, E | E2, A>;
132
- export declare function mapCause<R, E, A, E2>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Cause.Cause<E2>): Fx<R, E2, A>;
133
- export declare function mapError<R, E, A, E2>(fx: Fx<R, E, A>, f: (e: E) => E2): Fx<R, E2, A>;
134
- export declare function filterCause<R, E, A>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => boolean): Fx<R, E, A>;
135
- export declare function filterError<R, E, A>(fx: Fx<R, E, A>, f: (e: E) => boolean): Fx<R, E, A>;
136
- export declare function filterMapCause<R, E, A, E2>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Option.Option<Cause.Cause<E2>>): Fx<R, E2, A>;
137
- export declare function filterMapError<R, E, A, E2>(fx: Fx<R, E, A>, f: (e: E) => Option.Option<E2>): Fx<R, E2, A>;
138
- export declare function mapCauseEffect<R, E, A, R2, E2, E3>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Effect.Effect<R2, E2, Cause.Cause<E3>>): Fx<R | R2, E2 | E3, A>;
139
- export declare function mapErrorEffect<R, E, A, R2, E2, E3>(fx: Fx<R, E, A>, f: (e: E) => Effect.Effect<R2, E2, E3>): Fx<R | R2, E2 | E3, A>;
140
- export declare function filterCauseEffect<R, E, A, R2, E2>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Effect.Effect<R2, E2, boolean>): Fx<R | R2, E2, A>;
141
- export declare function filterErrorEffect<R, E, A, R2, E2>(fx: Fx<R, E, A>, f: (e: E) => Effect.Effect<R2, E2, boolean>): Fx<R | R2, E2, A>;
142
- export declare function filterMapCauseEffect<R, E, A, R2, E2, E3>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Effect.Effect<R2, E2, Option.Option<Cause.Cause<E3>>>): Fx<R | R2, E2 | E3, A>;
143
- export declare function filterMapErrorEffect<R, E, A, R2, E2, E3>(fx: Fx<R, E, A>, f: (e: E) => Effect.Effect<R2, E2, Option.Option<E3>>): Fx<R | R2, E2 | E3, A>;
144
- export declare function loopCause<R, E, A, B, C>(fx: Fx<R, E, A>, seed: B, f: (b: B, cause: Cause.Cause<E>) => readonly [Cause.Cause<C>, B]): Fx<R, C, A>;
145
- export declare function loopError<R, E, A, B, C>(fx: Fx<R, E, A>, seed: B, f: (b: B, e: E) => readonly [C, B]): Fx<R, C, A>;
146
- export declare function loopCauseEffect<R, E, A, R2, E2, B, C>(fx: Fx<R, E, A>, seed: B, f: (b: B, cause: Cause.Cause<E>) => Effect.Effect<R2, E2, readonly [Cause.Cause<C>, B]>): Fx<R | R2, E2 | C, A>;
147
- export declare function loopErrorEffect<R, E, A, R2, E2, B, C>(fx: Fx<R, E, A>, seed: B, f: (b: B, e: E) => Effect.Effect<R2, E2, readonly [C, B]>): Fx<R | R2, E2 | C, A>;
148
- export declare function filterMapLoopCause<R, E, A, B, C>(fx: Fx<R, E, A>, seed: B, f: (b: B, cause: Cause.Cause<E>) => readonly [Option.Option<Cause.Cause<C>>, B]): Fx<R, C, A>;
149
- export declare function filterMapLoopError<R, E, A, B, C>(fx: Fx<R, E, A>, seed: B, f: (b: B, e: E) => readonly [Option.Option<C>, B]): Fx<R, C, A>;
150
- export declare function filterMapLoopCauseEffect<R, E, A, R2, E2, B, C>(fx: Fx<R, E, A>, seed: B, f: (b: B, cause: Cause.Cause<E>) => Effect.Effect<R2, E2, readonly [Option.Option<Cause.Cause<C>>, B]>): Fx<R | R2, E2 | C, A>;
151
- export declare function filterMapLoopErrorEffect<R, E, A, R2, E2, B, C>(fx: Fx<R, E, A>, seed: B, f: (b: B, e: E) => Effect.Effect<R2, E2, readonly [Option.Option<C>, B]>): Fx<R | R2, E2 | C, A>;
152
- export declare function flatMapCauseWithStrategy<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Fx<R2, E2, B>, flattenStrategy: FlattenStrategy, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
153
- export declare function flatMapErrorWithStrategy<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (e: E) => Fx<R2, E2, B>, flattenStrategy: FlattenStrategy, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
154
- export declare function switchMapCause<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
155
- export declare function switchMapError<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (e: E) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
156
- export declare function flatMapCause<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
157
- export declare function flatMapError<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (e: E) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
158
- export declare function flatMapCauseConcurrently<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Fx<R2, E2, B>, concurrency: number, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
159
- export declare function flatMapErrorConcurrently<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (e: E) => Fx<R2, E2, B>, concurrency: number, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
160
- export declare function exhaustMapCause<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
161
- export declare function exhaustMapError<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (e: E) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
162
- export declare function exhaustMapLatestCause<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (cause: Cause.Cause<E>) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
163
- export declare function exhaustMapLatestError<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, f: (e: E) => Fx<R2, E2, B>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<R | R2 | Scope.Scope, E2, A | B>;
164
- export type MatchCauseOptions<E, A, R2, E2, B, R3, E3, C> = {
165
- readonly onFailure: (cause: Cause.Cause<E>) => Fx<R2, E2, B>;
166
- readonly onSuccess: (a: A) => Fx<R3, E3, C>;
125
+ }): Fx<A, E, R>;
126
+ export declare function provideContext<A, E, R, R2>(fx: Fx<A, E, R>, context: Context.Context<R2>): Fx<A, E, Exclude<R, R2>>;
127
+ export declare function provideLayer<A, E, R, S, E2, R2>(fx: Fx<A, E, R>, layer: Layer.Layer<S, E2, R2>): Fx<A, E | E2, R2 | Exclude<R, S>>;
128
+ export declare function provideRuntime<A, E, R, R2>(fx: Fx<A, E, R>, runtime: Runtime.Runtime<R2>): Fx<A, E, Exclude<R, R2>>;
129
+ export declare function provideService<A, E, R, I, S>(fx: Fx<A, E, R>, service: Context.Tag<I, S>, instance: S): Fx<A, E, Exclude<R, I>>;
130
+ export declare function provideServiceEffect<A, E, R, I, S, R2, E2>(fx: Fx<A, E, R>, service: Context.Tag<I, S>, instance: Effect.Effect<S, E2, R2>): Fx<A, E | E2, Exclude<R, I> | R2>;
131
+ export declare function provide<A, E, R, R2 = never, E2 = never, S = never>(fx: Fx<A, E, R>, provide: Layer.Layer<S, E2, R2> | Context.Context<S> | Runtime.Runtime<S>): Fx<A, E | E2, Exclude<R, S> | R2>;
132
+ export declare function mapCause<A, E, R, E2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Cause.Cause<E2>): Fx<A, E2, R>;
133
+ export declare function mapError<A, E, R, E2>(fx: Fx<A, E, R>, f: (e: E) => E2): Fx<A, E2, R>;
134
+ export declare function filterCause<A, E, R>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => boolean): Fx<A, E, R>;
135
+ export declare function filterError<A, E, R>(fx: Fx<A, E, R>, f: (e: E) => boolean): Fx<A, E, R>;
136
+ export declare function filterMapCause<A, E, R, E2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Option.Option<Cause.Cause<E2>>): Fx<A, E2, R>;
137
+ export declare function filterMapError<A, E, R, E2>(fx: Fx<A, E, R>, f: (e: E) => Option.Option<E2>): Fx<A, E2, R>;
138
+ export declare function mapCauseEffect<A, E, R, R2, E2, E3>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Effect.Effect<Cause.Cause<E3>, E2, R2>): Fx<A, E2 | E3, R | R2>;
139
+ export declare function mapErrorEffect<A, E, R, R2, E2, E3>(fx: Fx<A, E, R>, f: (e: E) => Effect.Effect<E3, E2, R2>): Fx<A, E2 | E3, R | R2>;
140
+ export declare function filterCauseEffect<A, E, R, R2, E2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Effect.Effect<boolean, E2, R2>): Fx<A, E2, R | R2>;
141
+ export declare function filterErrorEffect<A, E, R, R2, E2>(fx: Fx<A, E, R>, f: (e: E) => Effect.Effect<boolean, E2, R2>): Fx<A, E2, R | R2>;
142
+ export declare function filterMapCauseEffect<A, E, R, R2, E2, E3>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Effect.Effect<Option.Option<Cause.Cause<E3>>, E2, R2>): Fx<A, E2 | E3, R | R2>;
143
+ export declare function filterMapErrorEffect<A, E, R, R2, E2, E3>(fx: Fx<A, E, R>, f: (e: E) => Effect.Effect<Option.Option<E3>, E2, R2>): Fx<A, E2 | E3, R | R2>;
144
+ export declare function loopCause<A, E, R, B, C>(fx: Fx<A, E, R>, seed: B, f: (b: B, cause: Cause.Cause<E>) => readonly [Cause.Cause<C>, B]): Fx<A, C, R>;
145
+ export declare function loopError<A, E, R, B, C>(fx: Fx<A, E, R>, seed: B, f: (b: B, e: E) => readonly [C, B]): Fx<A, C, R>;
146
+ export declare function loopCauseEffect<A, E, R, B, E2, R2, C>(fx: Fx<A, E, R>, seed: B, f: (b: B, cause: Cause.Cause<E>) => Effect.Effect<readonly [Cause.Cause<C>, B], E2, R2>): Fx<A, E2 | C, R | R2>;
147
+ export declare function loopErrorEffect<A, E, R, B, E2, R2, C>(fx: Fx<A, E, R>, seed: B, f: (b: B, e: E) => Effect.Effect<readonly [C, B], E2, R2>): Fx<A, E2 | C, R | R2>;
148
+ export declare function filterMapLoopCause<A, E, R, B, C>(fx: Fx<A, E, R>, seed: B, f: (b: B, cause: Cause.Cause<E>) => readonly [Option.Option<Cause.Cause<C>>, B]): Fx<A, C, R>;
149
+ export declare function filterMapLoopError<A, E, R, B, C>(fx: Fx<A, E, R>, seed: B, f: (b: B, e: E) => readonly [Option.Option<C>, B]): Fx<A, C, R>;
150
+ export declare function filterMapLoopCauseEffect<A, E, R, B, E2, R2, C>(fx: Fx<A, E, R>, seed: B, f: (b: B, cause: Cause.Cause<E>) => Effect.Effect<readonly [Option.Option<Cause.Cause<C>>, B], E2, R2>): Fx<A, E2 | C, R | R2>;
151
+ export declare function filterMapLoopErrorEffect<A, E, R, B, E2, R2, C>(fx: Fx<A, E, R>, seed: B, f: (b: B, e: E) => Effect.Effect<readonly [Option.Option<C>, B], E2, R2>): Fx<A, E2 | C, R | R2>;
152
+ export declare function flatMapCauseWithStrategy<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Fx<B, E2, R2>, flattenStrategy: FlattenStrategy, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
153
+ export declare function flatMapErrorWithStrategy<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (e: E) => Fx<B, E2, R2>, flattenStrategy: FlattenStrategy, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
154
+ export declare function switchMapCause<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
155
+ export declare function switchMapError<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (e: E) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
156
+ export declare function flatMapCause<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
157
+ export declare function flatMapError<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (e: E) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
158
+ export declare function flatMapCauseConcurrently<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Fx<B, E2, R2>, concurrency: number, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
159
+ export declare function flatMapErrorConcurrently<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (e: E) => Fx<B, E2, R2>, concurrency: number, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
160
+ export declare function exhaustMapCause<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
161
+ export declare function exhaustMapError<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (e: E) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
162
+ export declare function exhaustMapLatestCause<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (cause: Cause.Cause<E>) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
163
+ export declare function exhaustMapLatestError<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, f: (e: E) => Fx<B, E2, R2>, executionStrategy?: ExecutionStrategy.ExecutionStrategy): Fx<A | B, E2, R | R2 | Scope.Scope>;
164
+ export type MatchCauseOptions<E, A, B, E2, R2, C, E3, R3> = {
165
+ readonly onFailure: (cause: Cause.Cause<E>) => Fx<B, E2, R2>;
166
+ readonly onSuccess: (a: A) => Fx<C, E3, R3>;
167
167
  readonly executionStrategy?: ExecutionStrategy.ExecutionStrategy | undefined;
168
168
  };
169
- export declare function matchCauseWithStrategy<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, flattenStrategy: FlattenStrategy, opts: MatchCauseOptions<E, A, R2, E2, B, R3, E3, C>): Fx<R | R2 | R3 | Scope.Scope, E2 | E3, B | C>;
170
- export type MatchErrorOptions<E, A, R2, E2, B, R3, E3, C> = {
171
- readonly onFailure: (e: E) => Fx<R2, E2, B>;
172
- readonly onSuccess: (a: A) => Fx<R3, E3, C>;
169
+ export declare function matchCauseWithStrategy<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, flattenStrategy: FlattenStrategy, opts: MatchCauseOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, R | R2 | R3 | Scope.Scope>;
170
+ export type MatchErrorOptions<E, A, B, E2, R2, C, E3, R3> = {
171
+ readonly onFailure: (e: E) => Fx<B, E2, R2>;
172
+ readonly onSuccess: (a: A) => Fx<C, E3, R3>;
173
173
  readonly executionStrategy?: ExecutionStrategy.ExecutionStrategy | undefined;
174
174
  };
175
- export declare function matchErrorWithStrategy<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, flattenStrategy: FlattenStrategy, { executionStrategy, onFailure, onSuccess }: MatchErrorOptions<E, A, R2, E2, B, R3, E3, C>): Fx<R | R2 | R3 | Scope.Scope, E2 | E3, B | C>;
176
- export declare function matchCause<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, opts: MatchCauseOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
177
- export declare function matchError<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, opts: MatchErrorOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
178
- export declare function matchCauseConcurrently<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, concurrency: number, opts: MatchCauseOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
179
- export declare function matchErrorConcurrently<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, concurrency: number, opts: MatchErrorOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
180
- export declare function switchMatchCause<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, opts: MatchCauseOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
181
- export declare function switchMatchError<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, opts: MatchErrorOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
182
- export declare function exhaustMatchCause<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, opts: MatchCauseOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
183
- export declare function exhaustMatchError<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, opts: MatchErrorOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
184
- export declare function exhaustMatchLatestCause<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, opts: MatchCauseOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
185
- export declare function exhaustMatchLatestError<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, opts: MatchErrorOptions<E, A, R2, E2, B, R3, E3, C>): Fx<Scope.Scope | R | R2 | R3, E2 | E3, B | C>;
186
- export declare function tuple<const FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Context<FX[number]>, Fx.Error<FX[number]>, {
175
+ export declare function matchErrorWithStrategy<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, flattenStrategy: FlattenStrategy, { executionStrategy, onFailure, onSuccess }: MatchErrorOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, R | R2 | R3 | Scope.Scope>;
176
+ export declare function matchCause<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, opts: MatchCauseOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
177
+ export declare function matchError<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, opts: MatchErrorOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
178
+ export declare function matchCauseConcurrently<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, concurrency: number, opts: MatchCauseOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
179
+ export declare function matchErrorConcurrently<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, concurrency: number, opts: MatchErrorOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
180
+ export declare function switchMatchCause<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, opts: MatchCauseOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
181
+ export declare function switchMatchError<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, opts: MatchErrorOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
182
+ export declare function exhaustMatchCause<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, opts: MatchCauseOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
183
+ export declare function exhaustMatchError<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, opts: MatchErrorOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
184
+ export declare function exhaustMatchLatestCause<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, opts: MatchCauseOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
185
+ export declare function exhaustMatchLatestError<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, opts: MatchErrorOptions<E, A, B, E2, R2, C, E3, R3>): Fx<B | C, E2 | E3, Scope.Scope | R | R2 | R3>;
186
+ export declare function tuple<const FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<{
187
187
  readonly [K in keyof FX]: Fx.Success<FX[K]>;
188
- }>;
189
- export declare function struct<const FX extends Readonly<Record<string, Fx<any, any, any>>>>(fx: FX): Fx<Fx.Context<FX[string]>, Fx.Error<FX[string]>, {
188
+ }, Fx.Error<FX[number]>, Fx.Context<FX[number]>>;
189
+ export declare function struct<const FX extends Readonly<Record<string, Fx<any, any, any>>>>(fx: FX): Fx<{
190
190
  readonly [K in keyof FX]: Fx.Success<FX[K]>;
191
- }>;
192
- export declare function all<const FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Context<FX[number]>, Fx.Error<FX[number]>, {
191
+ }, Fx.Error<FX[string]>, Fx.Context<FX[string]>>;
192
+ export declare function all<const FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<{
193
193
  readonly [K in keyof FX]: Fx.Success<FX[K]>;
194
- }>;
195
- export declare function all<const FX extends Readonly<Record<string, Fx<any, any, any>>>>(fx: FX): Fx<Fx.Context<FX[string]>, Fx.Error<FX[string]>, {
194
+ }, Fx.Error<FX[number]>, Fx.Context<FX[number]>>;
195
+ export declare function all<const FX extends Readonly<Record<string, Fx<any, any, any>>>>(fx: FX): Fx<{
196
196
  readonly [K in keyof FX]: Fx.Success<FX[K]>;
197
- }>;
198
- export declare function exit<R, E, A>(fx: Fx<R, E, A>): Fx<R, never, Exit.Exit<E, A>>;
199
- export declare function toEnqueue<R, E, A, R2 = never>(fx: Fx<R, E, A>, queue: Context.Enqueue<R2, A> | Queue.Enqueue<A>): Effect.Effect<R | R2, E, void>;
200
- export declare function debounce<R, E, A>(fx: Fx<R, E, A>, delay: Duration.DurationInput): Fx<R | Scope.Scope, E, A>;
201
- export declare function throttle<R, E, A>(fx: Fx<R, E, A>, delay: Duration.DurationInput): Fx<R | Scope.Scope, E, A>;
202
- export declare function throttleLatest<R, E, A>(fx: Fx<R, E, A>, delay: Duration.DurationInput): Fx<R | Scope.Scope, E, A>;
203
- export declare function fromAsyncIterable<A>(iterable: AsyncIterable<A>): Fx<never, never, A>;
204
- export declare function findFirst<R, E, A>(fx: Fx<R, E, A>, predicate: Predicate.Predicate<A>): Effect.Effect<R, E, A>;
205
- export declare function first<R, E, A>(fx: Fx<R, E, A>): Effect.Effect<R, E, A>;
206
- export declare function either<R, E, A>(fx: Fx<R, E, A>): Fx<R, never, Either.Either<E, A>>;
207
- export declare function mergeFirst<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, that: Fx<R2, E2, B>): Fx<R | R2, E | E2, A>;
208
- export declare function mergeRace<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, that: Fx<R2, E2, B>): Fx<R | R2, E | E2, A | B>;
209
- export declare function raceAll<const FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Context<FX[number]>, Fx.Error<FX[number]>, Fx.Success<FX[number]>>;
210
- export declare function race<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, that: Fx<R2, E2, B>): Fx<R | R2, E | E2, A | B>;
211
- export declare function snapshot<R, E, A, R2, E2, B, C>(fx: Fx<R, E, A>, sampled: Fx<R2, E2, B>, f: (a: A, b: B) => C): Fx<R | R2, E | E2, C>;
212
- export declare function sample<R, E, A, R2, E2, B>(fx: Fx<R, E, A>, sampled: Fx<R2, E2, B>): Fx<R | R2, E | E2, B>;
213
- export declare function snapshotEffect<R, E, A, R2, E2, B, R3, E3, C>(fx: Fx<R, E, A>, sampled: Fx<R2, E2, B>, f: (a: A, b: B) => Effect.Effect<R3, E3, C>): Fx<R | R2 | R3, E | E2 | E3, C>;
214
- declare function if_<R, E, R2, E2, B, R3, E3, C>(bool: Fx<R, E, boolean>, options: {
215
- readonly onTrue: Fx<R2, E2, B>;
216
- readonly onFalse: Fx<R3, E3, C>;
217
- }): Fx<R | R2 | R3 | Scope.Scope, E | E2 | E3, B | C>;
197
+ }, Fx.Error<FX[string]>, Fx.Context<FX[string]>>;
198
+ export declare function exit<A, E, R>(fx: Fx<A, E, R>): Fx<Exit.Exit<A, E>, never, R>;
199
+ export declare function toEnqueue<A, E, R, R2 = never>(fx: Fx<A, E, R>, queue: Context.Enqueue<R2, A> | Queue.Enqueue<A>): Effect.Effect<void, E, R | R2>;
200
+ export declare function debounce<A, E, R>(fx: Fx<A, E, R>, delay: Duration.DurationInput): Fx<A, E, R | Scope.Scope>;
201
+ export declare function throttle<A, E, R>(fx: Fx<A, E, R>, delay: Duration.DurationInput): Fx<A, E, R | Scope.Scope>;
202
+ export declare function throttleLatest<A, E, R>(fx: Fx<A, E, R>, delay: Duration.DurationInput): Fx<A, E, R | Scope.Scope>;
203
+ export declare function fromAsyncIterable<A>(iterable: AsyncIterable<A>): Fx<A>;
204
+ export declare function findFirst<A, E, R>(fx: Fx<A, E, R>, predicate: Predicate.Predicate<A>): Effect.Effect<A, E, R>;
205
+ export declare function first<A, E, R>(fx: Fx<A, E, R>): Effect.Effect<A, E, R>;
206
+ export declare function either<A, E, R>(fx: Fx<A, E, R>): Fx<Either.Either<E, A>, never, R>;
207
+ export declare function mergeFirst<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, that: Fx<B, E2, R2>): Fx<A, E | E2, R | R2>;
208
+ export declare function mergeRace<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, that: Fx<B, E2, R2>): Fx<A | B, E | E2, R | R2>;
209
+ export declare function raceAll<const FX extends ReadonlyArray<Fx<any, any, any>>>(fx: FX): Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Context<FX[number]>>;
210
+ export declare function race<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, that: Fx<B, E2, R2>): Fx<A | B, E | E2, R | R2>;
211
+ export declare function snapshot<A, E, R, B, E2, R2, C>(fx: Fx<A, E, R>, sampled: Fx<B, E2, R2>, f: (a: A, b: B) => C): Fx<C, E | E2, R | R2>;
212
+ export declare function sample<A, E, R, B, E2, R2>(fx: Fx<A, E, R>, sampled: Fx<B, E2, R2>): Fx<B, E | E2, R | R2>;
213
+ export declare function snapshotEffect<A, E, R, B, E2, R2, C, E3, R3>(fx: Fx<A, E, R>, sampled: Fx<B, E2, R2>, f: (a: A, b: B) => Effect.Effect<C, E3, R3>): Fx<C, E | E2 | E3, R | R2 | R3>;
214
+ declare function if_<B, E, R, E2, R2, C, E3, R3>(bool: Fx<boolean, E, R>, options: {
215
+ readonly onTrue: Fx<B, E2, R2>;
216
+ readonly onFalse: Fx<C, E3, R3>;
217
+ }): Fx<B | C, E | E2 | E3, R | R2 | R3 | Scope.Scope>;
218
218
  export { if_ as if };
219
- export declare function when<R, E, B, C>(bool: Fx<R, E, boolean>, options: {
219
+ export declare function when<B, E, R, C>(bool: Fx<boolean, E, R>, options: {
220
220
  readonly onTrue: B;
221
221
  readonly onFalse: C;
222
- }): Fx<R | Scope.Scope, E, B | C>;
223
- export declare function mapBoth<R, E, A, B, C>(fx: Fx<R, E, A>, f: (e: E) => B, g: (a: A) => C): Fx<R, B, C>;
222
+ }): Fx<B | C, E, R | Scope.Scope>;
223
+ export declare function mapBoth<A, E, R, B, C>(fx: Fx<A, E, R>, f: (e: E) => B, g: (a: A) => C): Fx<C, B, R>;
224
224
  //# sourceMappingURL=core.d.ts.map