import type { Fn, Option, Result } from '../../../mod.js'; import type { Either } from './interface.js'; import { right_tag } from '../../Constant/mod.js'; export interface Right extends Either { readonly _tag: typeof right_tag; readonly value: T; } export declare class right implements Right { readonly _tag: typeof right_tag; readonly value: T; get is_left(): false; get is_right(): true; constructor(right: T); unwrap(): T; unwrap_left(): never; unwrap_right(): T; unwrap_lor(or: O): O; unwrap_ror(_or: O): T; exchange(): Either; right_do(callback: (val: T) => void): void; left_do(): void; match(_left: Fn, right: Fn): void; into(flag: R): R extends 'option' ? Option | Option : R extends 'result' ? Result : never; as(flag: R): R extends 'boolean' ? boolean : never; } export declare function Right(val: T): Right; //# sourceMappingURL=right.d.ts.map