import type * as CK from "../../../Collections/Immutable/Chunk";
import type { Predicate } from "../../../Function";
import * as C from "./core";
/**
 * A sink that folds its input chunks with the provided function, termination predicate and initial state.
 * `contFn` condition is checked only for the initial value and at the end of processing of each chunk.
 * `f` and `contFn` must preserve chunking-invariance.
 */
export declare function foldChunks<Err, In, S>(z: S, contFn: Predicate<S>, f: (s: S, chunk: CK.Chunk<In>) => S): C.Sink<unknown, Err, In, Err, unknown, S>;
//# sourceMappingURL=foldChunks.d.ts.map