"""utils/load_utils.py - text loading helper.

OBS:
    The format loaders that parse bytes into opaque dict[str, Any]
    (load_toml, load_json, load_manifest_schema, load_reference_index) moved to
    boundary/, where types are established at the input edge. load_text stays
    here: it produces a concrete str and establishes no type from opaque data.
"""

from pathlib import Path


def load_text(path: Path) -> str:
    """Load text from the specified path."""
    return path.read_text(encoding="utf-8")
