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

# Functions
def safe_log_error(action_tracker: Any, file_path: str, location: str, message: str) -> None:
    """
    Log prediction errors without propagating tracker exceptions.
    
        Args:
            action_tracker: Tracker-like object implementing ``log_error``.
            file_path: Source file associated with the error.
            location: Logical module or location string.
            message: Error details to persist.
    
        Returns:
            None.
    """
    ...
def safe_update_status(action_tracker: Any, step_code: str, status: str, description: str) -> None:
    """
    Submit status updates without propagating tracker exceptions.
    
        Args:
            action_tracker: Tracker-like object implementing ``update_status``.
            step_code: Prediction lifecycle step identifier.
            status: Status level such as ``OK`` or ``ERROR``.
            description: Human-readable status description.
    
        Returns:
            None.
    """
    ...

# Classes
class PredictionStatusCodes:
    # Canonical prediction-related status step codes.

    ...
class PredictionStatusReporter:
    # Semantic status reporter for prediction error transitions.

    def __init__(self: Any, action_tracker: Any, codes: Any | None = None) -> None:
        """
        Create a reporter backed by an ActionTracker-like object.
        
                Args:
                    action_tracker: Tracker-like object used for status updates.
                    codes: Optional status code overrides.
        
                Returns:
                    None.
        """
        ...

    def model_load_failed(self: Any, msg: str = 'Error in loading model') -> None:
        """
        Emit model-load failure status.
        
                Args:
                    msg: Optional status description override.
        
                Returns:
                    None.
        """
        ...

    def prediction_failed(self: Any, msg: str = 'Error during prediction') -> None:
        """
        Emit prediction failure status.
        
                Args:
                    msg: Optional status description override.
        
                Returns:
                    None.
        """
        ...

