import React from "react"; import type { FormatNumberOptions } from "react-intl"; import type { ControllerRenderProps, FieldValues } from "react-hook-form"; import type { InputTextProps } from "../InputText"; export interface InputCurrencyProps extends Omit { /** * Whether to display the user's currency symbol or not * Default value is true */ readonly showCurrencySymbol?: boolean; /** * The minimum decimal places for the currency number * Default value is 2 */ readonly decimalPlaces?: number; /** * The maximum decimal places for the currency number * Default value is 5 */ readonly maxDecimalPlaces?: number; /** * The maximum length of the input * Default value is 10 */ readonly maxLength?: number; onChange?(newValue?: number | string | undefined): void; readonly value?: number; readonly defaultValue?: number; readonly keyboard?: "decimal-pad" | "numbers-and-punctuation"; } export declare const getInternalValue: (props: InputCurrencyProps, field: ControllerRenderProps, formatNumber: (value: number, opts?: FormatNumberOptions | undefined) => string) => string; export declare function InputCurrency(props: InputCurrencyProps): React.JSX.Element;