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

# Functions
def create_deploy_server() -> Any:
    """
    Create a deploy server instance from backend or custom factory.
    
        Args:
            load_model: Callable that loads and returns model state.
            predict: Callable that performs inference from model and bytes input.
            action_id: Platform action identifier for deployment tracking.
            port: External server port.
            backend: Backend selector for built-in server implementations.
            server_factory: Optional custom server factory override.
    
        Returns:
            Deploy server object supporting ``start_server`` or ``start``.
    """
    ...
def start_deploy_server() -> Any:
    """
    Create and start a deploy server using known start hooks.
    
        Args:
            load_model: Callable that loads and returns model state.
            predict: Callable that performs inference from model and bytes input.
            action_id: Platform action identifier for deployment tracking.
            port: External server port.
            backend: Backend selector for built-in server implementations.
            server_factory: Optional custom server factory override.
    
        Returns:
            Started deploy server object.
    """
    ...
