Default implementation of DID event bus using Kotlin Flow.
Flow of DID events.
Publish an event.
Subscribe to events of a specific type.
Extension function for type-safe event subscription.