export type Maybe = T | undefined; export type Nullable = T | undefined | null; export type MaybeNull = Nullable; export declare function map(maybeT: Nullable, f: (t: T) => U): Maybe; export declare function map2(a: Nullable, b: Nullable, f: (a: A, b: B) => U): Maybe; export declare function first(iter: Iterable>, f: (t: T) => Maybe): Maybe; export declare function firstDefinedThunk(iter: Iterable<() => Maybe>): Maybe; /** * Convert functions that return `type | null` to `type | undefined` */ export declare function denull(t: T | null): Maybe;