import * as React from 'react';
export declare const isValidColor: (color: string) => boolean;
export type ColorPickerProps = {
    /**
     * The starting color
     *
     */
    value?: string;
    /**
     * The input label
     *
     */
    label?: string;
    /**
     * (optional) The width of the picker
     * @default 294
     */
    width?: number;
    /**
     * (optional) The height of the picker
     *  @default 294
     */
    height?: number;
    /**
     * (optional) Allow empty string as a valid value.
     * If false, value should not be undefined nor empty string in order to behave as expected.
     * @default true
     */
    allowEmpty?: boolean;
    /**
     * (optional) Allow apha mode to activate rgba colors.
     * If false, color value would be always 6-hex.
     * @default true
     */
    allowAlpha?: boolean;
    /**
     * (optional) pass in custom preset options ['rgba()', 'rgba()', ..]
     * if is provided the default colors will be ignored
     * Default : ['rgba(0,0,0,1)', ...]
     */
    presets?: string[];
    /**
     * (optional) The z-index of the popover
     */
    popoverZIndex?: number;
    /**
     * (optional) The width of the input field
     */
    inputWidthStyle?: string;
    /**
     * (optional) The color format mode, 'hex' to force hex format in the "onChange" call. 'auto' to switch between hex and rgba depending on user input.
     * rgba will be used when alpha is allowed and the color has transparency even in hex mode.
     * @default 'auto'
     */
    mode?: ColorPickerMode;
    /**
     * A function to update color value
     */
    onChange: (value: string) => void;
};
export declare const colorPickerModes: readonly ["hex", "auto"];
type ColorPickerMode = (typeof colorPickerModes)[number];
export declare const colorPickerDefaultColors: string[];
/**
 * A component that displays color picker from react-best-gradient-color-picker.
 * By default, this components renders in a simple UI without gradients.
 * It can be customized by width and height.
 */
declare const ColorPicker: React.ForwardRefExoticComponent<ColorPickerProps & React.RefAttributes<HTMLInputElement>>;
export default ColorPicker;
