import { type WrappedComponentProps } from '../common/injectIntl'; import { SizeLarge, SizeMedium, SizeSmall } from '../common'; import { WithInputAttributesProps } from '../Inputs/contexts'; import { SelectInputProps } from '../Inputs/SelectInput'; export interface CurrencyOptionItem { header?: never; value: string; label: string; currency: string; note?: string; searchable?: string; disabled?: boolean; } export interface CurrencyHeaderItem { header: string; } export type CurrencyItem = CurrencyOptionItem | CurrencyHeaderItem; export interface MoneyInputProps extends WrappedComponentProps { id?: string; 'aria-labelledby'?: string; currencies: readonly CurrencyItem[]; selectedCurrency: CurrencyOptionItem; onCurrencyChange?: (value: CurrencyOptionItem) => void; placeholder?: number; amount: number | null; size?: SizeSmall | SizeMedium | SizeLarge; onAmountChange?: (value: number | null) => void; addon?: React.ReactNode; searchPlaceholder?: string; /** * Allows the consumer to react to searching, while the search itself is handled internally. */ onSearchChange?: (value: { searchQuery: string; filteredOptions: CurrencyItem[]; }) => void; customActionLabel?: React.ReactNode; onCustomAction?: () => void; classNames?: Record; selectProps?: Partial>; /** * Specify the number of decimal places to format the amount. When not specified, the number of * decimals is determined by the selected currency (e.g. 2 for EUR, 0 for JPY, 3 for BHD). * This override is ignored for zero-decimal currencies (e.g. JPY, KRW, HUF), which always use 0. */ decimals?: number; } export type MoneyInputPropsWithInputAttributes = MoneyInputProps & Partial; declare const _default: import("react").FC<{ id?: string | undefined; 'aria-labelledby'?: string | undefined; size?: (SizeSmall | SizeMedium | SizeLarge) | undefined; placeholder?: number | undefined; classNames?: Record | undefined; selectProps?: Partial> | undefined; amount: number | null; searchPlaceholder?: string | undefined; currencies: readonly CurrencyItem[]; selectedCurrency: CurrencyOptionItem; onCurrencyChange?: ((value: CurrencyOptionItem) => void) | undefined; onAmountChange?: ((value: number | null) => void) | undefined; addon?: import("react").ReactNode; onSearchChange?: ((value: { searchQuery: string; filteredOptions: CurrencyItem[]; }) => void) | undefined; customActionLabel?: import("react").ReactNode; onCustomAction?: (() => void) | undefined; decimals?: number | undefined; }>; export default _default; //# sourceMappingURL=MoneyInput.d.ts.map