/** * @since 2.0.0 */ import { Applicative2C } from './Applicative' import { Apply2C } from './Apply' import { Bifunctor2 } from './Bifunctor' import { Chain2C } from './Chain' import { ChainRec2C } from './ChainRec' import { Comonad2 } from './Comonad' import { Foldable2 } from './Foldable' import { Monad2C } from './Monad' import { Monoid } from './Monoid' import { Semigroup } from './Semigroup' import { Semigroupoid2 } from './Semigroupoid' import { Traversable2, PipeableTraverse2 } from './Traversable' import { Functor2 } from './Functor' /** * @category destructors * @since 2.0.0 */ export declare const fst: (ea: [A, E]) => A /** * @category destructors * @since 2.0.0 */ export declare const snd: (ea: [A, E]) => E /** * @category combinators * @since 2.0.0 */ export declare const swap: (sa: [A, E]) => [E, A] /** * @category instances * @since 2.0.0 */ export declare const getApply: (S: Semigroup) => Apply2C /** * @category instances * @since 2.0.0 */ export declare const getApplicative: (M: Monoid) => Applicative2C /** * @category instances * @since 2.0.0 */ export declare const getChain: (S: Semigroup) => Chain2C /** * @category instances * @since 2.0.0 */ export declare const getMonad: (M: Monoid) => Monad2C /** * @category instances * @since 2.0.0 */ export declare const getChainRec: (M: Monoid) => ChainRec2C /** * Map a pair of functions over the two type arguments of the bifunctor. * * @category Bifunctor * @since 2.0.0 */ export declare const bimap: (f: (e: E) => G, g: (a: A) => B) => (fa: [A, E]) => [B, G] /** * Map a function over the first type argument of a bifunctor. * * @category Bifunctor * @since 2.0.0 */ export declare const mapLeft: (f: (e: E) => G) => (fa: [A, E]) => [A, G] /** * @category Semigroupoid * @since 2.0.0 */ export declare const compose: (ab: [B, A]) => (bc: [C, B]) => [C, A] /** * Derivable from `Extend`. * * @category combinators * @since 2.0.0 */ export declare const duplicate: (wa: [A, E]) => [[A, E], E] /** * @category Extend * @since 2.0.0 */ export declare const extend: (f: (wa: [A, E]) => B) => (wa: [A, E]) => [B, E] /** * @category Extract * @since 2.6.2 */ export declare const extract: (wa: [A, E]) => A /** * @category Foldable * @since 2.0.0 */ export declare const foldMap: (M: Monoid) => (f: (a: A) => M) => (fa: [A, E]) => M /** * `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 Functor * @since 2.0.0 */ export declare const map: (f: (a: A) => B) => (fa: [A, E]) => [B, E] /** * @category Foldable * @since 2.0.0 */ export declare const reduce: (b: B, f: (b: B, a: A) => B) => (fa: [A, E]) => B /** * @category Foldable * @since 2.0.0 */ export declare const reduceRight: (b: B, f: (a: A, b: B) => B) => (fa: [A, E]) => B /** * @since 2.6.3 */ export declare const traverse: PipeableTraverse2 /** * @since 2.6.3 */ export declare const sequence: Traversable2['sequence'] /** * @category instances * @since 2.0.0 */ export declare const URI = 'Tuple' /** * @category instances * @since 2.0.0 */ export declare type URI = typeof URI declare module './HKT' { interface URItoKind2 { readonly [URI]: [A, E] } } /** * @category instances * @since 2.7.0 */ export declare const Functor: Functor2 /** * @category instances * @since 2.7.0 */ export declare const Bifunctor: Bifunctor2 /** * @category instances * @since 2.7.0 */ export declare const Semigroupoid: Semigroupoid2 /** * @category instances * @since 2.7.0 */ export declare const Comonad: Comonad2 /** * @category instances * @since 2.7.0 */ export declare const Foldable: Foldable2 /** * @category instances * @since 2.7.0 */ export declare const Traversable: Traversable2 /** * @category instances * @since 2.0.0 */ export declare const tuple: Semigroupoid2 & Bifunctor2 & Comonad2 & Foldable2 & Traversable2