import type { SalesSdkUIHosts } from '../../types'; /** Demo / ticketBooking 风格 Host 运行时上下文(由 Bridge 同步,Host 每次打开弹窗时读取)。 */ export interface LegacyProductDetailHostRuntime { customerId?: number | string; date?: string; } export interface CreateLegacyOpenProductDetailHostDeps { /** LCE `appHelper.utils.action` */ action: (opts: Record) => void; /** 每次打开弹窗时读取最新页面态(customerId / date 等) */ getRuntime: () => LegacyProductDetailHostRuntime; } /** * 对齐 ticketBooking `openProductModal` 预约商品分支:`pisell1.handleOpenProductModal`。 * * - 入参以 OS `requiresDetail` payload 为准(showConfig / isEject / productData)。 * - `customer_id` / `date`:payload 优先,runtime 兜底,最后默认当天。 * - 用户取消 → resolve(null);确认 → resolve Info2 callback 三元组供 `cart.confirmDetail` 使用。 */ export declare function createLegacyOpenProductDetailHost(deps: CreateLegacyOpenProductDetailHostDeps): NonNullable;