What happens first when a star begins to run out of fuel?

The star’s core shrinks.
The star becomes a black hole.
The star becomes a white dwarf.
The star’s outer layer drifts away.