import { ReadonlyNonEmptyArray } from 'fp-ts/lib/ReadonlyNonEmptyArray'; import { AsyncStream } from '../uri'; import { MaybeAsync } from './maybe-async'; declare type UnwrapOutputs>, Output extends ReadonlyArray = []> = SA extends readonly [ AsyncStream, ...infer R extends ReadonlyArray> ] ? UnwrapOutputs : Output; declare type OutputMapper>, R> = (...args: [...UnwrapOutputs]) => MaybeAsync; declare type Condition>> = OutputMapper; /** * {@link AsyncStream} comprehension. * * ``` * { f(x, y, ...) | x ← xs, y ← ys, ..., g(x, y, ...) } * ``` * * @export * @template R The output type. * @template I The input parameters array type. * @param {I} input The input streams. * @param {OutputMapper} f The output mapper function. * @param {Condition} [g] Optional condition function. * @return {AsyncStream} The output async stream. * * @__PURE__ */ export declare function comprehension>>(input: I, f: OutputMapper, g?: Condition): AsyncStream; export {};