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

"""TeX escaping helper."""
tex_replacements = ...
ascii_tex_replacements = ...
unicode_tex_replacements = ...
tex_replace_map: dict[int, str] = ...
_tex_escape_map: dict[int, str] = ...
_tex_escape_map_without_unicode: dict[int, str] = ...
_tex_hlescape_map: dict[int, str] = ...
_tex_hlescape_map_without_unicode: dict[int, str] = ...
def escape(s: str, latex_engine: str | None = ...) -> str:
    """Escape text for LaTeX output."""
    ...

def hlescape(s: str, latex_engine: str | None = ...) -> str:
    """Escape text for LaTeX highlighter."""
    ...

def escape_abbr(text: str) -> str:
    """Adjust spacing after abbreviations. Works with @ letter or other."""
    ...

def init() -> None:
    ...

