/** * inspired by https://github.com/tusharmath/qio/pull/22 (revised) */ import { _A, _E, _R } from "../Effect/commons.js"; import type { Either } from "../Either/index.js"; import { NoSuchElementException } from "../GlobalExceptions/index.js"; import type { Has, Tag } from "../Has/index.js"; import type { Option } from "../Option/index.js"; import type * as Utils from "../Utils/index.js"; import type { Sync } from "./core.js"; export declare class GenSync { readonly effect: Sync; readonly [_R]: (_R: R) => void; readonly [_E]: () => E; readonly [_A]: () => A; constructor(effect: Sync); [Symbol.iterator](): Generator, A, any>; } export declare function gen, AEff>(f: (i: { (_: Tag): GenSync, never, A>; (_: Option, onNone: () => E): GenSync; (_: Option): GenSync; (_: Either): GenSync; (_: Sync): GenSync; }) => Generator): Sync, Utils._E, AEff>; //# sourceMappingURL=gen.d.ts.map