import { Take } from "@effect/core/stream/Take/definition";
import { Cause } from "@effect/core/io/Cause/definition";
import { Chunk } from "@tsplus/stdlib/collections/Chunk/definition";
/**
 * Folds over the failure cause, success value and end-of-stream marker to
 * yield a value.
 * @tsplus fluent ets/Take fold
 * @tsplus location "@effect/core/stream/Take/operations/fold"
 */
export declare function fold_<E, A, Z>(self: Take<E, A>, end: Z, error: (cause: Cause<E>) => Z, value: (chunk: Chunk<A>) => Z, __tsplusTrace?: string): Z;
/**
 * Folds over the failure cause, success value and end-of-stream marker to
 * yield a value.
 * @tsplus static ets/Take/Aspects fold
 * @tsplus pipeable ets/Take fold
 * @tsplus location "@effect/core/stream/Take/operations/fold"
 */
export declare const fold: <E, A, Z>(end: Z, error: (cause: import("../../../io/Cause").Cause<E>) => Z, value: (chunk: import("@tsplus/stdlib/collections/Chunk").Chunk<A>) => Z, __tsplusTrace?: string) => (self: import("../definition").Take<E, A>) => Z;
//# sourceMappingURL=fold.d.ts.map