import { Lazy } from 'fp-ts/lib/function'; import { Stream } from '../uri'; /** * Less strict version of {@link match}. * * @export * @template B The type of the value on empty. * @template A The type of the streamed value. * @template C The type of the value on non-empty. * @param {Lazy} onEmpty The lazy function that will be executed if the * stream is empty. * * @param {(fa: Stream) => C} onNonEmpty The function that will be executed * if the stream is not empty. * * @return {(fa: Stream) => B | C} A function that takes a stream to match. * * @category pattern matching * @__PURE__ */ export declare function matchW(onEmpty: Lazy, onNonEmpty: (fa: Stream) => C): (fa: Stream) => B | C; /** * Matches a {@link Stream} whether if that was empty or not. * * @export * @template B The type of the value on empty. * @template A The type of the streamed value. * @param {Lazy} onEmpty The lazy function that will be executed if the * stream is empty. * * @param {(fa: Stream) => B} onNonEmpty The function that will be executed. * @return {(fa: Stream) => B} A function that takes a stream to match. * * @category pattern matching * @__PURE__ */ export declare function match(onEmpty: Lazy, onNonEmpty: (fa: Stream) => B): (fa: Stream) => B;