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

from .server import start_deploy_server
from .status_handler import DeployStatusReporter, safe_log_error

# Functions
def build_cli_main() -> Callable[[str, int], None]:
    """
    Create a deploy entrypoint function with bound model callbacks.
    
        Args:
            load_model: Callable that loads and returns model state.
            predict: Callable that performs inference from model and bytes input.
            action_tracker_factory: Optional tracker factory override.
            config: Optional bootstrap configuration overrides.
    
        Returns:
            Function with signature ``main(action_id, port)``.
    """
    ...
def default_action_tracker_factory(action_id: str) -> Any:
    """
    Create an ActionTracker lazily to avoid import-time hard dependency.
    
        Args:
            action_id: Platform action identifier for deployment tracking.
    
        Returns:
            Instantiated ActionTracker object.
    """
    ...
def run_deploy() -> Any:
    """
    Run deployment bootstrap flow and start the configured server.
    
        Args:
            action_id: Platform action identifier used by ActionTracker.
            port: External port where deployment server should listen.
            load_model: Callable that loads and returns model state.
            predict: Callable that performs inference from model and bytes input.
            action_tracker_factory: Optional factory for tracker instantiation.
            config: Optional bootstrap configuration overrides.
    
        Returns:
            Started deployment server instance.
    """
    ...
def run_main_and_exit() -> None:
    """
    Run deploy entrypoint directly from process arguments.
    
        Args:
            main: Entrypoint callable expecting ``(action_id, port)``.
            usage: Usage text shown when argument count is invalid.
    
        Returns:
            None.
    """
    ...
def run_main_from_argv(argv: list[str]) -> None:
    """
    Parse CLI arguments and execute the provided deploy entrypoint.
    
        Args:
            argv: Raw CLI argument vector (typically ``sys.argv``).
            main: Entrypoint callable expecting ``(action_id, port)``.
            usage: Usage text shown when argument count is invalid.
    
        Returns:
            None.
    """
    ...

# Classes
class DeployBootstrapConfig:
    # Configuration for deploy bootstrap behavior.

    ...
