import { AttributeInput, CartBuyerIdentityInput, CartInput, CartLineInput, CartLineUpdateInput, CountryCode, LanguageCode, Cart as CartType, MutationCartDiscountCodesUpdateArgs, MutationCartNoteUpdateArgs } from './storefront-api-types.js'; import { PartialDeep } from 'type-fest'; type CartResponse = PartialDeep; /** * The `useCartActions` hook returns helper graphql functions for Storefront Cart API * * See [cart API graphql mutations](https://shopify.dev/api/storefront/2026-04/objects/Cart) */ export declare function useCartActions({ numCartLines, cartFragment, countryCode, languageCode, }: { /** Maximum number of cart lines to fetch. Defaults to 250 cart lines. */ numCartLines?: number; /** A fragment used to query the Storefront API's [Cart object](https://shopify.dev/api/storefront/2026-04/objects/cart) for all queries and mutations. A default value is used if no argument is provided. */ cartFragment: string; /** The ISO country code for i18n. Default to `US` */ countryCode?: CountryCode; /** The ISO language code for i18n. Default to `EN` */ languageCode?: LanguageCode; }): { cartFetch: (cartId: string) => Promise>; cartCreate: (cart: CartInput) => Promise>; cartLineAdd: (cartId: string, lines: CartLineInput[]) => Promise>; cartLineUpdate: (cartId: string, lines: CartLineUpdateInput[]) => Promise>; cartLineRemove: (cartId: string, lines: string[]) => Promise>; noteUpdate: (cartId: string, note: MutationCartNoteUpdateArgs["note"]) => Promise>; buyerIdentityUpdate: (cartId: string, buyerIdentity: CartBuyerIdentityInput) => Promise>; cartAttributesUpdate: (cartId: string, attributes: AttributeInput[]) => Promise>; discountCodesUpdate: (cartId: string, discountCodes: MutationCartDiscountCodesUpdateArgs["discountCodes"]) => Promise>; cartFragment: string; }; export {};