import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { ColorsModifiers } from '../../commons/new'; export interface ColorInfo { index?: number; tintColor?: string; /** * The color result with 6 characters (#FFFFFF and never #FFF) */ hexString: string; } interface Props { /** * The identifier value of the ColorSwatch in a ColorSwatch palette. * Must be different than other ColorSwatches in the same group */ value?: string; /** * The color of the ColorSwatch */ color?: string; /** * Is the initial state is selected */ selected?: boolean; /** * Is the initial state is unavailable */ unavailable?: boolean; /** * Is first render should be animated */ animated?: boolean; /** * onPress callback */ onPress?: (value: string, colorInfo: ColorInfo) => void; index?: number; style?: StyleProp; testID?: string; /** * Color swatch size */ size?: number; } export type ColorSwatchProps = Props & ColorsModifiers; export declare const SWATCH_MARGIN = 12; export declare const SWATCH_SIZE: number; declare const _default: React.ForwardRefExoticComponent<((Props & Partial>) | Omit) & React.RefAttributes>; export default _default;