/** * Maps a possibly nullish value to the desired result. * * Returns `undefined` if the value is nullish. * * @param val A value to map. * @param cb A function that transforms the value if it is not nullish. */ export declare function mapOptional(val: I | null | undefined, cb: (val: I) => O): O | undefined;