import { Either } from 'fp-ts/lib/Either'; import { FefeError } from './errors'; export declare type Result = Either; export declare const success: (value: T) => Result; export declare const isSuccess: (ma: Either) => ma is import("fp-ts/lib/Either").Right; export declare const failure: (error: E) => Result; export declare const isFailure: (ma: Either) => ma is import("fp-ts/lib/Either").Left;