import { AsyncOption } from './utils/types'; /** * Turn a `Some` into a `Promise` that resolves * or turn a `None` into a `Promise` that rejects * @param option Option to unwrap * @returns A `Promise` that may resolve contained value */ export declare const asyncUnwrap: (option: import("@tsfun/prv-types").MaybePromise>>) => Promise; /** * Unwrap contained value of a `Some`, * or throws an error * @param option Option to unwrap * @param message Error to throw when `option` does not contain a value * @returns Contained value */ export declare const asyncUnwrapOrErr: (option: import("@tsfun/prv-types").MaybePromise>>, message: Message) => Promise; /** * Return contained value of a `Some` * or default value * @param option Option to unwrap * @param def Value to return when `option` does not contain a value * @returns Promise that resolves contained value or `def` */ export declare const asyncUnwrapOr: (option: import("@tsfun/prv-types").MaybePromise>>, def: Default) => Promise; /** * Return contained value of a `Some` * or call a function * @param option Option to unwrap * @param def Function to be called when `option` does not contain a value * @returns Promise that resolves to either contained value or returning value of `none` */ export declare const asyncUnwrapOrElse: (option: import("@tsfun/prv-types").MaybePromise>>, def: () => Default | Promise) => Promise;