An historic building dating back more than 250 years has entered into a pre-contract agreement shortly after it was sold last year.