What type of wiring is used between solar panels and their grid inverters or battery connections?

What should I use between the solar panel array and the battery shed on the ground? Also, what type of wire should I use to connect each of the panels? I know a lot of panels come with plug and play connectors but I understand a lot of people replace them with…something.