/******************************************************************** * Copyright 2025 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this * file in accordance with the terms of the Adobe license agreement * accompanying it. *******************************************************************/ import { CartItemModel } from '../data/models/negotiable-quote-model'; export interface UseUpdateTemplateQuantitiesReturn { quantityChanges: Record; handleQuantityChange: (item: CartItemModel, newQuantity: number) => void; handleUpdate: (e: SubmitEvent) => void; handleConfirmUpdate: () => Promise; handleCancelUpdate: () => void; handleDismissBanner: () => void; isUpdateModalOpen: boolean; isUpdating: boolean; updateNotificationState: { type: 'success' | 'error' | null; message: string; }; } export interface UseUpdateTemplateQuantitiesParams { templateId?: string; onUpdateModalStateChange?: (isOpen: boolean) => void; updateSuccessMessage: string; updateErrorMessage: string; } /** * Custom hook to manage updating quantities of items in a quote template */ export declare const useUpdateTemplateQuantities: (params: UseUpdateTemplateQuantitiesParams) => UseUpdateTemplateQuantitiesReturn;