export declare type Result = Failure | Success; export declare class Failure { readonly value: L; constructor(value: L); isFailure(): this is Failure; isSuccess(): this is Success; applyOnSuccess(_: (a: A) => B): Result; } export declare class Success { readonly value: A; constructor(value: A); isFailure(): this is Failure; isSuccess(): this is Success; applyOnSuccess(func: (a: A) => B): Result; } export declare const failure: (l: L) => Result; export declare const success: (a: A) => Result;