import { type CustomBaseButtonProps, type BaseButtonProps } from './BaseButton.js'; import * as React from 'react'; import { CartLineParentInput } from './storefront-api-types.js'; export interface AddToCartButtonPropsBase { /** An array of cart line attributes that belong to the item being added to the cart. */ attributes?: { key: string; value: string; }[]; /** The ID of the variant. */ variantId?: string | null; /** The item quantity. */ quantity?: number; /** The text that is announced by the screen reader when the item is being added to the cart. Used for accessibility purposes only and not displayed on the page. */ accessibleAddingToCartLabel?: string; /** The parent line item of the item being added to the cart. Used for nested cart lines. */ parent?: CartLineParentInput; /** The selling plan ID of the subscription variant */ sellingPlanId?: string; } export type AddToCartButtonProps = AddToCartButtonPropsBase & BaseButtonProps; /** * The `AddToCartButton` component renders a button that adds an item to the cart when pressed. * It must be a descendent of the `CartProvider` component. * @publicDocs */ export declare function AddToCartButton(props: AddToCartButtonProps): JSX.Element; /** @publicDocs */ export interface AddToCartButtonPropsForDocs extends AddToCartButtonPropsBase, CustomBaseButtonProps { }