Option premium behaviour on expiry day

On the expiry day, for index options, during the last 30 minutes of the market i.e from 3:00 PM to 3:30 PM, on what price does the option premium value depend on, the LTP(spot price/current price) or the weighted average price of the underlying index?