/** Code in this file is based on io-ts-types/src/either.ts */ import * as t from 'io-ts'; import { Either } from 'fp-ts/lib/Either'; type EitherT = t.Type, t.TypeOf>, Either, t.OutputOf>, unknown>; /** * Given a codec representing a type `L` and a codec representing a type `R`, * returns a codec representing `Either` that is able to deserialize * the JSON representation of an `Either`. */ export declare const either: (leftCodec: L, rightCodec: R, name?: string) => EitherT; export {};