pub use accesskit::{
Node as AccessibilityNode,
NodeId as AccessibilityId,
};
use freya_native_core::{
events::EventName,
NodeId,
};
use ragnarok::ProcessedEvents;
use tokio::sync::{
mpsc::{
UnboundedReceiver,
UnboundedSender,
},
watch,
};
use crate::{
events::{
DomEvent,
PlatformEvent,
},
platform_state::NativePlatformState,
};
pub type NativePlatformSender = watch::Sender<NativePlatformState>;
pub type NativePlatformReceiver = watch::Receiver<NativePlatformState>;
pub type EventEmitter =
UnboundedSender<ProcessedEvents<NodeId, EventName, DomEvent, PlatformEvent>>;
pub type EventReceiver =
UnboundedReceiver<ProcessedEvents<NodeId, EventName, DomEvent, PlatformEvent>>;
pub type EventsQueue = Vec<PlatformEvent>;