A couple scenario If the buyout happens over night for cash You may wake up to see your shares prices jump at the opening and you can sell your shares before the buyout close
Second If a bouyout happens with a public company They could be cash and or shares of the company