The two candidates offer very different visions of the world so allies – and adversaries – are watching closely.