import { Either, Left, Right } from 'fp-ts/lib/Either'; import { These, Both } from 'fp-ts/lib/These'; export type EitherOrThese = Either | These; export declare const isLeft: (fa: EitherOrThese) => fa is Left; export declare const isRight: (fa: EitherOrThese) => fa is Right; export declare const isBoth: (fa: EitherOrThese) => fa is Both; export declare const fold: (onLeft: (e: E) => B, onRight: (a: A) => B, onBoth: (e: E, a: A) => B) => (fa: EitherOrThese) => B;