import type { SalesSdkConfirmDetailInput } from '../types'; export interface ApplyProductDetailEditResult { cacheItem: any; formPatch: Record; } /** * 预约商品规格弹窗确认后,合并到抽屉内 cacheItem(对齐 Info2 editService handleEdit callback)。 * * @example * const { cacheItem: next, formPatch } = applyProductDetailEditInDrawer({ * cacheItem, * formValues: form.getFieldsValue(), * detailResult, * }); * onCacheItemChange(next); * form.setFieldsValue(formPatch); */ export declare function applyProductDetailEditInDrawer(input: { cacheItem: any; formValues: Record; detailResult: NonNullable; }): ApplyProductDetailEditResult; /** * 普通商品 SkuDetailModal 确认后,保留抽屉内资源/时间表单值并写回 cacheItem。 * * @example * const { cacheItem: next, formPatch } = mergeNormalProductEditInDrawer({ * cacheItem, * editedCacheItem: result.cacheItem, * formValues: form.getFieldsValue(), * }); */ export declare function mergeNormalProductEditInDrawer(input: { cacheItem: any; editedCacheItem: any; formValues: Record; }): ApplyProductDetailEditResult;