import { type UnwrapOk } from './types.mjs';
/**
 * Safely unwraps the success value, returning `undefined` for failures.
 *
 * @example
 *
 * ```ts
 * const okResult = Result.ok(42);
 *
 * const errResult = Result.err('oops');
 *
 * // Result.unwrapOk returns the value for Ok results
 *
 * assert.isTrue(Result.unwrapOk(okResult) === 42);
 *
 * // Result.unwrapOk returns undefined for Err results
 *
 * // eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
 * assert.isTrue(Result.unwrapOk(errResult) === undefined);
 * ```
 */
export declare function unwrapOk<R extends Ok<unknown>>(result: R): UnwrapOk<R>;
export declare function unwrapOk<R extends UnknownResult>(result: R): UnwrapOk<R> | undefined;
//# sourceMappingURL=result-unwrap-ok.d.mts.map