import type { SalesSdkUIHosts } from '../types';
import type { ScanOrderTempOrder } from '../types';
import type { SalesSdkHolderOption } from './formatHolderOptions';
export declare type EnrichCacheItemBeforeAddMode = 'direct' | 'drawer';
export interface EnrichCacheItemBeforeAddInput {
    cacheItem: any;
    /** 列表 / catalog 商品：跨日判定与 duration 合并 */
    catalogItem?: Record<string, any> | null;
    uiHosts?: SalesSdkUIHosts | null;
    bookingConfig?: Record<string, any> | null;
    tempOrder?: ScanOrderTempOrder | null;
    customerId?: number | string;
    isFranchisee?: boolean;
    holderOptions?: SalesSdkHolderOption[];
    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<EnrichCacheItemBeforeAddResult>;
