[#SD-235] Type-Safe Event Emitter
- Added a new event emitter system with type safety to ensure that events and their handlers align with expected data structures, reducing potential errors.
- Refactored existing event-based code to integrate with the new type-safe event emitter, improving code readability and maintainability.
- Introduced or updated type definitions for event payloads, ensuring strict type-checking at compile time for more robust event handling.
Closes SD-235
Edited by Kamile Liucija Vainiute