import type { CartDiscountAllocation, CartDiscountCode, RenderExtensionPoint, DiscountCodeChange, DiscountCodeChangeResult } from '@shopify/checkout-ui-extensions'; /** * Returns the current discount codes applied to the cart, and automatically re-renders * your component if discount codes are added or removed. */ export declare function useDiscountCodes(): CartDiscountCode[]; /** * Returns the current discount allocations applied to the cart, and automatically re-renders * your component if discount allocations changed. */ export declare function useDiscountAllocations(): CartDiscountAllocation[]; /** * Returns a function to add or remove discount codes. * * > Caution: * > See [security considerations](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access) if your extension retrieves discount codes through a network call. */ export declare function useApplyDiscountCodeChange(): (change: DiscountCodeChange) => Promise; //# sourceMappingURL=discounts.d.ts.map