import type { Option } from './option.js'; type MapOrElse = { any, MapSomeFn extends (value: any) => ReturnType, Opt extends Option[0]>>(mapNoneFn: MapNoneFn, mapSomeFn: MapSomeFn, option: Opt): ReturnType; any, MapSomeFn extends (value: any) => ReturnType, Opt extends Option[0]>>(mapNoneFn: MapNoneFn, mapSomeFn: MapSomeFn): (option: Opt) => ReturnType; any, MapSomeFn extends (value: any) => ReturnType, _Opt extends Option[0]>>(mapNoneFn: MapNoneFn): { any, MapSomeFn extends (value: any) => ReturnType, Opt extends Option[0]>>(mapSomeFn: MapSomeFn): (option: Opt) => ReturnType; any, MapSomeFn extends (value: any) => ReturnType, Opt extends Option[0]>>(mapSomeFn: MapSomeFn, option: Opt): ReturnType; }; }; /** * Applies the provided function to the contained value of `Some`, or returns the result of evaluating the provided * fallback function if the `Option` is `None` * * @param mapFn The function to apply to the contained value of `Some`. * @param defaultFn The fallback function to evaluate if the `Option` is `None`. * @param opt The `Option` to apply the provided function to. * @returns The result of applying the provided function to the contained value of `Some`, or the result of evaluating * the fallback function if the `Option` is `None`. * @tags option, transform, transform-option, right-biased, unwrap, result */ export declare const mapOrElse: MapOrElse; export {};