"""Auto-generated stub for module: preprocessor."""
from typing import Any

from .io_utils import temporary_file_from_bytes

# Functions
def build_image_transform(config: Any) -> Any.Any:
    """
    Construct torchvision transform pipeline for model inference.
    """
    ...
def get_model_device(model: Any.Any.Any) -> Any.Any:
    """
    Return model parameter device, or CPU for parameter-less models.
    """
    ...
def load_rgb_image_from_bytes(image_bytes: Any) -> Any.Any:
    """
    Decode image bytes into an RGB PIL image.
    """
    ...
def preprocess_image_from_bytes(image_bytes: Any) -> tuple[Any.Any, Any.Any]:
    """
    Decode and transform image bytes into batched tensor [1, C, H, W].
    """
    ...
def probe_video_fps(video_bytes: Any) -> float:
    """
    Extract FPS from video bytes using OpenCV with temp-file isolation.
    """
    ...

# Classes
class ImagePreprocessConfig:
    # Standard image preprocessing configuration.

    ...
