import type { Effect } from "./effect"
/**
 * Binds an effectful value in a `do` scope
 *
 * @dataFirst bind_
 */
declare function bind<R, E, A, K, N extends string>(
  tag: Exclude<N, keyof K>,
  f: (_: K) => Effect<R, E, A>,
  __trace?: string
): <R2, E2>(mk: Effect<R2, E2, K>) => Effect<R & R2, E | E2, K & { [k in N]: A }>
/**
 * Binds an effectful value in a `do` scope
 */
export declare function bind_<R2, E2, R, E, A, K, N extends string>(
  mk: Effect<R2, E2, K>,
  tag: Exclude<N, keyof K>,
  f: (_: K) => Effect<R, E, A>,
  __trace?: string
): Effect<
  R & R2,
  E | E2,
  K &
    {
      [k in N]: A
    }
>
/**
 * Like bind for values
 *
 * @dataFirst let_
 */
declare function let__<A, K, N extends string>(
  tag: Exclude<N, keyof K>,
  f: (_: K) => A,
  __trace?: string
): <R2, E2>(mk: Effect<R2, E2, K>) => Effect<R2, E2, K & { [k in N]: A }>
/**
 * Like bind for values
 */
export declare function let_<R2, E2, A, K, N extends string>(
  mk: Effect<R2, E2, K>,
  tag: Exclude<N, keyof K>,
  f: (_: K) => A,
  __trace?: string
): Effect<
  R2,
  E2,
  K &
    {
      [k in N]: A
    }
>
declare const do_: Effect<unknown, never, {}>
export { let__ as let, bind, do_ as do }
//# sourceMappingURL=do.d.ts.map
