import { Compactable1 } from 'fp-ts/lib/Compactable'; import { Either } from 'fp-ts/lib/Either'; import { Option } from 'fp-ts/lib/Option'; import { Separated } from 'fp-ts/lib/Separated'; import { AsyncStream, URI } from './uri'; /** * Compact a {@link AsyncStream} of {@link Option}s discarding the `None` values * and keeping the `Some` values. It returns a new {@link AsyncStream} * containing the values of `Some` options. * * @export * @template A The value type. * @param {AsyncStream>} fa The input async stream. * @return {AsyncStream} The output async stream. * * @category filtering * @__PURE__ */ export declare function compact(fa: AsyncStream>): AsyncStream; /** * Separate a {@link AsyncStream} of {@link Either}s into `Left` and `Right`s, * creating two new {@link AsyncStream}s where one containing all the left * values and the other containing all the right values. * * @export * @template E The left value type. * @template A The right value type. * @param {AsyncStream>} fa The input async stream. * @return {Separated, AsyncStream>} The separated output * async streams. * * @category filtering * @__PURE__ */ export declare function separate(fa: AsyncStream>): Separated, AsyncStream>; /** * The `Compactable` category instance for {@link AsyncStream}. */ export declare const Compactable: Compactable1;