can an indoor Transfer Switch be used on the other side of the wall as an outdoor service entrance and main panel?
The simple answer is NO. 

An indoor xfer switch enclosure is rated for a dry location only. You would need a Raintight enclosure if you were to use it where it is subject to weather conditions.