Hearts moved a step closer to exiting administration after their largest creditor agreed to sell its shares in the financially-troubled club.