Add types for lifecycle events.

Timeouts?