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 return `Err(E)` with passed `err`.
 *
 * Arguments passed to this are eagerly evaluated;
 * if you are passing the result of a function call, it is recommended to use okOrElse,
 * which is lazily evaluated.
 */
export declare function okOrForNullable<T, E>(input: Nullable<T>, err: E): Result<T, E>;
