import { Option } from './option'; /** * Return a `None` if `left` does not contain a value, * otherwise return `right` * @param left Option to match against * @param right Option to return when `left` contains a value * @returns Either `right` or a `None` */ export declare const and: (left: Option, right: Option) => Option; /** * Return `None` if `left` does not contain a value, * otherwise call `right` with the wrapped value and return the result * @param left Option to match against * @param right Function to call when `left` contains a value * @returns Either returning value of `right` or a `None` */ export declare const andThen: (left: Option, right: (value: Left) => Option) => Option;