from django.db.backends.base.base import BaseDatabaseWrapper

def psycopg2_version() -> tuple[int, ...]: ...

PSYCOPG2_VERSION: tuple[int, ...] = ...

class DatabaseWrapper(BaseDatabaseWrapper):
    operators: dict[str, str] = ...
    pattern_esc: str = ...
    pattern_ops: dict[str, str] = ...

    # PostgreSQL backend-specific attributes.
    _named_cursor_idx: int = ...
    @property
    def pg_version(self) -> str: ...
