import type { Either } from "../Either"; import type { XPure } from "./model"; export declare class FoldFrame { readonly failure: (e: any) => XPure; readonly apply: (e: any) => XPure; readonly _xptag = "FoldFrame"; constructor(failure: (e: any) => XPure, apply: (e: any) => XPure); } export declare class ApplyFrame { readonly apply: (e: any) => XPure; readonly _xptag = "ApplyFrame"; constructor(apply: (e: any) => XPure); } export declare type Frame = FoldFrame | ApplyFrame; /** * Runs this computation with the specified initial state, returning either a * failure or the updated state and the result */ export declare const runStateEither_: ( fa: XPure, s: S1 ) => Either; /** * Runs this computation with the specified initial state, returning either a * failure or the updated state and the result */ export declare const runStateEither: ( s: S1 ) => (fx: XPure) => Either; /** * Runs this computation with the specified initial state, returning both * the updated state and the result. */ export declare const run_: (self: XPure, s: S1) => readonly [S2, A]; /** * Runs this computation with the specified initial state, returning both * updated state and the result */ export declare const run: (s: S1) => (self: XPure) => readonly [S2, A]; /** * Runs this computation, returning the result. */ export declare const runIO: (self: XPure) => A; /** * Runs this computation with the specified initial state, returning the * updated state and discarding the result. */ export declare const runState_: (self: XPure, s: S1) => S2; /** * Runs this computation with the specified initial state, returning the * updated state and discarding the result. */ export declare const runState: (s: S1) => (self: XPure) => S2; /** * Runs this computation with the specified initial state, returning the * updated state and the result. */ export declare const runStateResult_: (self: XPure, s: S1) => readonly [S2, A]; /** * Runs this computation with the specified initial state, returning the * updated state and the result. */ export declare const runStateResult: (s: S1) => (self: XPure) => readonly [S2, A]; /** * Runs this computation with the specified initial state, returning the * result and discarding the updated state. */ export declare const runResult_: (self: XPure, s: S1) => A; /** * Runs this computation with the specified initial state, returning the * result and discarding the updated state. */ export declare const runResult: (s: S1) => (self: XPure) => A; /** * Runs this computation returning either the result or error */ export declare const runEither: (self: XPure) => Either; export declare const runEitherEnv_: (self: XPure, env: R) => Either; export declare const runEitherEnv: (env: R) => (self: XPure) => Either; //# sourceMappingURL=run.d.ts.map