The Solar PV panels are guaranteed for 20 years by the manufacturer that the output will be a minimum of 80% of the manufactured maximum output.
Batteries would be expected to last 5 – 7 years dependant on the operating conditions including heat, duty, cycle and rate of discharge.