use crate::{
events::DomEvent,
prelude::{EventName, NativePlatformState, PlatformEvent, PotentialEvent},
};
pub use accesskit::NodeId as AccessibilityId;
use rustc_hash::FxHashMap;
use smallvec::SmallVec;
use tokio::sync::mpsc::{UnboundedReceiver, UnboundedSender};
use tokio::sync::watch;
pub type NativePlatformSender = watch::Sender<NativePlatformState>;
pub type NativePlatformReceiver = watch::Receiver<NativePlatformState>;
pub type EventEmitter = UnboundedSender<Vec<DomEvent>>;
pub type EventReceiver = UnboundedReceiver<Vec<DomEvent>>;
pub type EventsQueue = SmallVec<[PlatformEvent; 2]>;
pub type PotentialEvents = FxHashMap<EventName, Vec<PotentialEvent>>;