Under terms that are mutually acceptable. Anything else would be mutually harmful and illogical wouldn't it. If we're saying that there are many complex business links between UK and other EU countries why wouldn't it be in everyone's interests to work to limit the damage of any split on both sides and ensure all required negotiations are conducted as quickly as possible. If barriers are imposed against the UK then clearly the UK would do likewise and the EU would clearly lose far more than we would in that eventuality. Given that the UK is growing and they're not why would they want to add further misery to their existing plight?
Of course you could be right and irrational, almost revenge based decisions may even be made but if that were to happen why would we want to be part of such a club who'd treat an ally and major partner in such a way? The EU is hamstrung by regulation and inherently slow to act/change as has been proved many times before. In what way would an independent UK, unhindered by huge EU regulation and consequently able to react to change within its economy and globally far more quickly than the EU ever could, be at a disadvantage?
Wasn't the speed of reaction and manoeuvrability of Drake's vessels the key to his success against the Spanish Armada?