import type { SalesSdkUIHosts } from '../types'; import type { ScanOrderTempOrder } from '../types'; export declare type EnrichCacheItemBeforeAddMode = 'direct' | 'drawer'; export interface EnrichCacheItemBeforeAddInput { cacheItem: any; /** 列表 / catalog 商品:跨日判定与 duration 合并 */ catalogItem?: Record | null; uiHosts?: SalesSdkUIHosts | null; bookingConfig?: Record | null; tempOrder?: ScanOrderTempOrder | null; customerId?: number | string; date?: string | null; locale?: string; mode: EnrichCacheItemBeforeAddMode; } export declare type EnrichCacheItemBeforeAddResult = { status: 'ok'; cacheItem: any; } | { status: 'cancelled'; } | { status: 'missing_host'; missing: 'holder' | 'multiDay'; }; /** * 加车前 Holder + 跨日展开(对齐 ticketBooking handleBooking4Service / processManualEditService)。 */ export declare function enrichCacheItemBeforeAdd(input: EnrichCacheItemBeforeAddInput): Promise;