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