import { Stream } from "@effect/core/stream/Stream/definition";
import { Chunk } from "@tsplus/stdlib/collections/Chunk/definition";
import { Effect } from "@effect/core/io/Effect/definition";
import { Scope } from "@effect/core/io/Scope/definition";
/**
 * Like `Stream.runForEachChunk`, but returns a scoped `Effect` so the
 * finalization order can be controlled.
 * @tsplus fluent ets/Stream runForEachChunkScoped
 * @tsplus location "@effect/core/stream/Stream/operations/runForEachChunkScoped"
 */
export declare function runForEachChunkScoped_<R, E, A, R2, E2, Z>(self: Stream<R, E, A>, f: (chunk: Chunk<A>) => Effect<R2, E2, Z>, __tsplusTrace?: string): Effect<R | R2 | Scope, E | E2, void>;
/**
 * Like `Stream.runForEachChunk`, but returns a scoped `Effect` so the
 * finalization order can be controlled.
 * @tsplus static ets/Stream/Aspects runForEachChunkScoped
 * @tsplus pipeable ets/Stream runForEachChunkScoped
 * @tsplus location "@effect/core/stream/Stream/operations/runForEachChunkScoped"
 */
export declare const runForEachChunkScoped: <A, R2, E2, Z>(f: (chunk: import("@tsplus/stdlib/collections/Chunk").Chunk<A>) => import("../../../io/Effect").Effect<R2, E2, Z>, __tsplusTrace?: string) => <R, E>(self: import("../definition").Stream<R, E, A>) => import("../../../io/Effect").Effect<import("../../../io/Scope").Scope | R | R2, E | E2, void>;
//# sourceMappingURL=runForEachChunkScoped.d.ts.map