import "../../Operator/index.js"; import * as C from "../../Cause/core.js"; import * as A from "../../Collections/Immutable/Chunk/index.js"; import * as E from "../../Exit/api.js"; import * as O from "../../Option/index.js"; import * as T from "../_internal/effect.js"; import type { Pull } from "../Pull/index.js"; export declare type Take = E.Exit, A.Chunk>; export declare function chunk(as: A.Chunk): Take; export declare function halt(cause: C.Cause): Take; export declare const end: Take; export declare function done(take: Take): T.Effect, A.Chunk>; export declare function fromPull(pull: Pull): T.Effect>; export declare function tap_(take: Take, f: (as: A.Chunk) => T.Effect): T.Effect; export declare function tap(f: (as: A.Chunk) => T.Effect): (take: E.Exit, A.Chunk>) => T.Effect; /** * Folds over the failure cause, success value and end-of-stream marker to * yield a value. */ export declare function fold_(take: Take, end: Z, error: (cause: C.Cause) => Z, value: (chunk: A.Chunk) => Z): Z; /** * Folds over the failure cause, success value and end-of-stream marker to * yield a value. */ export declare function fold(end: Z, error: (cause: C.Cause) => Z, value: (chunk: A.Chunk) => Z): (take: Take) => Z; /** * Effectful version of `Take#fold`. * * Folds over the failure cause, success value and end-of-stream marker to * yield an effect. */ export declare function foldM_(take: Take, end: () => T.Effect, error: (cause: C.Cause) => T.Effect, value: (chunk: A.Chunk) => T.Effect): T.Effect; /** * Effectful version of `Take#fold`. * * Folds over the failure cause, success value and end-of-stream marker to * yield an effect. */ export declare function foldM(end: () => T.Effect, error: (cause: C.Cause) => T.Effect, value: (chunk: A.Chunk) => T.Effect): (take: Take) => T.Effect; export declare function map_(take: Take, f: (a: A) => B): Take; export declare function map(f: (a: A) => B): (take: E.Exit, A.Chunk>) => E.Exit, A.Chunk>; //# sourceMappingURL=index.d.ts.map