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

from .exceptions import PayloadFormatError

# Constants
MetricPayload: Any

# Functions
def validate_metric_record(item: dict[str, Any], index: int = 0) -> Any:
    """
    Validate and normalize a metric record with Pydantic.
    
        Args:
            item: Raw metric record dictionary to validate.
            index: Item index used for contextual error messages.
    
        Returns:
            Normalized metric record that conforms to payload schema.
    """
    ...
def validate_payload(payload: Any[dict[str, Any]]) -> Any:
    """
    Validate and normalize a full metric payload list with Pydantic.
    
        Args:
            payload: Iterable of raw metric record dictionaries.
    
        Returns:
            List of normalized metric records.
    """
    ...

# Classes
class MetricRecord:
    # Metric record including optional contextual attributes.

    ...
class MetricRecordModel:
    # Pydantic schema used for metric payload validation.

    model_config: Any

