import { Extend1 } from 'fp-ts/lib/Extend'; import { AsyncStream, URI } from './uri'; /** * Given an iterating function that takes an {@link AsyncStream} as input, * `extend` returns an {@link AsyncStream} containing the results of the * iterating function applied to the whole input {@link AsyncStream}, then to * the input {@link AsyncStream} without the first element, then to the * input {@link AsyncStream} without the first two elements, etc. * * @export * @template A The input value type. * @template B The output value. * @param {(ma: AsyncStream) => B} f The mapping function. * @return {(fa: AsyncStream) => AsyncStream} A function that takes an * async stream of type `A` and returns another async stream of type `B`. * * @__PURE__ */ export declare function extend(f: (fa: AsyncStream) => B): (fa: AsyncStream) => AsyncStream; /** * The `Extend` category instance for {@link AsyncStream}. */ export declare const Extend: Extend1;