This is a tricky proposition because we cannot see the interior of the Sun in visible light. As a consequence, most of what we know about the interior of the Sun (and hence stars) comes from well-crafted theory which has been tweaked and improved through comparisons to observations.
Now let us pursue this issue in more detail.
The calculated structure of the Sun shown
The basic model of the Sun is constrained by because we have a very good idea of the mass of the Sun and we have good numbers for the luminosity and radius of the current Sun. However, this does not mean that we have the Sun nailed. For example, because we cannot see the core of the Sun, we can fiddle around a little with the assumed chemical composition of the core of the Sun. By tweaking some parameters, we can match the observed properties of the Sun. We would like to have more detailed tests of our theories theories of solar structure.