How to get updated shipping rate after apply shipping discount in function?

we have created a delivery function for hide some perticular delivery option in checkout after applying a shipping discount code. but we are enable to get the details of updated shipping cost in shipping method in function. and as well as we are enable to get the applied discount code at cart level.

the below screen shot shows multiple discounted delivery option and we want to hide some perticular option based on updated cost for delivery method.

also we’ve refer the shopify delivery customisation function api shopify document but wfind the could not find the type for updated cost here.

can anyone help with this ?