import type { ScanOrderOrderProduct, ScanOrderOrderProductIdentity } from '../types'; /** 具备删除能力的 OS bookingTicket 最小接口 */ export interface RemoveOrderProductsBookingTicket { getTempOrder?: () => { products?: ScanOrderOrderProduct[]; } | null; removeProductFromOrder: (identity: ScanOrderOrderProductIdentity) => Promise; removeProductsFromOrder?: (identities: ScanOrderOrderProductIdentity[]) => Promise; } /** * 按 identity 批量删除购物车行:优先走 OS 批量 API,避免 N 次 applyPromotion。 * * @example * const result = await removeOrderProductsByIdentities(bookingTicket, [ * { identity_key: 'uid-a', product_id: 1, product_variant_id: 0 }, * { identity_key: 'uid-b', product_id: 1, product_variant_id: 0 }, * ]); */ export declare function removeOrderProductsByIdentities(bookingTicket: RemoveOrderProductsBookingTicket, identities: ScanOrderOrderProductIdentity[]): Promise;