If you and your former partner are able to come to a financial settlement between yourselves or using a method of Alternative Dispute Resolution such as mediation or collaborative law (meaning you do not need to apply to court for an independent decision), you have wide scope to divide the company however you please. As long as the outcome is fair to both parties, the courts will not interfere.
There are a range of ways you can ensure your divorce financial settlement is fair when businesses are involved, such as:
Offsetting - if you have assets of an equivalent or greater value to your business interests, you could agree to let your former partner have a greater share of those assets in return for you keeping the entirety of your business interests
Buy out - if you both have an interest in a limited company, one of you could buy the other out of the business
Spousal maintenance - if your business produces reasonable income but has little in the way of capital value, you could agree to pay your former partner ongoing maintenance
Sell the business
Depending on the option you choose, there will of course be tax implications and other considerations such as provisions on the transfer and sale of shares. It is therefore recommended that you also consult an independent financial advisor in the course of the financial divorce proceedings.