import { type NumberFieldProps as RACNumberFieldProps } from 'react-aria-components'; import type { ApiProps, CommonProps, FieldWithPlaceholderProps } from '../types.js'; export interface NumberFieldProps extends CommonProps, FieldWithPlaceholderProps, ApiProps, Pick { /** The current value (controlled). A `null` value means an empty field. */ value?: number | null; /** The default value (uncontrolled). A `null` value means an empty field. */ defaultValue?: number | null; /** Handler that is called when the value changes. A `null` value means an empty field. */ onChange?: (value: number | null) => void; } /** The imperative API exposed by the `NumberField` component. */ export interface NumberFieldApi { /** Focuses the input field. */ focus: () => void; /** Selects the contents of the input field. */ select: () => void; } /** * Allows users to edit a number with a keyboard or increment/decrement buttons. * * See [number field usage guidelines](https://ui.cimpress.io/components/number-field/). */ declare const _NumberField: (props: NumberFieldProps & import("react").RefAttributes & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null; export { _NumberField as NumberField }; //# sourceMappingURL=number-field.d.ts.map