import { ReactNode } from 'react'; import { PopperProps } from '../_utils/usePopper'; export declare const ColorTypes: ["HEX", "HSB", "RGB", "HSL", "themeColor"]; export declare type ColorType = typeof ColorTypes[number]; export interface IColorTypesObj { type: ColorType; value: string; } export interface IColorPickerInputRef { dom: HTMLDivElement | null; } export declare const BorderTypes: ["underline", "bordered"]; export declare type BorderType = typeof BorderTypes[number]; export interface IInnerFormat { show: Exclude[]; default: Exclude; } interface IInnerColorPickerProps { borderType: BorderType; className: string; children: ReactNode; defaultValue: string; defaultOpen: boolean; disabled: boolean; functionalColorName: string; functionalColor: string; format: Exclude; historicalColor: string[]; panelFormatConfig: IInnerFormat; placeholder: string; presetColor: string[]; pure: boolean; style: React.CSSProperties; switchName: { name: string; internationalName?: string; }; showAlphaInput: boolean; showClear: boolean; showSwitch: boolean; showColorTransfer: boolean; showPresetColor: boolean; showArrow: boolean; showColorPickerBox: { showBox: boolean; showHue: boolean; showOpacity: boolean; }; visible: boolean; value: string; suffixIcon: (rgbColor: string, dom: ReactNode) => React.ReactNode; prefixIcon: (rgbColor: string, dom: ReactNode) => React.ReactNode; onChange: (inputValue: string, formatColorArr: Array) => void; onVisibleChange: (visible: boolean) => void; } export interface IColorPickerProps extends PopperProps, Partial { } export interface IColorPickerPanelProps { alpha: number; alphaNoVerifyVal: string; clickedPresetColorIndex?: number; clickedHistoricalColorIndex?: number; colTypeArr: Array; correctColorValue: string; currentColorType: IColorTypesObj['type']; inputCorrectColorValue: string; functionalColor?: string; functionalColorName: string; switchName: { name: string; internationalName?: string; }; inputRef: any; isFollow: boolean; panelFormatConfig: IInnerFormat; format: Exclude; presetColor?: string[]; historicalColor?: string[]; showAlphaInput?: boolean; showSwitch?: boolean; showClear?: boolean; showColorTransfer?: boolean; showPresetColor?: boolean; showColorPickerBox?: { showBox?: boolean; showHue?: boolean; showOpacity?: boolean; }; showColorPickerPanel: boolean; value: string; visible: boolean; showPanel: boolean; scrollHidden: boolean; setCurrentColorType: (currentColorType: IColorTypesObj['type']) => void; setColTypeArr: (colTypeArr: Array) => void; setClickedPresetColorIndex: (clickedColorIndex: number) => void; setClickedHistoricalColorIndex: (clickedColorIndex: number) => void; setClickColorIndex: (value: number | string) => void; setIsFollow: (isFollow: boolean) => void; setAlphaNoVerifyVal: (NoVerifyVal: string) => void; setAlpha: (alpha: number) => void; setCorrectColorValue: (colorValue: string) => void; setInputCorrectColorValue: (colorValue: string) => void; setInputColorValue: (colorValue: string) => void; setShowPanel: (showPanel: boolean) => void; onChange?: (inputValue: string, formatColorArr: Array) => void; onVisibleChange?: (visible: boolean) => void; } export {};