Novak Djokovic, Roger Federer and Carlos Alcaraz were among those praising the Spaniard after his announcement.