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

from functools import partial
from typing import Any, TYPE_CHECKING
from pygments.formatters import HtmlFormatter, LatexFormatter
from pygments.formatter import Formatter
from pygments.lexer import Lexer
from pygments.style import Style

"""Highlight code blocks using Pygments."""
if TYPE_CHECKING:
    ...
logger = ...
lexers: dict[str, Lexer] = ...
lexer_classes: dict[str, type[Lexer] | partial[Lexer]] = ...
escape_hl_chars = ...
_LATEX_ADD_STYLES = ...
class PygmentsBridge:
    html_formatter = HtmlFormatter
    latex_formatter = LatexFormatter
    def __init__(self, dest: str = ..., stylename: str = ..., latex_engine: str | None = ...) -> None:
        ...
    
    def get_style(self, stylename: str) -> Style:
        ...
    
    def get_formatter(self, **kwargs: Any) -> Formatter:
        ...
    
    def get_lexer(self, source: str, lang: str, opts: dict | None = ..., force: bool = ..., location: Any = ...) -> Lexer:
        ...
    
    def highlight_block(self, source: str, lang: str, opts: dict | None = ..., force: bool = ..., location: Any = ..., **kwargs: Any) -> str:
        ...
    
    def get_stylesheet(self) -> str:
        ...
    


