Add type signature for node `events` module