/** * inspired by https://github.com/tusharmath/qio/pull/22 (revised) */ import { STM } from "@effect/core/stm/STM/definition/base"; export declare class GenSTM { readonly stm: STM; readonly _R: () => R; readonly _E: () => E; readonly _A: () => A; constructor(stm: STM); [Symbol.iterator](): Generator, A, any>; } /** * Do simulation using Generators * @tsplus static effect/core/stm/STM.Ops gen * @tsplus location "@effect/core/stm/STM/operations/gen" */ export declare function gen, AEff>(f: (i: { (_: STM): GenSTM; }) => Generator): STM<[ Eff ] extends [{ _R: () => infer R; }] ? R : never, [ Eff ] extends [{ _E: () => infer E; }] ? E : never, AEff>; //# sourceMappingURL=gen.d.ts.map