import React, { PureComponent } from 'react'; import type { ImageSourcePropType, ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native'; export interface SerializableStepperProps { format?: 'horizontalCenter' | 'horizontalLeft' | 'vertical'; stepperStyle?: ViewStyle; count?: number; countUpperLimit?: number; countLowerLimit?: number; editable?: boolean; prefix?: string; counterStyle?: TextStyle; prefixStyle?: TextStyle; qtyStyle?: TextStyle; decreaseButtonImage?: ImageSourcePropType; increaseButtonImage?: ImageSourcePropType; removeButtonImage?: ImageSourcePropType; qtyChangeButtonStyle?: ViewStyle; qtyChangeImageStyle?: ImageStyle; } export interface StepperProps extends Omit { onChange?: (count: number) => void; stepperStyle?: StyleProp; counterStyle?: StyleProp; renderText?: (text: string, style: StyleProp, value: number) => React.ReactNode; onDecreaseButtonPress: (count: number) => void; renderDecreaseButton?: (count: number, handlePress: () => void) => React.ReactNode; onIncreaseButtonPress: (count: number) => void; renderIncreaseButton?: (count: number, handlePress: () => void) => React.ReactNode; qtyChangeButtonStyle?: StyleProp; qtyChangeImageStyle?: StyleProp; } export interface StepperState { count: number; } export declare class Stepper extends PureComponent { static defaultProps: Partial; static getDerivedStateFromProps(props: StepperProps, state: StepperState): { count: number; } | null; constructor(props: StepperProps); private readonly kButtonTouchabilityOpacity; private readonly handleDecreasePress; private readonly handleIncreasePress; private readonly renderDecreaseButton; private readonly renderIncreaseButton; private readonly renderHorizontalCenter; private readonly renderHorizontalLeft; private readonly renderVertical; private readonly renderText; private readonly onTextChange; render(): JSX.Element; }