GPT and diabetes mellitus: This investigation establishes hepatic biomarkers-ALT, AST, and the ALT/AST ratio-as reliable predictors of incident diabetes within a Chinese adult cohort and underscores the TyG index’s pivotal mediating influence on the association between elevated liver enzymes and diabetes risk.