import * as t from 'io-ts'; import { Either } from 'fp-ts/lib/Either'; declare const errors: t.ArrayC; }>, t.PartialC<{ actual: t.UnknownC; }>]>>; }>, t.PartialC<{ message: t.StringC; }>]>>; type ValidationT = t.Type, t.TypeOf>, Either, t.OutputOf>, unknown>; /** * Given a codec representing a type `A`, returns a codec representing a * `Validation` that is able to deserialize the JSON representation of a * `Validation`. * * A `Validation` is the type returned by `io-ts decode()` functions in * classic (stable) io-ts codecs. It is an alias for `Either`. * * Note: There is also a new experimental io-ts interface that is independent * and backward-incompatible with the stable interface. */ export declare const validation: (rightCodec: A, name?: string) => ValidationT; export {};