import type { RecoveryFn } from '../internal/function.js';
import { type Result } from '../plain_result/result.js';
import { type Nullable } from './nullable.js';
/**
 * Transforms the `Nullable<T>` into a `Result<T, E>` by mapping `T` to `Ok(T)`.
 * If `input` is `null`, then returns `Err(E)` with the result of `recoverer()`
 */
export declare function okOrElseForNullable<T, E>(input: Nullable<T>, recoverer: RecoveryFn<E>): Result<T, E>;
