export default class Exceptional { private value; private exception; private constructor(); private static getDefaultException(); static empty(exception?: Error): Exceptional; filter(predicate: (T) => boolean, value?: Error | ((T) => Error)): Exceptional; flatMap(mapper: (T) => Exceptional): Exceptional; get(): T; ifPresent(consumer: (T) => void): void; isPresent(): boolean; map(mapper: (T) => U, value?: Error | ((T) => Error)): Exceptional; static of(value: T, exception?: Error): Exceptional; static ofNullable(value: T, exception?: Error): Exceptional; orElse(other: T): T; orElseGet(other: () => T): T; orElseThrow(exceptionSupplier: () => X): T; getException(): Error; withException(exception: Error): Exceptional; }