import type { ProductData } from '../types';
/**
 * 评估器协议（仅本工具用到的字段）。
 * 完整定义在 `pisell_os/src/solution/BaseSales/utils/cartPromotion.ts`；
 * 这里以结构性子集约束，避免对 OS 包的硬依赖。
 */
interface PromotionEvaluatorLike {
    getProductsApplicableStrategies(input: {
        products: any[];
        channel?: string;
    }, matchVariant?: boolean): Array<{
        product: any;
        applicableStrategies: Array<{
            strategyId: string;
            strategyName: string | Record<string, string>;
            strategyMetadata: any;
            actionType: string;
            requiredQuantity: number;
            eligibleProducts: any[];
            display?: {
                text: string | Record<string, string>;
                type: string;
            };
        }>;
        hasApplicableStrategy: boolean;
    }>;
}
/**
 * 给商品列表追加 `_promotionTags`，供 ProductCard 渲染。
 *
 * - 没有适用策略的商品会清除 `_promotionTags`（避免脏数据）
 * - 与 OS `cartPromotion.appendPromotionTags` 等价，仅用于 SDK Product Context
 *   把 evaluator 评估结果就近写到对外的商品列表
 *
 * @example
 * const enriched = appendPromotionTagsForProducts(products, evaluator);
 */
export declare function appendPromotionTagsForProducts(products: ProductData[] | null | undefined, evaluator: PromotionEvaluatorLike | null | undefined): ProductData[];
export {};
