import type { RecoveryFn, TransformFn } from '../../internal/function.js';
import { type NotUndefined, type Undefinable } from '../core/undefinable.js';
/**
 *  Return the result of _transformer_ with using _input_ as an argument for it if _input_ is not `undefined`.
 *  Otherwise, return the result of _recoverer_.
 *
 *  Basically, this operation is a combination `map()` and `unwrapOrElse()`.
 *
 *  * `U` must not be `Undefinable<*>`.
 *      * If the result of _transformer_ is `undefined`, this throw an `Error`.
 *      * If the result of _recoverer_ is undefined`, this throw an `Error`.
 *  * If you'd like to accept `Undefinable<*>` as `U`, use a combination `andThen()` and `orElse()`.
 */
export declare function mapOrElseForUndefinable<T, U>(input: Undefinable<T>, recoverer: RecoveryFn<NotUndefined<U>>, transformer: TransformFn<T, NotUndefined<U>>): NotUndefined<U>;
