import { Either } from '../data/either'; import { Err, ErrorMessage } from './err'; /** * Except type represents a value that may fail with an error. * * It is a version of Either specialized with an Err type on the left-hand side. */ export type Except = Either; /** * raise an Except. * * This promotes a value to an Error wrapped inside a left. */ export declare const raise: (msg: ErrorMessage | Err | Error) => Except; /** * attempt a synchronous computation that may throw an exception. */ export declare const attempt: (f: () => A) => Except;