""" Utility functions for the refactor package. """ from .color_helpers import ( detect_uniform_color, hex_to_latex_color, should_suppress_color, wrap_with_uniform_color, wrap_element_with_color, ) from .xml_utils import ( text_content, local_name, decode_html_entities, extract_math_equations, ) from .helpers import ( is_default_color, ) from .text_processing import ( write_text, read_text, convert_spaces_to_latex, escape_latex_special_chars, ) from .timer import ( PerformanceTimer, TimingRecord, TimingSummary, get_global_timer, enable_global_timer, disable_global_timer, ) from .debug import ( is_debug_enabled, debug_print, ) __all__ = [ 'detect_uniform_color', 'hex_to_latex_color', 'should_suppress_color', 'wrap_with_uniform_color', 'wrap_element_with_color', 'text_content', 'local_name', 'decode_html_entities', 'extract_math_equations', 'is_default_color', 'write_text', 'read_text', 'convert_spaces_to_latex', 'escape_latex_special_chars', 'PerformanceTimer', 'TimingRecord', 'TimingSummary', 'get_global_timer', 'enable_global_timer', 'disable_global_timer', 'is_debug_enabled', 'debug_print', ]