import React, { type ReactNode } from 'react'; import type { MoneyV2, UnitPriceMeasurement } from './storefront-api-types.js'; import type { PartialDeep } from 'type-fest'; interface CustomProps { /** An HTML tag or React Component to be rendered as the base element wrapper. The default is `div`. */ as?: ComponentGeneric; /** An object with fields that correspond to the Storefront API's [MoneyV2 object](https://shopify.dev/api/storefront/reference/common-objects/moneyv2). */ data: PartialDeep; /** Whether to remove the currency symbol from the output. */ withoutCurrency?: boolean; /** Whether to remove trailing zeros (fractional money) from the output. */ withoutTrailingZeros?: boolean; /** A [UnitPriceMeasurement object](https://shopify.dev/api/storefront/latest/objects/unitpricemeasurement). */ measurement?: PartialDeep; /** Customizes the separator between the money output and the measurement output. Used with the `measurement` prop. Defaults to `'/'`. */ measurementSeparator?: ReactNode; } export declare type MoneyProps = CustomProps & Omit, keyof CustomProps>; /** * The `Money` component renders a string of the Storefront API's * [MoneyV2 object](https://shopify.dev/api/storefront/reference/common-objects/moneyv2) according to the * `locale` in the `ShopifyProvider` component. */ export declare function Money({ data, as, withoutCurrency, withoutTrailingZeros, measurement, measurementSeparator, ...passthroughProps }: MoneyProps): JSX.Element; export {};