# This file is automatically generated by pyo3_stub_gen
# ruff: noqa: E501, F401, F403, F405

import numpy
import numpy.typing
__all__ = [
    "linear_to_srgb",
    "srgb_to_linear",
]

def linear_to_srgb(array: numpy.typing.NDArray[numpy.float32], dither: bool = False) -> numpy.typing.NDArray[numpy.uint8]:
    r"""
    Convert linear light values to sRGB pixel values.
    
    :param array: Input array of linear float32 values in [0, 1].
    :param dither: Apply dithering to reduce banding artifacts.
    :returns: Array of sRGB uint8 values with the same shape.
    :complexity: O(n) where n = number of pixels
    """

def srgb_to_linear(array: numpy.typing.NDArray[numpy.uint8]) -> numpy.typing.NDArray[numpy.float32]:
    r"""
    Convert sRGB pixel values to linear light values.
    
    :param array: Input array of sRGB uint8 values.
    :returns: Array of linear float32 values with the same shape.
    :complexity: O(n) where n = number of pixels
    """

