from collections.abc import Mapping
from typing import Any, Dict

supports_lone_surrogates: bool

class MethodDispatcher(Dict[Any, Any]):
    default: Any
    def __init__(self, items=...) -> None: ...
    def __getitem__(self, key): ...
    def __get__(self, instance, owner: Any | None = ...): ...

class BoundMethodDispatcher(Mapping[Any, Any]):
    instance: Any
    dispatcher: Any
    def __init__(self, instance, dispatcher) -> None: ...
    def __getitem__(self, key): ...
    def get(self, key, default): ...
    def __iter__(self): ...
    def __len__(self): ...
    def __contains__(self, key): ...

def isSurrogatePair(data): ...
def surrogatePairToCodepoint(data): ...
def moduleFactoryFactory(factory): ...
