"""
This type stub file was generated by pyright.
"""

from typing import Any, TYPE_CHECKING
from sphinx.application import Sphinx
from sphinx.config import Config

"""Utilities for Sphinx extensions."""
if TYPE_CHECKING:
    ...
logger = ...
class Extension:
    def __init__(self, name: str, module: Any, **kwargs: Any) -> None:
        ...
    


def verify_needs_extensions(app: Sphinx, config: Config) -> None:
    """Check that extensions mentioned in :confval:`needs_extensions` satisfy the version
    requirement, and warn if an extension is not loaded.

    Warns if an extension in :confval:`needs_extension` is not loaded.

    :raises VersionRequirementError: if the version of an extension in
    :confval:`needs_extension` is unknown or older than the required version.
    """
    ...

def setup(app: Sphinx) -> dict[str, Any]:
    ...

