"""Auto-generated stub for module: tensorrt_adapter."""
from typing import Any, List, Optional

from .schemas import DetectionPrediction

# Functions
def adapt_tensorrt_yolo_output(output: Any) -> list[Any]:
    """
    Normalize YOLO detections from TensorRT/trtexec/Ultralytics outputs.
    
        Supported styles:
        - Ultralytics results list (result.boxes.xyxy/conf/cls)
        - TensorRT NMS plugin output (`num_dets`, `boxes`, `scores`, `classes`)
        - Dense detection matrix shaped [N, 6+] with `[x1,y1,x2,y2,score,cls,...]`
        - Raw head-like matrix [N, 5 + num_classes] or [N, 4 + num_classes]
    
        Args:
            output: Runtime-specific detection output object.
            image_width: Source image width in pixels.
            image_height: Source image height in pixels.
            config: Optional adapter configuration overrides.
    
        Returns:
            List of normalized detection prediction dictionaries.
    """
    ...

# Classes
class TensorRTYOLOAdapterConfig:
    # Configuration for adapting TensorRT YOLO detections.

    ...
