"""XML signature utilities for SIFEN.

This package depends on optional runtime dependencies (e.g. `signxml`).
To avoid import-time failures, we lazily import the public API.
"""

try:
    from .api import get_certificate_expiration, sign_de_xml, sign_event_xml
except ModuleNotFoundError:  # pragma: no cover
    get_certificate_expiration = None  # type: ignore[assignment]
    sign_de_xml = None  # type: ignore[assignment]
    sign_event_xml = None  # type: ignore[assignment]

__all__ = ["sign_de_xml", "sign_event_xml", "get_certificate_expiration"]
