import type { OrderFormContext } from '@vtex/order-manager'; import type { OrderForm, FakeUniqueIdMap, Item, UpdateQuantityInput } from '../typings'; interface UpdateQuantityData { data?: O; errors?: any; } type UpdateQuantityMutation> = (options: { orderItems: I[]; }) => Promise; export interface CreateUseUpdateQuantityParams { useMutateUpdateQuantity: () => UpdateQuantityMutation; useOrderForm: () => OrderFormContext; } export declare function createUseUpdateQuantity({ useMutateUpdateQuantity, useOrderForm, }: CreateUseUpdateQuantityParams): (fakeUniqueIdMapRef: React.MutableRefObject) => ({ items, orderFormItems, id, allowedOutdatedData, splitItem, }: { items: UpdateQuantityInput[]; orderFormItems: Item[]; id: string; allowedOutdatedData?: string[] | undefined; splitItem?: boolean | undefined; }) => { id: string; execute: () => Promise; rollback: () => void; }; export {}; //# sourceMappingURL=createUseUpdateQuantity.d.ts.map