import { Optional } from './Optional'; /** * **Is** the value stored inside this Optional object equal to `rhs`? */ export declare const is: (lhs: Optional, rhs: T, comparator?: (a: T, b: T) => boolean) => boolean; /** * Are these two Optional objects equal? Equality here means either they're both * `Some` (and the values are equal under the comparator) or they're both `None`. */ export declare const equals: { (lhs: Optional, rhs: Optional, comparator: (a: A, b: B) => boolean): boolean; (lhs: Optional, rhs: Optional): boolean; }; export declare const cat: (arr: Optional[]) => A[]; export declare const sequence: (arr: ArrayLike>) => Optional>; /** @deprecated Use Arr.findMap instead. */ export declare const findMap: (arr: ArrayLike, f: (a: A, index: number) => Optional) => Optional; /** Map each element of an array to an Optional and collect the results. * If all results are "some", return Optional.some of the results. * If any result is "none", return Optional.none */ export declare const traverse: (arr: ArrayLike, f: (a: A) => Optional) => Optional>; export declare const lift2: (oa: Optional, ob: Optional, f: (a: A, b: B) => C) => Optional; export declare const lift3: (oa: Optional, ob: Optional, oc: Optional, f: (a: A, b: B, c: C) => D) => Optional; export declare const lift4: (oa: Optional, ob: Optional, oc: Optional, od: Optional, f: (a: A, b: B, c: C, d: D) => E) => Optional; export declare const lift5: (oa: Optional, ob: Optional, oc: Optional, od: Optional, oe: Optional, f: (a: A, b: B, c: C, d: D, e: E) => F) => Optional; export declare const mapFrom: (a: A | null | undefined, f: (a: A) => B) => Optional; export declare const bindFrom: (a: A | null | undefined, f: (a: A) => Optional) => Optional; export declare const flatten: (oot: Optional>) => Optional; export declare const someIf: (b: boolean, a: A) => Optional; //# sourceMappingURL=Optionals.d.ts.map