import type { TransformFn } from '../internal/function.js';
import { type Maybe, type NotNullOrUndefined } from './maybe.js';
/**
 *  Return the result of _transformer_ with using _input_ as an argument for it if _input_ is not `null` and `undefined`.
 *  Otherwise, return _defaultValue_.
 *
 *  Basically, this operation is a combination `map()` and `unwrapOr()`.
 *
 *  * `U` must not be `Maybe<*>`.
 *      * If the result of _transformer_ is `null` or `undefined`, this throw an `Error`.
 *      * If the result of _defaultValue_ is `null` or `undefined`, this throw an `Error`.
 *  * If you'd like to accept `Maybe<*>` as `U`, use a combination `andThen()` and `or()`.
 */
export declare function mapOrForMaybe<T, U>(input: Maybe<T>, defaultValue: NotNullOrUndefined<U>, transformer: TransformFn<T, NotNullOrUndefined<U>>): NotNullOrUndefined<U>;
