///
import * as React from 'react';
import { AbstractInputBaseProps, RenderInputProps } from '../AbstractInput/AbstractInput';
import ValidationState from '../../enums/ValidationState';
export { ValidationState };
export interface ChangeEvent {
name: string;
value: string | null;
}
export interface ColorInputExtraProps {
/**
* Set this to true to remove the alpha slider and options
*/
disableAlpha?: boolean;
/**
* A name, included in the callback
*/
name: string;
/**
* The color in hex format
*/
value: string | null;
/**
* A callback called on change with `{name: string, value: string}`
*/
onChange: (e: {
name: string;
value: string | null;
}) => void;
}
export declare type ColorInputProps = ColorInputExtraProps & AbstractInputBaseProps;
export declare class ColorInput extends React.Component {
_lastToggle: number;
state: {
displayColorPicker: boolean;
};
_onClick: (e: any) => void;
_onHide: (e: any) => void;
_onChange: (color: {
hex: string;
}) => void;
_renderInput: ({focused, labelMode, validationMessage, validationState, onFocus, onBlur}: RenderInputProps) => JSX.Element;
render(): JSX.Element;
}
export default ColorInput;