You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
ShippingMethodsByCartInterface
A field to retrieve available shipping methods for a cart.
export type ShippingMethodsByCartInterface = {
shippingMethodsByCart: Array<ShippingMethod>;
};