Duality with time-changed Lévy processes