import type { Option } from './option.js'; type Cases = { Some(value: Option.Type): Option.Type; None(): Option.Type; }; type Match = { (cases: Cases): (option: Opt) => Option.Type; (cases: Cases, option: Opt): Option.Type; }; /** * Extract value from both a `Some` or a `None`. * * The match function takes an object containing two functions: `Some` and `None`, which are used to handle the values * of the `Some` and `None` variants of an `Option` object. It then returns a new function that takes an `Option` object * and returns the result of applying either the `Some` or `None` function to the value inside the `Option`, depending * on which variant it contains. * * @tags option, unwrap */ export declare const match: Match; export {};