import { WrappedComponentProps } from 'react-intl'; 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; } 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; }>> & { WrappedComponent: import("react").ComponentType & { id?: string; }>; }; export default _default; //# sourceMappingURL=MoneyInput.d.ts.map