This package defines the internal event APIs.