import type React from 'react'; import type { TextLikeProps } from './types'; export type CurrencyInputProps = Omit & { /** * The currency to display. */ currency: string; /** * How to display the currency. * "symbol" uses a localized currency symbol such as € or kr if appropriate for the locale. * "code" always uses the ISO currency code. * * @default 'symbol' */ currencyDisplay?: 'symbol' | 'code'; /** * Aligns the input content. */ align?: 'start' | 'end'; /** * Specifies the visible width, in characters, of the input. */ size?: number; /** * Value of the input. * * Makes the input controlled. */ value?: number | string; /** * Default value of an uncontrolled input. */ defaultValue?: number | string; /** * Fires immediately when the input’s value is changed by the user (for example, it fires on every keystroke). */ onChange?: React.ChangeEventHandler; /** * Id of a `` element with a list of predefined values to suggest to the user. */ list?: string; /** * Hint the browser about the appropriate virtual keyboard for the type of expected data. * * Use `text` if you need support for negative numbers as the minus sign is not available on iPhone keyboards. * * @default 'numeric' */ inputMode?: 'text' | 'numeric' | 'decimal'; }; /** * The `CurrencyInput` component displays the currency as a prefix or suffix * depending on the current `LocaleProvider` locale and currency. * * If you need to pass the currency as part of a form submitted as a `POST` request, * add a separate hidden input with the currency as the value. */ export declare const CurrencyInput: React.ForwardRefExoticComponent & { /** * The currency to display. */ currency: string; /** * How to display the currency. * "symbol" uses a localized currency symbol such as € or kr if appropriate for the locale. * "code" always uses the ISO currency code. * * @default 'symbol' */ currencyDisplay?: 'symbol' | 'code'; /** * Aligns the input content. */ align?: 'start' | 'end'; /** * Specifies the visible width, in characters, of the input. */ size?: number; /** * Value of the input. * * Makes the input controlled. */ value?: number | string; /** * Default value of an uncontrolled input. */ defaultValue?: number | string; /** * Fires immediately when the input’s value is changed by the user (for example, it fires on every keystroke). */ onChange?: React.ChangeEventHandler; /** * Id of a `` element with a list of predefined values to suggest to the user. */ list?: string; /** * Hint the browser about the appropriate virtual keyboard for the type of expected data. * * Use `text` if you need support for negative numbers as the minus sign is not available on iPhone keyboards. * * @default 'numeric' */ inputMode?: 'text' | 'numeric' | 'decimal'; } & React.RefAttributes>;