import type { FormInstance } from 'antd'; import type { BookingEditDrawerBookingState } from './types'; export interface UseBookingEditProductOptions { cacheItem: any; bookingState: BookingEditDrawerBookingState; form: FormInstance; onCacheItemChange: (next: any) => void; /** 规格变更后刷新资源列表 */ onAfterProductEdit: (nextCacheItem?: any) => void; /** 规格变更覆盖手动改价时重置标记 */ resetManualPriceChange: () => void; } /** * 资源编辑抽屉内「编辑商品规格」交互(加车途中 + 已加车均可用)。 * * @example * const { canEditProduct, handleEditProduct, editingProduct } = useBookingEditProduct({ * cacheItem, * bookingState, * form, * onCacheItemChange: setCacheItem, * onAfterProductEdit: getResources, * resetManualPriceChange: () => { isChangeTotal.current = false; }, * }); */ export declare function useBookingEditProduct(options: UseBookingEditProductOptions): { canEditProduct: boolean; handleEditProduct: (this: unknown) => Promise; editingProduct: boolean; };