/** * ```ts * interface Separated { * readonly left: E * readonly right: A * } * ``` * * Represents a result of separating a whole into two parts. * * @since 2.10.0 */ import { Bifunctor2 } from './Bifunctor.js'; import { Functor2 } from './Functor.js'; /** * A `Separated` type which holds `left` and `right` parts. * * @category model * @since 2.10.0 */ export interface Separated { readonly left: E; readonly right: A; } /** * @category constructors * @since 2.10.0 */ export declare const separated: (left: E, right: A) => Separated; /** * `map` can be used to turn functions `(a: A) => B` into functions `(fa: F) => F` whose argument and return types * use the type constructor `F` to represent some computational context. * * @category mapping * @since 2.10.0 */ export declare const map: (f: (a: A) => B) => (fa: Separated) => Separated; /** * Map a function over the first type argument of a bifunctor. * * @category error handling * @since 2.10.0 */ export declare const mapLeft: (f: (e: E) => G) => (fa: Separated) => Separated; /** * Map a pair of functions over the two type arguments of the bifunctor. * * @category mapping * @since 2.10.0 */ export declare const bimap: (f: (e: E) => G, g: (a: A) => B) => (fa: Separated) => Separated; /** * @category type lambdas * @since 2.10.0 */ export declare const URI = "Separated"; /** * @category type lambdas * @since 2.10.0 */ export type URI = typeof URI; declare module './HKT.js' { interface URItoKind2 { readonly [URI]: Separated; } } /** * @category instances * @since 2.10.0 */ export declare const Bifunctor: Bifunctor2; /** * @category instances * @since 2.10.0 */ export declare const Functor: Functor2; /** * @category mapping * @since 2.10.0 */ export declare const flap: (a: A) => (fab: import("./HKT.js").Kind2<"Separated", E, (a: A) => B>) => import("./HKT.js").Kind2<"Separated", E, B>; /** * @since 2.10.0 */ export declare const left: (s: Separated) => E; /** * @since 2.10.0 */ export declare const right: (s: Separated) => A;