import { Alternative1 } from 'fp-ts/lib/Alternative'; import { Lazy } from 'fp-ts/lib/function'; import { AsyncStream, URI } from './uri'; /** * Less strict version of [`alt`](#alt). * * The `W` suffix (short for **W**idening) means that the return types will be * merged. * * @export * @template B The other value type. * @param {Lazy>} that The lazy function providing the other * async stream. * * @return {(fa: AsyncStream) => AsyncStream} A function that takes * an async stream and returns another stream whose elements are concatted with * the given one. * * @category error handling * @__PURE__ */ export declare function altW(that: Lazy>): (ma: AsyncStream) => AsyncStream; /** * Concatenates the inputs to a single {@link AsyncStream}. * * @export * @template A The value type. * @param {Lazy>} that The lazy function providing the other * async stream. * * @return {(fa: AsyncStream) => AsyncStream} A function that takes an * async stream and returns another async stream whose elements are concatted * with the given one. */ export declare function alt(that: Lazy>): (ma: AsyncStream) => AsyncStream; /** * The `Alternative` category instance for {@link AsyncStream}. */ export declare const Alternative: Alternative1;