import * as O from "../Option"
import type { Effect } from "./effect"
/**
 * Extracts the optional value, or fails with the given error 'e'.
 *
 * @dataFirst someOrFail_
 */
export declare function someOrFail<E2>(
  orFail: () => E2,
  __trace?: string
): <R, E, A>(self: Effect<R, E, O.Option<A>>) => Effect<R, E2 | E, A>
/**
 * Extracts the optional value, or fails with the given error 'e'.
 */
export declare function someOrFail_<R, E, A, E2>(
  self: Effect<R, E, O.Option<A>>,
  orFail: () => E2,
  __trace?: string
): Effect<R, E | E2, A>
//# sourceMappingURL=someOrFail.d.ts.map
