import type { AsyncTransformFn } from '../../internal/function.js';
import { type Option } from './option.js';
export type OptionAsyncTryTransformFn<in T, out U> = AsyncTransformFn<T, Option<U>>;
/**
 *  Returns `None` if the _input_ is `None`,
 *  otherwise calls _transformer_ with the value and returns the result.
 *
 *  XXX:
 *  Some languages call this operation flatmap.
 *  But we don't provide `flatMap()` as alias of this function
 *  to sort with other APIs.
 */
export declare function andThenAsyncForOption<T, U>(input: Option<T>, transformer: OptionAsyncTryTransformFn<T, U>): Promise<Option<U>>;
