engine: Remove waitEvent from public API