import type React from "react"; import type { FocusEvents, HTMLInputBaseProps, KeyboardEvents, MouseEvents, RebuiltInputCommonProps } from "../sharedHelpers/types"; export type InputNumberVersion = 1 | 2 | undefined; export interface InputNumberRebuiltProps extends HTMLInputBaseProps, FocusEvents, KeyboardEvents, MouseEvents, Omit { readonly defaultValue?: number; readonly formatOptions?: Intl.NumberFormatOptions; readonly maxValue?: number; readonly minValue?: number; /** * Callback for value changes. * @param newValue - The new numeric value * @param event - Optional change event */ readonly onChange?: (newValue: number, event?: React.ChangeEvent) => void; readonly showMiniLabel?: boolean; readonly value?: number; } export interface InputNumberRebuiltRef { focus: () => void; blur: () => void; }