25mm SWA can handle 124 amps. 6mm SWA (53 amps) would be more typical for an outbuilding. What on earth are you powering?!
The whole house
The general idea is to take the meter tails out the CU (consumer unit), put them into a 100amp switched fuse, from the switched fuse run the 25mm SWA out to the garage (approx 21 meter run). Put a Victron 8000VA inverter in there, which is capable of supplying about 6400w depending what the load & temperature is. Run another 25mm SWA back to the CU.
This means the whole house is run through the inverter (it will need a by pass switch in case its faulty or needs working on), when the house load exceeds what the inverter can supply it draws the extra from the grid, and can handle up to 100amp. My existing 4kw solar, which is connected to the CU will stay as is, and the Victron will charge the batteries with excess power from it, or export it. MPPT chargers will connect to a new 4.8kw east/west array on the garage roof and directly charge the batteries via DC, when the batteries are full the the MPPT chargers will supply power to the inverter for use or export.
In the event of a power cut the Victron inverter will isolate from the grid, and carry on producing power from the batteries/garage solar, as power is being supplied to the existing CU the original solar carry's on working as well.
I'm intending on using a 16S 304AH battery, which should give about 15.5kWh, and I could add multiple batteries.
We won't be running it at 100amp, it will likely be fused at 60 or 80amp, but its future proof, and more importantly, the longer the cable the more its affected by voltage drop, and you don't want voltage drop on solar, so the bigger the cable the less voltage drop. Also if we have to de-rate the cable, with 124 amps we've plenty of head room.
The major problem is its going to be an absolute pain to get a cable that thick (26mm) and not very flexible in to where it has to go, well actually two cables, one out, and one back in, but I'm up for a challenge. Doing it this way will also mean the CT clamp is in the garage, but I will still be running a CAT6 cable out there, with a fair bit of separation.