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

from .eval_model_loader import ModelLoaderCallable, load_model_with_runtime
from .exceptions import RuntimeNotSupportedError
from .inference_runners import RunnerCallable, get_inference_runner

# Classes
class RuntimeTaskRegistry:
    # Registry keyed by task type and runtime framework.

    def register_loader(self: Any, task_type: str, runtime_key: str, loader: Any) -> None:
        """
        Register a model loader for a task/runtime pair.
        
                Args:
                    task_type: Task namespace to register loader under.
                    runtime_key: Runtime key associated with the loader.
                    loader: Model loader callable for the task/runtime pair.
        
                Returns:
                    None.
        """
        ...

    def register_runner(self: Any, task_type: str, runtime_key: str, runner: Any) -> None:
        """
        Register an inference runner for a task/runtime pair.
        
                Args:
                    task_type: Task namespace to register runner under.
                    runtime_key: Runtime key associated with the runner.
                    runner: Inference runner callable for the task/runtime pair.
        
                Returns:
                    None.
        """
        ...

    def resolve_loader(self: Any, task_type: str, runtime_framework: str) -> Any:
        """
        Resolve a model loader callable for a task/runtime descriptor.
        
                Args:
                    task_type: Task namespace used for loader lookup.
                    runtime_framework: Runtime descriptor used for runtime matching.
        
                Returns:
                    Loader callable configured for resolved task/runtime pair.
        """
        ...

    def resolve_runner(self: Any, task_type: str, runtime_framework: str) -> Any:
        """
        Resolve an inference runner callable for a task/runtime descriptor.
        
                Args:
                    task_type: Task namespace used for runner lookup.
                    runtime_framework: Runtime descriptor used for runtime matching.
        
                Returns:
                    Runner callable configured for resolved task/runtime pair.
        """
        ...

