import { HKT, Kind, Kind2, Kind3, URIS, URIS2, URIS3 } from 'fp-ts/HKT'; import { Applicative, Applicative1, Applicative2, Applicative2C, Applicative3, Applicative3C } from 'fp-ts/lib/Applicative'; import { Either } from 'fp-ts/lib/Either'; import { Option } from 'fp-ts/lib/Option'; import { Separated } from 'fp-ts/lib/Separated'; import { Witherable1 } from 'fp-ts/lib/Witherable'; import { URI } from './uri'; /** * Partitions a structure with effects with given {@link Applicative} instance. * * @export * @template F The type of the applicative instance. * @param {Applicative} F The applicative instance. * @return {( * f: (a: A) => HKT> * ) => (wa: Kind) => HKT, Kind>>} A * function that will map the value to a `HKT` of either of the mapped type `C`. * * @category model * @__PURE__ */ export declare function wilt(F: Applicative3): (f: (a: A) => Kind3>) => (wa: Kind) => Kind3, Kind>>; export declare function wilt(F: Applicative3C): (f: (a: A) => Kind3>) => (wa: Kind) => Kind3, Kind>>; export declare function wilt(F: Applicative2): (f: (a: A) => Kind2>) => (wa: Kind) => Kind2, Kind>>; export declare function wilt(F: Applicative2C): (f: (a: A) => Kind2>) => (wa: Kind) => Kind2, Kind>>; export declare function wilt(F: Applicative1): (f: (a: A) => Kind>) => (wa: Kind) => Kind, Kind>>; export declare function wilt(F: Applicative): (f: (a: A) => HKT>) => (wa: Kind) => HKT, Kind>>; /** * Filters a structure with effects with given {@link Applicative} instance. * * @export * @template F The type of the applicative instance. * @param {Applicative} F The applicative instance. * @return {(f: (a: A) => HKT>) => (ta: Kind) => HKT>} A * function that will map the value to a `HKT` of option of the mapped type `B`. * * @category model * @__PURE__ */ export declare function wither(F: Applicative3): (f: (a: A) => Kind3>) => (ta: Kind) => Kind3>; export declare function wither(F: Applicative3C): (f: (a: A) => Kind3>) => (ta: Kind) => Kind3>; export declare function wither(F: Applicative2): (f: (a: A) => Kind2>) => (ta: Kind) => Kind2>; export declare function wither(F: Applicative2C): (f: (a: A) => Kind2>) => (ta: Kind) => Kind2>; export declare function wither(F: Applicative1): (f: (a: A) => Kind>) => (ta: Kind) => Kind>; export declare function wither(F: Applicative): (f: (a: A) => HKT>) => (ta: Kind) => HKT>; /** * The `Witherable` category instance for {@link Stream}. * * @category model */ export declare const Witherable: Witherable1; /** * Filter values inside a `F` context. * * See `ReadonlyArray`'s `filterE` for an example of usage. */ export declare const filterE: import("fp-ts/lib/Witherable").FilterE1<"fp-ts-stream/Stream">;