/**
* @since 2.0.0
*/
import { Alt1 } from './Alt'
import { Applicative1 } from './Applicative'
import { ChainRec1 } from './ChainRec'
import { Comonad1 } from './Comonad'
import { Eq } from './Eq'
import { Foldable1 } from './Foldable'
import { Functor1 } from './Functor'
import { Monad1 } from './Monad'
import { Monoid } from './Monoid'
import { Show } from './Show'
import { PipeableTraverse1, Traversable1 } from './Traversable'
/**
* @category model
* @since 2.0.0
*/
export declare type Identity = A
/**
* `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: Identity) => Identity
/**
* Apply a function to an argument under a type constructor.
*
* @category Apply
* @since 2.0.0
*/
export declare const ap: (fa: Identity) => (fab: Identity<(a: A) => B>) => Identity
/**
* Combine two effectful actions, keeping only the result of the first.
*
* Derivable from `Apply`.
*
* @category combinators
* @since 2.0.0
*/
export declare const apFirst: (fb: Identity) => (fa: Identity) => Identity
/**
* Combine two effectful actions, keeping only the result of the second.
*
* Derivable from `Apply`.
*
* @category combinators
* @since 2.0.0
*/
export declare const apSecond: (fb: B) => (fa: A) => B
/**
* Wrap a value into the type constructor.
*
* @category Applicative
* @since 2.0.0
*/
export declare const of: Applicative1['of']
/**
* Composes computations in sequence, using the return value of one computation to determine the next computation.
*
* @category Monad
* @since 2.0.0
*/
export declare const chain: (f: (a: A) => Identity) => (ma: Identity) => Identity
/**
* Composes computations in sequence, using the return value of one computation to determine the next computation and
* keeping only the result of the first.
*
* Derivable from `Monad`.
*
* @category combinators
* @since 2.0.0
*/
export declare const chainFirst: (f: (a: A) => Identity) => (ma: Identity) => Identity
/**
* @category Extend
* @since 2.0.0
*/
export declare const extend: (f: (wa: Identity) => B) => (wa: Identity) => Identity
/**
* @category Extract
* @since 2.6.2
*/
export declare const extract: (wa: Identity) => A
/**
* Derivable from `Extend`.
*
* @category combinators
* @since 2.0.0
*/
export declare const duplicate: (ma: Identity) => Identity>
/**
* Derivable from `Monad`.
*
* @category combinators
* @since 2.0.0
*/
export declare const flatten: (mma: Identity>) => Identity
/**
* @category Foldable
* @since 2.0.0
*/
export declare const reduce: (b: B, f: (b: B, a: A) => B) => (fa: Identity) => B
/**
* @category Foldable
* @since 2.0.0
*/
export declare const foldMap: (M: Monoid) => (f: (a: A) => M) => (fa: Identity) => M
/**
* @category Foldable
* @since 2.0.0
*/
export declare const reduceRight: (b: B, f: (a: A, b: B) => B) => (fa: Identity) => B
/**
* @since 2.6.3
*/
export declare const traverse: PipeableTraverse1
/**
* @since 2.6.3
*/
export declare const sequence: Traversable1['sequence']
/**
* Less strict version of [`alt`](#alt).
*
* @category Alt
* @since 2.9.0
*/
export declare const altW: (that: () => Identity) => (fa: Identity) => Identity
/**
* Identifies an associative operation on a type constructor. It is similar to `Semigroup`, except that it applies to
* types of kind `* -> *`.
*
* @category Alt
* @since 2.0.0
*/
export declare const alt: (that: () => Identity) => (fa: Identity) => Identity
/**
* @category instances
* @since 2.0.0
*/
export declare const URI = 'Identity'
/**
* @category instances
* @since 2.0.0
*/
export declare type URI = typeof URI
declare module './HKT' {
interface URItoKind {
readonly [URI]: Identity
}
}
/**
* @category instances
* @since 2.0.0
*/
export declare const getShow: (S: Show) => Show>
/**
* @category instances
* @since 2.0.0
*/
export declare const getEq: (E: Eq) => Eq>
/**
* @category instances
* @since 2.7.0
*/
export declare const Functor: Functor1
/**
* @category instances
* @since 2.7.0
*/
export declare const Applicative: Applicative1
/**
* @category instances
* @since 2.7.0
*/
export declare const Monad: Monad1
/**
* @category instances
* @since 2.7.0
*/
export declare const Foldable: Foldable1
/**
* @category instances
* @since 2.7.0
*/
export declare const Traversable: Traversable1
/**
* @category instances
* @since 2.7.0
*/
export declare const Alt: Alt1
/**
* @category instances
* @since 2.7.0
*/
export declare const Comonad: Comonad1
/**
* @category instances
* @since 2.7.0
*/
export declare const ChainRec: ChainRec1
/**
* @category instances
* @since 2.0.0
*/
export declare const identity: Monad1 &
Foldable1 &
Traversable1 &
Alt1 &
Comonad1 &
ChainRec1
/**
* @since 2.9.0
*/
export declare const Do: Identity<{}>
/**
* @since 2.8.0
*/
export declare const bindTo: (name: N) => (fa: A) => { [K in N]: A }
/**
* @since 2.8.0
*/
export declare const bind: (
name: Exclude,
f: (a: A) => B
) => (fa: A) => { [K in N | keyof A]: K extends keyof A ? A[K] : B }
/**
* @since 2.8.0
*/
export declare const apS: (
name: Exclude,
fb: B
) => (fa: A) => { [K in N | keyof A]: K extends keyof A ? A[K] : B }