"""mf utility functions."""

from .cache_utils import (
    get_cache_file,
    get_file_by_index,
    load_search_results,
    print_search_results,
    save_search_results,
)
from .config_utils import (
    get_config_file,
    get_media_extensions,
    get_validated_search_paths,
    read_config,
    write_config,
    write_default_config,
)
from .console import console, print_error, print_ok, print_warn
from .default_config import default_cfg
from .editor_utils import start_editor
from .generate_dummy_media import generate_dummy_media
from .normalizers import (
    normalize_bool_str,
    normalize_bool_to_toml,
    normalize_media_extension,
    normalize_path,
    normalize_pattern,
)
from .scan_utils import (
    find_media_files,
    get_fd_binary,
    scan_path_with_fd,
    scan_path_with_python,
)
from .settings_registry import apply_action

__all__ = [
    "apply_action",
    "console",
    "default_cfg",
    "find_media_files",
    "generate_dummy_media",
    "get_cache_file",
    "get_config_file",
    "get_fd_binary",
    "get_file_by_index",
    "get_media_extensions",
    "get_validated_search_paths",
    "load_search_results",
    "normalize_bool_str",
    "normalize_bool_to_toml",
    "normalize_media_extension",
    "normalize_path",
    "normalize_pattern",
    "print_error",
    "print_ok",
    "print_search_results",
    "print_warn",
    "read_config",
    "save_search_results",
    "scan_path_with_fd",
    "scan_path_with_python",
    "start_editor",
    "write_config",
    "write_default_config",
]
