Basically every dissolved material...including calcium, magnesium, phosphates, nitrates, potassium, chlorides, sodium, bicarbonates, etc.
Osmoregulation helps to keep the osmotic pressure of the fish's fluids in balance ie. homeostatic. Fish are actively trying to maintain a standard salt concentration with their bodies (see pic below). Since freshwater is generally low in salts, fish are adapted to dilute their urine by expelling large amounts of water. Concentrations inside and outside cells want to reach equilibrium thus water normally flows into the fish, from the low salt concentration to the high salt concentration, and would otherwise cause cells to swell and potentially burst without regulation. Valuable salts also will diffuse out through the gills in effort to balance concentrations. This entire process takes energy which is why sudden changes in TDS will stress out the fish.
TDS is a general measure of Everything thats dissolved in the water. Salt, hardness, nitrate etc. So it could be made up of different elements.
But it you start with distilled water, it has zero dissolved solids. As stuff gets added, the TDS increases. But you don't know what those elements are just from the TDS value. Maybe your water is hard, maybe it's a slightly brackish tank, maybe you need to do a water change?