Use a weir box and make the top of the box big enough to get the design flow rate with 6" rise over the weir (per AWWA D100). For sizing the pipe, assume that water just dumps out of the weir box into the atmosphere, and use Bernouli's equation to calculate this "orifice flow". This will give you flow rate as a function of pipe area and depth of the weir box. (Try to hold dimensions and shape of the weir box so it is paintable inside.) Once you have the pipe size, go ahead and that pressure losses from pipe friction and fittings don't exceed the gain from the vertical drop. This method is generally conservative.
Typically, the overflow pipe size would be about the same size as the inlet pipes to the tank. If you're a consultant bidding out a job, overflow pipe sizing can be included with the detailed design of the tank (ie, done by the tank contractor).