import type { Either } from "../Either"; import type { Lazy } from "../Function"; import type { Option } from "./model"; /** * mapNullable_ :: Maybe m => (m a, (a -> ?b)) -> m b * Map over a Maybe with a function that returns a nullable value * * @category Combinators * @since 1.0.0 */ export declare const mapNullable_: (fa: Option, f: (a: A) => B | null | undefined) => Option; /** * mapNullable :: Maybe m => (a -> ?b) -> m a -> m b * Map over a Maybe with a function that returns a nullable value * * @category Combinators * @since 1.0.0 */ export declare const mapNullable: (f: (a: A) => B | null | undefined) => (fa: Option) => Option; /** * orElse_ :: Maybe m => (m a, () -> m b) -> m (a | b) * Evaluate and return alternate optional value if empty * * @category Combinators * @since 1.0.0 */ export declare const orElse_: (fa: Option, onNothing: Lazy>) => Option; /** * orElse :: Maybe m => (() -> m b) -> m a -> m (a | b) * Evaluate and return alternate optional value if empty * * @category Combinators * @since 1.0.0 */ export declare const orElse: (onNothing: Lazy>) => (fa: Option) => Option; /** * getLeft :: (Either e, Maybe m) => e a b -> m a * Evaluates an `Either` and returns a `Maybe` carrying the left value, if it exists * * @category Combinators * @since 1.0.0 */ export declare const getLeft: (fea: Either) => Option; /** * getRight :: (Either e, Maybe m) => e a b -> m b * Evaluates an `Either` and returns a `Maybe` carrying the right value, if it exists * * @category Combinators * @since 1.0.0 */ export declare const getRight: (fea: Either) => Option; //# sourceMappingURL=combinators.d.ts.map