import { Eval } from '@fp4ts/core';
import { Option } from '../option';
import { Either } from '../either';
import { Try } from './algebra';
export declare const isSuccess: (t: Try) => boolean;
export declare const isFailure: (t: Try) => boolean;
export declare const toOption: (t: Try) => Option;
export declare const toEither: (t: Try) => Either;
export declare const get: (t: Try) => A;
export declare const getError: (t: Try) => Error;
export declare const getOrElse: (defaultValue: () => B) => (t: Try) => B;
export declare const map: (f: (a: A) => B) => (fa: Try) => Try;
export declare const collect: (f: (a: A) => Option) => (t: Try) => Try;
export declare const orElse: (r: () => Try) => (l: Try) => Try;
export declare const flatMap: (f: (a: A) => Try) => (fa: Try) => Try;
export declare const flatten: (t: Try>) => Try;
export declare const tailRecM: (s: S) => (f: (s: S) => Try>) => Try;
export declare const recover: (f: (e: Error) => B) => (t: Try) => Try;
export declare const recoverWith: (f: (e: Error) => Try) => (t: Try) => Try;
export declare const fold: (onFailure: () => B, onSuccess: (a: A) => B) => (fa: Try) => B;
export declare const getOrElse_: (t: Try, defaultValue: () => A) => A;
export declare const map_: (fa: Try, f: (a: A) => B) => Try;
export declare const collect_: (t: Try, f: (a: A) => Option) => Try;
export declare const orElse_: (l: Try, r: () => Try) => Try;
export declare const orElseEval_: (l: Try, r: Eval>) => Eval>;
export declare const flatMap_: (fa: Try, f: (a: A) => Try) => Try;
export declare const tailRecM_: (s: S, f: (s: S) => Try>) => Try;
export declare const recover_: (t: Try, f: (e: Error) => A) => Try;
export declare const recoverWith_: (t: Try, f: (e: Error) => Try) => Try;
export declare const fold_: (fa: Try, onFailure: (e: Error) => B1, onSuccess: (a: A) => B2) => B1 | B2;
//# sourceMappingURL=operators.d.ts.map