import { Stream } from '../uri'; /** * A useful recursion pattern for processing a {@link Stream} to produce a new * array, often used for "chopping" up the input {@link Stream}. Typically * `chop` is called with some function that will consume an initial prefix of * the {@link Stream} and produce a value and the rest of the {@link Stream}. * * @export * @template A The value type. * @template B The chopped value type. * @param {(fa: Stream) => [ B, Stream ]} f The chop function. * @return {(fa: Stream) => Stream} A function that takes a stream to * chop the first element of it. * * @__PURE__ */ export declare function chop(f: (fa: Stream) => [B, Stream]): (fa: Stream) => Stream;