Battery status

Hello,

Please describe how to use battery property.
code cannot be compiled:
using Toybox.System.Stats as StatX;

....
var batStat=15;
batStat=StatX.battery;

this code is not valid too:
var batStat=15;
batStat=Toybox.System.Stats.battery;