import { _A, _E } from "../Effect/commons"
import { NoSuchElementException } from "../GlobalExceptions"
import type { Option } from "../Option"
import * as Utils from "../Utils"
import type { Either } from "./core"
export declare class GenEither<E, A> {
  readonly effect: Either<E, A>;
  readonly [_E]: () => E;
  readonly [_A]: () => A
  constructor(effect: Either<E, A>)
  [Symbol.iterator](): Generator<GenEither<E, A>, A, any>
}
export declare function gen<Eff extends GenEither<any, any>, AEff>(
  f: (i: {
    <E, A>(_: Option<A>, onNone: () => E): GenEither<E, A>
    <A>(_: Option<A>): GenEither<NoSuchElementException, A>
    <E, A>(_: Either<E, A>): GenEither<E, A>
  }) => Generator<Eff, AEff, any>
): Either<Utils._E<Eff>, AEff>
//# sourceMappingURL=gen.d.ts.map
