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

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.
    """
    ...
def validate_payload(payload: Any[dict[str, Any]]) -> Any:
    """
    Validate and normalize a full metric payload list with Pydantic.
    """
    ...

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

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

    model_config: Any

