Add types for lifecycle events.

If someone asked for TCP sockets to be a notifier, I would be OK adding it, FWIW.  It's weird, but OK.  I expect at some point people will ask for TCP to come with "write this string" and "match this regex" params, which makes it even more plausible.