import { Stream } from "@effect/core/stream/Stream/definition";
import { LazyArg } from "@tsplus/stdlib/data/Function";
import { Sink } from "@effect/core/stream/Sink/definition/base";
import { Effect } from "@effect/core/io/Effect/definition";
/**
 * Runs the sink on the stream to produce either the sink's result or an
 * error.
 * @tsplus fluent ets/Stream run
 * @tsplus location "@effect/core/stream/Stream/operations/run"
 */
export declare function run_<R, E, A, R2, E2, Z>(self: Stream<R, E, A>, sink: LazyArg<Sink<R2, E2, A, unknown, Z>>, __tsplusTrace?: string): Effect<R | R2, E | E2, Z>;
/**
 * Runs the sink on the stream to produce either the sink's result or an
 * error.
 * @tsplus static ets/Stream/Aspects run
 * @tsplus pipeable ets/Stream run
 * @tsplus location "@effect/core/stream/Stream/operations/run"
 */
export declare const run: <A, R2, E2, Z>(sink: import("@tsplus/stdlib/data/Function").LazyArg<import("../../Sink").Sink<R2, E2, A, unknown, Z>>, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../../../io/Effect").Effect<R | R2, E | E2, Z>;
//# sourceMappingURL=run.d.ts.map