import { createInstanceHostBridge } from "../hosts/createInstanceHostBridge";

/**
 * GiftSelect Host bridge：
 *  - request payload：SalesSdkGiftSelectContext（来自 OS applyPromotion 的赠品请求）
 *  - resolve payload：用户选择的 (variant + 数量) 列表；用户取消时为 null
 *
 * @example
 * const bridge = createGiftSelectBridge();
 * const choices = await bridge.request({ strategyId, strategyName, giftCount, giftOptions, sourceProductIds });
 */

export function createGiftSelectBridge() {
  return createInstanceHostBridge();
}