import { Eval } from '@fp4ts/core'; import { Option } from '../option'; import { Either } from '../either'; declare module './algebra' { interface Try { readonly isSuccess: boolean; readonly isFailure: boolean; readonly toOption: Option; readonly toEither: Either; readonly get: A; getOrElse(this: Try, defaultValue: () => B): B; map(f: (a: A) => B): Try; collect(f: (a: A) => Option): Try; orElse(this: Try, that: () => Try): Try; '<|>'(this: Try, that: () => Try): Try; orElseEval(this: Try, that: Eval>): Eval>; flatMap(f: (a: A) => Try): Try; readonly flatten: A extends Try ? Try : never; recover(this: Try, f: (e: Error) => B): Try; recoverWith(this: Try, f: (e: Error) => Try): Try; fold(onFailure: (e: Error) => B1, onSuccess: (a: A) => B2): B1 | B2; } } //# sourceMappingURL=syntax.d.ts.map