import { type KeyboardEventHandler } from 'react'; import type { BehaviorTrackingProps } from '../../core/types/behavior-tracking-props.js'; import type { FocusEvents } from '../../core/types/events.js'; import type { FormControlProps } from '../../core/types/form-control-props.js'; import type { BaseInputProps } from '../_base-input/base-input.types.js'; import type { FormControlRef } from '../shared-types.js'; /** * The properties of the NumberInput component. * @public * @deprecated This type is deprecated and will be removed in a future release. Please use the NumberInputV2Props instead. */ export type NumberInputProps = Pick & FormControlProps void> & FocusEvents & BehaviorTrackingProps & { /** Handler that is called when a key is pressed. */ onKeyDown?: KeyboardEventHandler; /** Minimum amount of the input. */ min?: number | string; /** Maximum amount of the input. */ max?: number | string; /** Defines the step size in which increments/decrements can be performed on the input. */ step?: number; }; /** * NumberInputBase component. This is necessary in order to correctly call onChange with undefined on blur, which is otherwise set to NaN by react-stately. * @public */ export declare const NumberInputBase: (props: NumberInputProps & import("react").RefAttributes, "validate">>) => import("react").ReactElement | null;