import { Left } from './Left';
import { Right } from './Right';
/**
* Either data structure. Extremely useful for handling errors or different
* logic paths without the use of if-statements.
* @name Either
* @type
*/
export declare type Either = Left | Right;
export declare namespace Either {
/**
* Creates an Either that is of type Right
* @name Either.of(value: A): Either
*/
const of: (value: B) => Either;
/**
* Creates an Either that is of type Left
* @name Either.left(value: A): Either
*/
const left: (value: A) => Either;
}
/**
* Returns true if an Either is type Left
* @name isLeft(either: Either): Either is Left
*/
export declare function isLeft(either: Either): either is Left;
/**
* Returns true if an Either is type Right
* @name isRight(either: Either): either is Right
*/
export declare function isRight(either: Either): either is Right;
//# sourceMappingURL=Either.d.ts.map