from typing import Literal

import numpy as np

def have_fenv() -> bool: ...
def random_double(size: int, rng: np.random.RandomState) -> np.ndarray[tuple[int], np.dtype[np.float64]]: ...
def test_add_round(size: int, mode: Literal["up", "down"], rng: np.random.RandomState) -> None: ...
def _dd_exp(xhi: float, xlo: float) -> tuple[float, float]: ...
def _dd_log(xhi: float, xlo: float) -> tuple[float, float]: ...
