import PropTypes from 'prop-types'; import React, { FocusEvent, SyntheticEvent } from 'react'; import { Localizer } from './Localization'; export interface NumberPickerInputProps extends Omit, 'onChange' | 'value'> { value: number | null | undefined; editing?: boolean; placeholder?: string; innerRef?: React.Ref; localizer: Localizer; parse?: (str: string, localizer: Localizer) => number; min?: number; max?: number; disabled?: boolean; readOnly?: boolean; onChange: (number: number | null | undefined, event: SyntheticEvent) => void; } interface NumberPickerInputState { stringValue?: string; lastValueFromProps?: string; } interface NumberPickerInputSnapshot { reselectText?: boolean; } declare class NumberPickerInput extends React.Component { static defaultProps: { value: null; editing: boolean; }; static propTypes: { value: PropTypes.Requireable; editing: PropTypes.Requireable; placeholder: PropTypes.Requireable; localizer: PropTypes.Validator; parse: PropTypes.Requireable<(...args: any[]) => any>; min: PropTypes.Requireable; max: PropTypes.Requireable; disabled: PropTypes.Validator & { acceptsArray: PropTypes.Validator; }; readOnly: PropTypes.Validator & { acceptsArray: PropTypes.Validator; }; onChange: PropTypes.Validator<(...args: any[]) => any>; }; state: NumberPickerInputState; getSnapshotBeforeUpdate({ editing, }: NumberPickerInputProps): NumberPickerInputSnapshot; static getDerivedStateFromProps(nextProps: NumberPickerInputProps, prevState: NumberPickerInputState): { stringValue: string; lastValueFromProps: string; } | null; componentDidUpdate(_: NumberPickerInputProps, __: NumberPickerInputState, { reselectText }: NumberPickerInputSnapshot): void; setStringValue(stringValue: string): void; handleBlur: (event: FocusEvent) => void; handleChange: (event: React.FormEvent) => void; isIntermediateValue(num: number | undefined | null, str: string): boolean; isSelectingAllText(): boolean; parseNumber(strVal: string): number | undefined | null; render(): JSX.Element; } export default NumberPickerInput; //# sourceMappingURL=NumberInput.d.ts.map