/** * @since 2.0.0 */ import { Alt4 } from './Alt.js'; import { Applicative4 } from './Applicative.js'; import { Apply4 } from './Apply.js'; import { Bifunctor4 } from './Bifunctor.js'; import * as chainable from './Chain.js'; import * as E from './Either.js'; import { Endomorphism } from './Endomorphism.js'; import { FromEither4 } from './FromEither.js'; import { FromIO4 } from './FromIO.js'; import { FromReader4 } from './FromReader.js'; import { FromState4 } from './FromState.js'; import { FromTask4 } from './FromTask.js'; import { LazyArg } from './function.js'; import { Functor4 } from './Functor.js'; import { IO } from './IO.js'; import { IOEither } from './IOEither.js'; import { Monad4 } from './Monad.js'; import { MonadIO4 } from './MonadIO.js'; import { MonadTask4 } from './MonadTask.js'; import { MonadThrow4 } from './MonadThrow.js'; import { Option } from './Option.js'; import { Pointed4 } from './Pointed.js'; import { Predicate } from './Predicate.js'; import * as R from './Reader.js'; import { ReaderEither } from './ReaderEither.js'; import * as RTE from './ReaderTaskEither.js'; import { ReadonlyNonEmptyArray } from './ReadonlyNonEmptyArray.js'; import { Refinement } from './Refinement.js'; import { State } from './State.js'; import { Task } from './Task.js'; import { TaskEither } from './TaskEither.js'; type ReaderTaskEither = RTE.ReaderTaskEither; type Either = E.Either; type Reader = R.Reader; /** * @category model * @since 2.0.0 */ export interface StateReaderTaskEither { (s: S): ReaderTaskEither; } /** * @category constructors * @since 2.0.0 */ export declare const left: (e: E) => StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare const right: (a: A) => StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare function rightTask(ma: Task): StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare function leftTask(me: Task): StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare function rightReader(ma: Reader): StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare function leftReader(me: Reader): StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare function rightIO(ma: IO): StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare function leftIO(me: IO): StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare const rightState: (ma: State) => StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare const leftState: (me: State) => StateReaderTaskEither; /** * @category conversions * @since 2.0.0 */ export declare const fromEither: (fa: Either) => StateReaderTaskEither; /** * @category conversions * @since 2.11.0 */ export declare const fromReader: (fa: Reader) => StateReaderTaskEither; /** * @category conversions * @since 2.7.0 */ export declare const fromIO: (fa: IO) => StateReaderTaskEither; /** * @category conversions * @since 2.7.0 */ export declare const fromTask: (fa: Task) => StateReaderTaskEither; /** * @category conversions * @since 2.10.0 */ export declare const fromState: (fa: State) => StateReaderTaskEither; /** * @category conversions * @since 2.0.0 */ export declare const fromTaskEither: (fa: TaskEither) => StateReaderTaskEither; /** * @category conversions * @since 2.0.0 */ export declare const fromIOEither: (fa: IOEither) => StateReaderTaskEither; /** * @category conversions * @since 2.0.0 */ export declare const fromReaderEither: (fa: ReaderEither) => StateReaderTaskEither; /** * @category constructors * @since 2.0.0 */ export declare const fromReaderTaskEither: (fa: ReaderTaskEither) => StateReaderTaskEither; /** * Changes the value of the local context during the execution of the action `ma` (similar to `Contravariant`'s * `contramap`). * * @since 2.11.0 */ export declare const local: (f: (r2: R2) => R1) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Less strict version of [`asksStateReaderTaskEither`](#asksstatereadertaskeither). * * @category constructors * @since 2.11.0 */ export declare const asksStateReaderTaskEitherW: (f: (r1: R1) => StateReaderTaskEither) => StateReaderTaskEither; /** * Effectfully accesses the environment. * * @category constructors * @since 2.11.0 */ export declare const asksStateReaderTaskEither: (f: (r: R) => StateReaderTaskEither) => StateReaderTaskEither; /** * @category lifting * @since 2.4.0 */ export declare const fromIOEitherK: , B>(f: (...a: A) => IOEither) => ((...a: A) => StateReaderTaskEither); /** * @category lifting * @since 2.4.0 */ export declare const fromTaskEitherK: , B>(f: (...a: A) => TaskEither) => ((...a: A) => StateReaderTaskEither); /** * @category lifting * @since 2.4.0 */ export declare const fromReaderTaskEitherK: , B>(f: (...a: A) => ReaderTaskEither) => ((...a: A) => StateReaderTaskEither); /** * Alias of `flatMapReaderTaskEither`. * * Less strict version of [`chainReaderTaskEitherK`](#chainreadertaskeitherk). * * @category legacy * @since 2.6.1 */ export declare const chainReaderTaskEitherKW: (f: (a: A) => ReaderTaskEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMapReaderTaskEither`. * * @category legacy * @since 2.4.0 */ export declare const chainReaderTaskEitherK: (f: (a: A) => ReaderTaskEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * `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.0.0 */ export declare const map: (f: (a: A) => B) => (fa: StateReaderTaskEither) => StateReaderTaskEither; /** * Map a pair of functions over the two last type arguments of the bifunctor. * * @category mapping * @since 2.6.2 */ export declare const bimap: (f: (e: E) => G, g: (a: A) => B) => (fa: StateReaderTaskEither) => StateReaderTaskEither; /** * Map a function over the third type argument of a bifunctor. * * @category error handling * @since 2.6.2 */ export declare const mapLeft: (f: (e: E) => G) => (fa: StateReaderTaskEither) => StateReaderTaskEither; /** * @since 2.0.0 */ export declare const ap: (fa: StateReaderTaskEither) => (fab: StateReaderTaskEither B>) => StateReaderTaskEither; /** * Less strict version of [`ap`](#ap). * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @since 2.8.0 */ export declare const apW: (fa: StateReaderTaskEither) => (fab: StateReaderTaskEither B>) => StateReaderTaskEither; /** * @category constructors * @since 2.7.0 */ export declare const of: (a: A) => StateReaderTaskEither; /** * @category sequencing * @since 2.14.0 */ export declare const flatMap: { (f: (a: A) => StateReaderTaskEither): (ma: StateReaderTaskEither) => StateReaderTaskEither; (ma: StateReaderTaskEither, f: (a: A) => StateReaderTaskEither): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapTaskEither: { (f: (a: A) => TaskEither): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => TaskEither): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapIO: { (f: (a: A) => IO): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => IO): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapTask: { (f: (a: A) => Task): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => Task): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapReader: { (f: (a: A) => Reader): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => Reader): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapIOEither: { (f: (a: A) => IOEither): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => IOEither): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapEither: { (f: (a: A) => Either): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => Either): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapOption: { (f: (a: A) => Option, onNone: (a: A) => E2): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => Option, onNone: (a: A) => E2): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapReaderTaskEither: { (f: (a: A) => ReaderTaskEither): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => ReaderTaskEither): StateReaderTaskEither; }; /** * @category sequencing * @since 2.16.0 */ export declare const flatMapState: { (f: (a: A) => State): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => State): StateReaderTaskEither; }; /** * Less strict version of [`flatten`](#flatten). * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @category sequencing * @since 2.11.0 */ export declare const flattenW: (mma: StateReaderTaskEither>) => StateReaderTaskEither; /** * @category sequencing * @since 2.0.0 */ export declare const flatten: (mma: StateReaderTaskEither>) => StateReaderTaskEither; /** * Less strict version of [`alt`](#alt). * * The `W` suffix (short for **W**idening) means that the environment, the error and the return types will be merged. * * @category error handling * @since 2.9.0 */ export declare const altW: (that: () => StateReaderTaskEither) => (fa: StateReaderTaskEither) => StateReaderTaskEither; /** * Identifies an associative operation on a type constructor. It is similar to `Semigroup`, except that it applies to * types of kind `* -> *`. * * @category error handling * @since 2.6.2 */ export declare const alt: (that: LazyArg>) => (fa: StateReaderTaskEither) => StateReaderTaskEither; /** * @since 2.7.0 */ export declare const throwError: MonadThrow4['throwError']; /** * @category type lambdas * @since 2.0.0 */ export declare const URI = "StateReaderTaskEither"; /** * @category type lambdas * @since 2.0.0 */ export type URI = typeof URI; declare module './HKT.js' { interface URItoKind4 { readonly [URI]: StateReaderTaskEither; } } /** * @category instances * @since 2.7.0 */ export declare const Functor: Functor4; /** * Maps the `Right` value of this `StateReaderTaskEither` to the specified constant value. * * @category mapping * @since 2.16.0 */ export declare const as: { (a: A): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, a: A): StateReaderTaskEither; }; /** * Maps the `Right` value of this `StateReaderTaskEither` to the void constant value. * * @category mapping * @since 2.16.0 */ export declare const asUnit: (self: StateReaderTaskEither) => StateReaderTaskEither; /** * @category mapping * @since 2.10.0 */ export declare const flap: (a: A) => (fab: import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, (a: A) => B>) => import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, B>; /** * @category instances * @since 2.10.0 */ export declare const Pointed: Pointed4; /** * @category instances * @since 2.10.0 */ export declare const Apply: Apply4; /** * Combine two effectful actions, keeping only the result of the first. * * @since 2.0.0 */ export declare const apFirst: (second: StateReaderTaskEither) => (first: import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, A>) => import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, A>; /** * Less strict version of [`apFirst`](#apfirst). * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @since 2.12.0 */ export declare const apFirstW: (second: StateReaderTaskEither) => (first: StateReaderTaskEither) => StateReaderTaskEither; /** * Combine two effectful actions, keeping only the result of the second. * * @since 2.0.0 */ export declare const apSecond: (second: StateReaderTaskEither) => (first: import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, A>) => import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, B>; /** * Less strict version of [`apSecond`](#apsecond). * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @since 2.12.0 */ export declare const apSecondW: (second: StateReaderTaskEither) => (first: StateReaderTaskEither) => StateReaderTaskEither; /** * @category instances * @since 2.7.0 */ export declare const Applicative: Applicative4; /** * @category instances * @since 2.10.0 */ export declare const Chain: chainable.Chain4; /** * @category instances * @since 2.11.0 */ export declare const FromState: FromState4; /** * Get the current state * * @category constructors * @since 2.0.0 */ export declare const get: () => StateReaderTaskEither; /** * Set the state * * @category constructors * @since 2.0.0 */ export declare const put: (s: S) => StateReaderTaskEither; /** * Modify the state by applying a function to the current state * * @category constructors * @since 2.0.0 */ export declare const modify: (f: Endomorphism) => StateReaderTaskEither; /** * Get a value which depends on the current state * * @category constructors * @since 2.0.0 */ export declare const gets: (f: (s: S) => A) => StateReaderTaskEither; /** * @category lifting * @since 2.11.0 */ export declare const fromStateK: , S, B>(f: (...a: A) => State) => (...a: A) => StateReaderTaskEither; /** * Alias of `flatMapState`. * * @category legacy * @since 2.11.0 */ export declare const chainStateK: (f: (a: A) => State) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * @category instances * @since 2.10.0 */ export declare const Monad: Monad4; /** * @category instances * @since 2.10.0 */ export declare const MonadIO: MonadIO4; /** * @category instances * @since 2.10.0 */ export declare const MonadTask: MonadTask4; /** * @category instances * @since 2.10.0 */ export declare const MonadThrow: MonadThrow4; /** * @category instances * @since 2.10.0 */ export declare const FromEither: FromEither4; /** * @category instances * @since 2.10.0 */ export declare const FromIO: FromIO4; /** * @category instances * @since 2.10.0 */ export declare const FromTask: FromTask4; /** * @category instances * @since 2.11.0 */ export declare const FromReader: FromReader4; /** * Composes computations in sequence, using the return value of one computation to determine the next computation and * keeping only the result of the first. * * @category combinators * @since 2.15.0 */ export declare const tap: { (self: StateReaderTaskEither, f: (a: A) => StateReaderTaskEither): StateReaderTaskEither; (f: (a: A) => StateReaderTaskEither): (self: StateReaderTaskEither) => StateReaderTaskEither; }; /** * Composes computations in sequence, using the return value of one computation to determine the next computation and * keeping only the result of the first. * * @category combinators * @since 2.16.0 */ export declare const tapEither: { (f: (a: A) => Either): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => Either): StateReaderTaskEither; }; /** * Composes computations in sequence, using the return value of one computation to determine the next computation and * keeping only the result of the first. * * @category combinators * @since 2.16.0 */ export declare const tapIO: { (f: (a: A) => IO<_>): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => IO<_>): StateReaderTaskEither; }; /** * Composes computations in sequence, using the return value of one computation to determine the next computation and * keeping only the result of the first. * * @category combinators * @since 2.16.0 */ export declare const tapTask: { (f: (a: A) => Task<_>): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => Task<_>): StateReaderTaskEither; }; /** * Composes computations in sequence, using the return value of one computation to determine the next computation and * keeping only the result of the first. * * @category combinators * @since 2.16.0 */ export declare const tapReader: { (f: (a: A) => Reader): (self: StateReaderTaskEither) => StateReaderTaskEither; (self: StateReaderTaskEither, f: (a: A) => Reader): StateReaderTaskEither; }; /** * @category instances * @since 2.7.0 */ export declare const Bifunctor: Bifunctor4; /** * @category instances * @since 2.7.0 */ export declare const Alt: Alt4; /** * Reads the current context. * * @category constructors * @since 2.11.0 */ export declare const ask: () => StateReaderTaskEither; /** * Projects a value from the global context in a `ReaderEither`. * * @category constructors * @since 2.11.0 */ export declare const asks: (f: (r: R) => A) => StateReaderTaskEither; /** * @category lifting * @since 2.11.0 */ export declare const fromReaderK: , R, B>(f: (...a: A) => Reader) => (...a: A) => StateReaderTaskEither; /** * Alias of `flatMapReader`. * * @category legacy * @since 2.11.0 */ export declare const chainReaderK: (f: (a: A) => Reader) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMapReader`. * * Less strict version of [`chainReaderK`](#chainReaderK). * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @category legacy * @since 2.11.0 */ export declare const chainReaderKW: (f: (a: A) => Reader) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `tapReader`. * * @category legacy * @since 2.11.0 */ export declare const chainFirstReaderK: (f: (a: A) => Reader) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `tapReader`. * * Less strict version of [`chainFirstReaderK`](#chainFirstReaderK). * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @category legacy * @since 2.11.0 */ export declare const chainFirstReaderKW: (f: (a: A) => Reader) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * @category conversions * @since 2.0.0 */ export declare const fromOption: (onNone: LazyArg) => (fa: Option) => StateReaderTaskEither; /** * @category lifting * @since 2.10.0 */ export declare const fromOptionK: (onNone: LazyArg) => , B>(f: (...a: A) => Option) => (...a: A) => StateReaderTaskEither; /** * Use `flatMapOption`. * * @category legacy * @since 2.10.0 */ export declare const chainOptionK: (onNone: LazyArg) => (f: (a: A) => Option) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Use `flatMapOption`. * * Less strict version of [`chainOptionK`](#chainoptionk). * * The `W` suffix (short for **W**idening) means that the error types will be merged. * * @category legacy * @since 2.13.2 */ export declare const chainOptionKW: (onNone: LazyArg) => (f: (a: A) => Option) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMapEither`. * * @category legacy * @since 2.4.0 */ export declare const chainEitherK: (f: (a: A) => E.Either) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMapEither`. * * Less strict version of [`chainEitherK`](#chaineitherk). * * The `W` suffix (short for **W**idening) means that the error types will be merged. * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @category legacy * @since 2.6.1 */ export declare const chainEitherKW: (f: (a: A) => Either) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `tapEither`. * * @category legacy * @since 2.12.0 */ export declare const chainFirstEitherK: (f: (a: A) => E.Either) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `tapEither`. * * Less strict version of [`chainFirstEitherK`](#chainfirsteitherk). * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @category legacy * @since 2.12.0 */ export declare const chainFirstEitherKW: (f: (a: A) => Either) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * @category lifting * @since 2.4.4 */ export declare const fromPredicate: { (refinement: Refinement, onFalse: (a: A) => E): (a: A) => StateReaderTaskEither; (predicate: Predicate, onFalse: (a: A) => E): (b: B) => StateReaderTaskEither; (predicate: Predicate, onFalse: (a: A) => E): (a: A) => StateReaderTaskEither; }; /** * @category filtering * @since 2.4.4 */ export declare const filterOrElse: { (refinement: Refinement, onFalse: (a: A) => E): (ma: StateReaderTaskEither) => StateReaderTaskEither; (predicate: Predicate, onFalse: (a: A) => E): (mb: StateReaderTaskEither) => StateReaderTaskEither; (predicate: Predicate, onFalse: (a: A) => E): (ma: StateReaderTaskEither) => StateReaderTaskEither; }; /** * Less strict version of [`filterOrElse`](#filterorelse). * * The `W` suffix (short for **W**idening) means that the error types will be merged. * * @category filtering * @since 2.9.0 */ export declare const filterOrElseW: { (refinement: Refinement, onFalse: (a: A) => E2): (ma: StateReaderTaskEither) => StateReaderTaskEither; (predicate: Predicate, onFalse: (a: A) => E2): (mb: StateReaderTaskEither) => StateReaderTaskEither; (predicate: Predicate, onFalse: (a: A) => E2): (ma: StateReaderTaskEither) => StateReaderTaskEither; }; /** * @category lifting * @since 2.4.0 */ export declare const fromEitherK: , B>(f: (...a: A) => E.Either) => (...a: A) => StateReaderTaskEither; /** * @category lifting * @since 2.10.0 */ export declare const fromIOK: , B>(f: (...a: A) => IO) => (...a: A) => StateReaderTaskEither; /** * Alias of `flatMapIO`. * * @category legacy * @since 2.10.0 */ export declare const chainIOK: (f: (a: A) => IO) => (first: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `tapIO`. * * @category legacy * @since 2.10.0 */ export declare const chainFirstIOK: (f: (a: A) => IO) => (first: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMapTaskEither`. * * Less strict version of [`chainTaskEitherK`](#chaintaskeitherk). * * @category legacy * @since 2.6.1 */ export declare const chainTaskEitherKW: (f: (a: A) => TaskEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMapTaskEither`. * * @category legacy * @since 2.4.0 */ export declare const chainTaskEitherK: (f: (a: A) => TaskEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMapIOEither`. * * Less strict version of [`chainIOEitherK`](#chainioeitherk). * * @category legacy * @since 2.6.1 */ export declare const chainIOEitherKW: (f: (a: A) => IOEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMapIOEither`. * * @category legacy * @since 2.4.0 */ export declare const chainIOEitherK: (f: (a: A) => IOEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * @category lifting * @since 2.10.0 */ export declare const fromTaskK: , B>(f: (...a: A) => Task) => (...a: A) => StateReaderTaskEither; /** * Alias of `flatMapTask`. * * @category legacy * @since 2.10.0 */ export declare const chainTaskK: (f: (a: A) => Task) => (first: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `tapTask`. * @category legacy * @since 2.10.0 */ export declare const chainFirstTaskK: (f: (a: A) => Task) => (first: StateReaderTaskEither) => StateReaderTaskEither; /** * Run a computation in the `StateReaderTaskEither` monad, discarding the final state * * @since 2.8.0 */ export declare const evaluate: (s: S) => (ma: StateReaderTaskEither) => ReaderTaskEither; /** * Run a computation in the `StateReaderTaskEither` monad discarding the result * * @since 2.8.0 */ export declare const execute: (s: S) => (ma: StateReaderTaskEither) => ReaderTaskEither; /** * @since 2.8.0 */ export declare const bindTo: (name: N) => (fa: import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, A>) => import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, { readonly [K in N]: A; }>; declare const let_: (name: Exclude, f: (a: A) => B) => (fa: import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, A>) => import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, { readonly [K in keyof A | N]: K extends keyof A ? A[K] : B; }>; export { /** * @since 2.13.0 */ let_ as let }; /** * @since 2.8.0 */ export declare const bind: (name: Exclude, f: (a: A) => import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, B>) => (ma: import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, A>) => import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, { readonly [K in keyof A | N]: K extends keyof A ? A[K] : B; }>; /** * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @since 2.8.0 */ export declare const bindW: (name: Exclude, f: (a: A) => StateReaderTaskEither) => (fa: StateReaderTaskEither) => StateReaderTaskEither; /** * @since 2.8.0 */ export declare const apS: (name: Exclude, fb: StateReaderTaskEither) => (fa: import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, A>) => import("./HKT.js").Kind4<"StateReaderTaskEither", S, R, E, { readonly [K in keyof A | N]: K extends keyof A ? A[K] : B; }>; /** * Less strict version of [`apS`](#aps). * * The `W` suffix (short for **W**idening) means that the environment types and the error types will be merged. * * @category do notation * @since 2.8.0 */ export declare const apSW: (name: Exclude, fb: StateReaderTaskEither) => (fa: StateReaderTaskEither) => StateReaderTaskEither; /** * Equivalent to `ReadonlyNonEmptyArray#traverseWithIndex(Applicative)`. * * @category traversing * @since 2.11.0 */ export declare const traverseReadonlyNonEmptyArrayWithIndex: (f: (index: number, a: A) => StateReaderTaskEither) => (as: ReadonlyNonEmptyArray) => StateReaderTaskEither>; /** * Equivalent to `ReadonlyArray#traverseWithIndex(Applicative)`. * * @category traversing * @since 2.11.0 */ export declare const traverseReadonlyArrayWithIndex: (f: (index: number, a: A) => StateReaderTaskEither) => ((as: ReadonlyArray) => StateReaderTaskEither>); /** * Equivalent to `ReadonlyArray#traverseWithIndex(Applicative)`. * * @category traversing * @since 2.9.0 */ export declare const traverseArrayWithIndex: (f: (index: number, a: A) => StateReaderTaskEither) => (as: ReadonlyArray) => StateReaderTaskEither>; /** * Equivalent to `ReadonlyArray#traverse(Applicative)`. * * @category traversing * @since 2.9.0 */ export declare const traverseArray: (f: (a: A) => StateReaderTaskEither) => ((as: ReadonlyArray) => StateReaderTaskEither>); /** * Equivalent to `ReadonlyArray#sequence(Applicative)`. * * @category traversing * @since 2.9.0 */ export declare const sequenceArray: (arr: ReadonlyArray>) => StateReaderTaskEither>; /** * Alias of `flatMap`. * * @category legacy * @since 2.0.0 */ export declare const chain: (f: (a: A) => StateReaderTaskEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `flatMap`. * * @category legacy * @since 2.6.0 */ export declare const chainW: (f: (a: A) => StateReaderTaskEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `tap`. * * @category legacy * @since 2.0.0 */ export declare const chainFirst: (f: (a: A) => StateReaderTaskEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * Alias of `tap`. * * @category legacy * @since 2.8.0 */ export declare const chainFirstW: (f: (a: A) => StateReaderTaskEither) => (ma: StateReaderTaskEither) => StateReaderTaskEither; /** * This instance is deprecated, use small, specific instances instead. * For example if a function needs a `Functor` instance, pass `SRTE.Functor` instead of `SRTE.stateReaderTaskEither` * (where `SRTE` is from `import SRTE from 'fp-ts/StateReaderTaskEither'`) * * @category zone of death * @since 2.0.0 * @deprecated */ export declare const stateReaderTaskEither: Monad4 & Bifunctor4 & Alt4 & MonadTask4 & MonadThrow4; /** * This instance is deprecated, use small, specific instances instead. * For example if a function needs a `Functor` instance, pass `SRTE.Functor` instead of `SRTE.stateReaderTaskEitherSeq` * (where `SRTE` is from `import SRTE from 'fp-ts/StateReaderTaskEither'`) * * @category zone of death * @since 2.0.0 * @deprecated */ export declare const stateReaderTaskEitherSeq: typeof stateReaderTaskEither; /** * Use [`evaluate`](#evaluate) instead * * @category zone of death * @since 2.0.0 * @deprecated */ export declare const evalState: (ma: StateReaderTaskEither, s: S) => ReaderTaskEither; /** * Use [`execute`](#execute) instead * * @category zone of death * @since 2.0.0 * @deprecated */ export declare const execState: (ma: StateReaderTaskEither, s: S) => ReaderTaskEither; /** * @category zone of death * @since 2.0.0 * @deprecated */ export declare function run(ma: StateReaderTaskEither, s: S, r: R): Promise>;