export declare class Optional { private readonly value; private constructor(); static empty(): Optional; static of(value: U): Optional; private static isValueEmpty; isEmpty(): boolean; isPresent(): boolean; filter(filterer: (value: T) => boolean): Optional; forEach(callback: (value: T) => any): void; map(mapper: (value: T) => U): Optional; /** * @deprecated */ getValueOrNullOrThrowError(): T; getOrThrow(): T; getOrElse(other: () => U): T; ifPresent(method: (value: T) => void): void; ifEmpty(method: () => void): void; orElse(other: () => Optional): Optional; }