import * as E from 'fp-ts/Either'; import { Lazy } from 'fp-ts/function'; import * as TE from 'fp-ts/TaskEither'; import { Errors } from 'io-ts'; import * as t from 'io-ts'; export declare function valueOrThrow(res: E.Either): A; export declare function valueOrThrowTE(res: TE.TaskEither): Promise; export declare const errorsToError: (errors: t.Errors) => Error; export declare function errorsToArray(errors: t.Errors): Error[]; export declare function decodeForFunction(params: any, decode: (x: any) => E.Either, fn: (params: T) => TE.TaskEither): Promise; export declare const logPipe: (x: T) => T; export declare const logTE: (te: TE.TaskEither) => TE.TaskEither; export declare const logE: (te: E.Either) => E.Either; export declare function taskEitherWithError(f: Lazy>): TE.TaskEither; export declare const switchCase: (value: T, cases: Record>, def: Lazy) => U; export declare function assertNever(x: never): never; export declare const assertEither: (condition: boolean, errorMessage: string) => E.Either; //# sourceMappingURL=fp.d.ts.map