import { type KeyboardEventHandler } from 'react'; import type { FocusEvents } from '../../core/types/events.js'; import type { FormControlProps } from '../../core/types/form-control-props.js'; import type { BaseInputProps } from '../_base-input/BaseInput.js'; import type { FormControlRef } from '../shared-types.js'; /** * @public */ export type NumberInputProps = Pick & FormControlProps void> & FocusEvents & { /** 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">>) => React.ReactElement | null;