import * as React from 'react' import { StyleProp, TextStyle, ViewStyle } from 'react-native' import { CalculatorCommonProps } from './interface' export interface CalculatorInputProps extends CalculatorCommonProps { /** * Called asynchronously before changes applied. Resolve with true if changes are accepted. */ onBeforeChangeAsync?: (value: number, text: string) => Promise /** * Called before changes applied. Return true if changes are accepted. */ onBeforeChange?: (value: number, text: string) => boolean /** * Value change event. */ onChange?: (value: number, text: string) => void /** * Modal animation type. */ modalAnimationType?: 'none' | 'slide' | 'fade' /** * Style of modal backdrop. */ modalBackdropStyle?: StyleProp /** * Text field container style. */ fieldContainerStyle?: StyleProp /** * Text style. */ fieldTextStyle?: StyleProp /** * Prefix text. */ prefix?: string /** * Suffix text. */ suffix?: string /** * Disable editor. */ disabled?: boolean /** * Text field container style. */ fieldDisabledContainerStyle?: StyleProp /** * Text style. */ fieldDisabledTextStyle?: StyleProp } interface State { modalVisible: boolean value: number text: string disabled: boolean } export declare class CalculatorInput extends React.Component< CalculatorInputProps, State > { static defaultProps: Partial static getDerivedStateFromProps( props: CalculatorInputProps, state: State ): Partial | null constructor(props: CalculatorInputProps) render(): JSX.Element renderTextField(): JSX.Element renderCalulatorModal(): JSX.Element calculatorModalToggle(): void } export {}