"""``mixlar.emulator`` — a headless mock M1X device for plugin/widget testing.

::

    from mixlar.emulator import MockDevice

    d = MockDevice()
    d.attach()                    # becomes the PluginRegistry's data sender
    d.load_widget("widget.json")
    d.press("ping")                # simulates a device→PC WEVENT
    d.data("w.status")             # inspect what the plugin pushed back
    d.detach()

``render_widget``/``save_preview`` need Pillow (``pip install
"mixlar-sdk[render]"``); ``MockDevice`` itself is stdlib-only.
"""
from __future__ import annotations

from .device import MockDevice
from .render import render_widget, save_preview

__all__ = ["MockDevice", "render_widget", "save_preview"]
