Yes and of course an LED driver needs to output DC at (and as you say) constant voltage for LEDs in parallel or constant current for LEDs in series. I think you are right on there being a transformer inside as the only practical way of providing true isolation from primary to secondary circuits...