import { Either, Optional } from '@toxictoast/sleepyazkaban-base-types'; export declare class Result { private _isSuccess; private _isFailure; private _error?; private _value?; constructor(isSuccess: boolean, error?: Optional>, value?: Optional); get value(): Optional; get errorValue(): Optional>; get isSuccess(): boolean; get isFailure(): boolean; static ok(value?: Optional): Result; static fail(error: Either): Result; }