If there's interest in your book, the optioning party will get in touch with both you and your publisher or agent to discuss the terms and rights of the deal. At that time, the rights will be determined as part of the optioning process. This is normal practice for book optioning.