Add type hints to `synapse.events`.