Registers the plugin with the provided DeviceManager instance.
May optionally return a teardown function that is called when the plugin is unregistered via the function returned by PluginRegistrar.register.
The DeviceManager instance to register the plugin with.
An optional teardown () => void, or nothing.
Interface that all plugins must implement to be registered with the DeviceManager.