import * as React from 'react'; import { Size, States, Testable } from '../types'; export interface NumberFieldProps extends Testable, Omit, 'onChange' | 'onKeyDown' | 'onClick' | 'tabIndex' | 'size' | 'value' | 'prefix' | 'min' | 'max'> { /** * Optional. The size of the number field. Can be 'Small' or 'Medium'. */ size?: Size.Small | Size.Medium; /** * Optional. The prefix to be displayed before the number in the field. */ prefix?: string; /** * Optional. The interval for incrementing and decrementing the number in the field. */ interval?: number; /** * Optional. The minimum value that can be entered in the field. */ minValue?: number; /** * Optional. The maximum value that can be entered in the field. */ maxValue?: number; /** * Optional. A boolean indicating whether negative numbers are allowed. */ allowNegative?: boolean; /** * Optional. The number of decimal places allowed in the number. */ decimalPrecision?: number; /** * Optional. The state of the number field. Can be 'Valid' or 'Invalid'. */ state?: States.Valid | States.Invalid; /** * Optional. A note to be displayed below the number field. */ note?: string; /** * Optional. An icon to be displayed next to the note. */ noteIcon?: React.ReactNode; /** * Optional. The type of the number field. Can be 'NumberField' or 'NumberInput'. */ type?: 'NumberField' | 'NumberInput'; /** * Optional. The current value of the number field. */ value?: number; /** * Optional. A function to be called when the value of the number field changes. */ onChange?: (e: number) => void; /** * Optional. The position of the tooltip when the number overflows. Can be 'top' or 'bottom'. */ overflowTooltipPosition?: 'top' | 'bottom'; } declare const NumberField: React.ForwardRefExoticComponent>; export default NumberField;