export declare class Result { private readonly value; private readonly error; private constructor(); static ok(value: T): Result; static error(error: E): Result; isOk(): this is Result; isError(): this is Result; getValue(): T; getError(): E; }