/** @hidden */ interface Option { getOrElse(arg: V): V; get(): V; filter(f: (value: V) => boolean): Option; map(f: (value: V) => V2): Option; forEach(f: (value: V) => any): void; isDefined: boolean; toArray(): V[]; inspect(): string; toString(): string; } /** @hidden */ declare class Some implements Option { value: V; constructor(value: V); _isSome: boolean; getOrElse(arg: V): V; get(): V; filter(f: (value: V) => boolean): Option; map(f: (value: V) => V2): Option; forEach(f: (value: V) => any): void; isDefined: boolean; toArray(): V[]; inspect(): string; toString(): string; } /** @hidden */ declare const None: { _isNone: boolean; getOrElse(value: V): V; get(): never; filter(): any; map(): any; forEach(): void; isDefined: boolean; toArray(): never[]; inspect(): string; toString(): string; }; declare function none(): Option; declare function toOption(v: V | Option): Option; declare function isNone(object: any): boolean; export { Option, Some, None, none, toOption, isNone };