export interface Left { readonly left: L; readonly tag: 'Left'; } export interface Right { readonly right: R; readonly tag: 'Right'; } export declare type Either = Left | Right; export declare const isLeft: (ml: Either) => ml is Left; export declare const isRight: (mr: Either) => mr is Right; export declare const left: (l: L) => Either; export declare const right: (r: R) => Either; export declare const match: (onLeft: (l: L) => A, onRight: (r: R) => A) => (ml: Either) => A;