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

from functools import lru_cache

"""
A module for parsing and generating `fontconfig patterns`_.

.. _fontconfig patterns:
   https://www.freedesktop.org/software/fontconfig/fontconfig-user.html
"""
_family_punc = ...
_family_unescape = ...
_family_escape = ...
_value_punc = ...
_value_unescape = ...
_value_escape = ...
_CONSTANTS = ...
@lru_cache
def parse_fontconfig_pattern(pattern): # -> dict[Unknown, Unknown]:
    """
    Parse a fontconfig *pattern* into a dict that can initialize a
    `.font_manager.FontProperties` object.
    """
    ...

def generate_fontconfig_pattern(d): # -> str:
    """Convert a `.FontProperties` to a fontconfig pattern string."""
    ...

