import type { BookingTicketHandle, SalesSdkConfirmDetailInput } from '../types';
declare type DetailResult = SalesSdkConfirmDetailInput['detailResult'];
/**
 * 赠品弹窗专用：从规格弹窗 callback 拼 cacheItem（不依赖 OS order transform）。
 * 对齐 `buildCacheItemFromDetail` 的 UI 侧字段，供 usePromotionModal 写回列表。
 *
 * @example
 * const cacheItem = buildGiftCacheItemFromDetail(catalogProduct, detailResult, 1, '2026-05-26 12:00:00');
 */
export declare function buildGiftCacheItemFromDetail(catalogProduct: Record<string, any>, detailResult: DetailResult, confirmQuantity: number, flowDate: string): Record<string, any> | null;
/**
 * 优先走 OS `transformDetailToProductAndBooking`；失败时 fallback 到赠品专用 cacheItem 拼装。
 *
 * @example
 * const cacheItem = await resolveGiftCacheItemAfterDetail(bookingTicket, product, detailResult, options);
 */
export declare function resolveGiftCacheItemAfterDetail(bookingTicket: BookingTicketHandle, catalogProduct: Record<string, any>, detailResult: DetailResult, options: {
    quantity: number;
    date: string;
    customerId?: number | string;
}): Record<string, any> | null;
export {};
