import React, { PureComponent } from 'react'; import type { ImageStyle, StyleProp, TextStyle, ViewStyle } from 'react-native'; import type { SwatchItemType } from './Swatches'; export interface SwatchStyle { colorContainerStyle?: StyleProp; selectedColorContainerStyle?: StyleProp; disabledColorContainerStyle?: StyleProp; colorStyle?: StyleProp; selectedColorStyle?: StyleProp; disabledColorStyle?: StyleProp; textContainerStyle?: StyleProp; selectedTextContainerStyle?: StyleProp; disabledTextContainerStyle?: StyleProp; textStyle?: StyleProp; selectedTextStyle?: StyleProp; disabledTextStyle?: StyleProp; imageContainerStyle?: StyleProp; selectedImageContainerStyle?: StyleProp; disabledImageContainerStyle?: StyleProp; imageStyle?: StyleProp; selectedImageStyle?: StyleProp; disabledImageStyle?: StyleProp; } export interface SerializableSwatchProps extends SwatchItemType { index: number; selected: boolean; disabled?: boolean; } export declare type SerializaSwatchProps = SerializableSwatchProps; export interface SwatchProps extends SwatchStyle, SerializableSwatchProps { onSelect: (swatch: SwatchProps) => void; render?: (swatch: SwatchProps) => React.ReactNode; } export declare class Swatch extends PureComponent { private renderTouchable; private renderColor; private renderImage; private renderText; render(): React.ReactNode; }