import { type UnwrapOk } from './types.mjs';
/**
 * Unwraps the Ok value or throws with the provided message.
 *
 * @example
 *
 * ```ts
 * const okValue = TernaryResult.ok('ready');
 *
 * assert.strictEqual(TernaryResult.expectToBe(okValue, 'missing'), 'ready');
 *
 * const expectResult = TernaryResult.expectToBe<string>('needs value');
 *
 * assert.throws(() => expectResult(TernaryResult.err('oops')), /needs value/u);
 * ```
 */
export declare function expectToBe<R extends UnknownTernaryResult>(result: R, message: string): UnwrapOk<R>;
export declare function expectToBe<S>(message: string): <W, E>(result: TernaryResult<S, E, W>) => S;
//# sourceMappingURL=ternary-result-expect-to-be.d.mts.map