/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { Omit } from '../../_util/type'; import { SizeType } from '../../config-provider/component/SizeContext'; export declare type OmitAttrs = 'defaultValue' | 'onChange' | 'size' | 'onInput' | 'prefix'; export interface InputNumberProps extends Omit, OmitAttrs> { prefixCls?: string; min?: number; max?: number; value?: number; step?: number | string; defaultValue?: number; tabIndex?: number; onChange?: (value: number | string | undefined) => void; disabled?: boolean; readOnly?: boolean; size?: SizeType; formatter?: (value: number | string | undefined) => string; parser?: (displayValue: string | undefined) => number | string; decimalSeparator?: string; placeholder?: string; style?: React.CSSProperties; className?: string; name?: string; id?: string; precision?: number; onInput?: (text: string) => void; onPressEnter?: React.KeyboardEventHandler; onStep?: (value: number | string, info: { offset: number | string; type: 'up' | 'down'; }) => void; } declare const InputNumber: React.ForwardRefExoticComponent>; export default InputNumber;