GPT and diabetes mellitus: The mediation analysis showed that the TyG index significantly mediated the associations, accounting for 40.25%, 36.45%, and 76.97% of the effects of ALT, AST, and the ALT/AST ratio, respectively, on diabetes risk.