import { BareProps, BitLength, I18nProps } from './types'; import BN from 'bn.js'; import React from 'react'; declare type Props = BareProps & I18nProps & { autoFocus?: boolean; bitLength?: BitLength; defaultValue?: BN | string; help?: React.ReactNode; isDisabled?: boolean; isError?: boolean; isSi?: boolean; isDecimal?: boolean; label?: any; maxLength?: number; maxValue?: BN; onChange?: (value?: BN) => void; onEnter?: () => void; placeholder?: string; value?: BN | string; withEllipsis?: boolean; withLabel?: boolean; withMax?: boolean; }; declare type State = { isPreKeyDown: boolean; isValid: boolean; siOptions: Array<{ value: string; text: string; }>; siUnit: string; value: string; valueBN: BN; }; declare class InputNumber extends React.PureComponent { constructor(props: Props); static units: string; static setUnit(units?: string): void; static getDerivedStateFromProps({ isDisabled, isSi, defaultValue }: Props): Partial | null; render(): JSX.Element; private renderSiDropdown; private renderMaxButton; private maxValue; private isValidBitLength; private isValidNumber; private regex; private onChange; private onKeyDown; private onKeyUp; private onPaste; private selectSiUnit; private setToMaxValue; private inputValueToBn; private bnToInputValue; private getSiPowers; } export { InputNumber }; declare const _default: React.ComponentType>; export default _default;