import { Effect } from "@effect/core/io/Effect/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Exit } from "@effect/core/io/Exit/definition";
import { Fiber } from "@effect/core/io/Fiber/definition";
/**
 * Returns an effect that races this effect with the specified effect, calling
 * the specified finisher as soon as one result or the other has been computed.
 * @tsplus fluent ets/Effect raceWith
 * @tsplus location "@effect/core/io/Effect/operations/raceWith"
 */
export declare function raceWith_<R, E, A, R1, E1, A1, R2, E2, A2, R3, E3, A3>(self: Effect<R, E, A>, that: LazyArg<Effect<R1, E1, A1>>, leftDone: (exit: Exit<E, A>, fiber: Fiber<E1, A1>) => Effect<R2, E2, A2>, rightDone: (exit: Exit<E1, A1>, fiber: Fiber<E, A>) => Effect<R3, E3, A3>, __tsplusTrace?: string): Effect<R | R1 | R2 | R3, E2 | E3, A2 | A3>;
/**
 * Returns an effect that races this effect with the specified effect, calling
 * the specified finisher as soon as one result or the other has been computed.
 * @tsplus static ets/Effect/Aspects raceWith
 * @tsplus pipeable ets/Effect raceWith
 * @tsplus location "@effect/core/io/Effect/operations/raceWith"
 */
export declare const raceWith: <E, A, R1, E1, A1, R2, E2, A2, R3, E3, A3>(that: import("@tsplus/stdlib/data/Function").LazyArg<import("../definition").Effect<R1, E1, A1>>, leftDone: (exit: import("../../Exit").Exit<E, A>, fiber: import("../../Fiber").Fiber<E1, A1>) => import("../definition").Effect<R2, E2, A2>, rightDone: (exit: import("../../Exit").Exit<E1, A1>, fiber: import("../../Fiber").Fiber<E, A>) => import("../definition").Effect<R3, E3, A3>, __tsplusTrace?: string) => <R>(self: import("../definition").Effect<R, E, A>) => import("../definition").Effect<R | R1 | R2 | R3, E2 | E3, A2 | A3>;
//# sourceMappingURL=raceWith.d.ts.map