import React, { FC, ComponentType, ReactElement, ReactNode } from 'react'; import * as react_jsx_runtime from 'react/jsx-runtime'; interface HSL { h: number; s: number; l: number; a?: number; } interface RGB { r: number; g: number; b: number; a?: number; } interface HSV { h: number; s: number; v: number; a?: number; } type Color = string | RGB | HSL | HSV; interface ColorState { hsl: HSL; hex: string; rgb: RGB; hsv: HSV; oldHue: number; source?: string; } interface AlphaPickerProps { rgb: RGB; hsl: HSL; width?: string | number; height?: string | number; onChange?: (color: any, e: any) => void; direction?: 'horizontal' | 'vertical'; /** Legacy styles prop */ style?: any; renderers?: any; pointer?: FC; className?: string; } declare const _default$d: React.FC & ColorWrapProps>; interface BlockProps { onChange?: (color: any, e: any) => void; onSwatchHover?: (color: string, e: React.MouseEvent) => void; hex: string; colors?: string[]; width?: string | number; triangle?: 'top' | 'hide'; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$c: React.FC & ColorWrapProps>; interface CircleProps { width?: string | number; onChange?: (color: any, e: any) => void; onSwatchHover?: (color: string, e: React.MouseEvent) => void; colors?: string[]; hex: string; circleSize?: number; circleSpacing?: number; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$b: React.FC & ColorWrapProps>; interface ChromeProps { width?: string | number; onChange?: (color: any, e: any) => void; disableAlpha?: boolean; rgb: RGB; hsl: HSL; hsv: HSV; hex: string; renderers?: any; styles?: any; className?: string; style?: React.CSSProperties; defaultView?: 'hex' | 'rgb' | 'hsl'; } declare const _default$a: React.FC & ColorWrapProps>; interface CompactProps { onChange?: (color: any, e: any) => void; onSwatchHover?: (color: string, e: React.MouseEvent) => void; colors?: string[]; hex: string; rgb: RGB; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$9: React.FC & ColorWrapProps>; interface GithubProps { width?: string | number; colors?: string[]; onChange?: (color: any, e: any) => void; onSwatchHover?: (color: string, e: React.MouseEvent) => void; triangle?: 'hide' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$8: React.FC & ColorWrapProps>; interface HuePickerProps { width?: string | number; height?: string | number; onChange?: (color: any) => void; hsl: HSL; direction?: 'horizontal' | 'vertical'; pointer?: FC; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$7: React.FC & ColorWrapProps>; interface MaterialProps { onChange?: (color: any, e: any) => void; hex: string; rgb: RGB; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$6: React.FC & ColorWrapProps>; interface PhotoshopProps { header?: string; styles?: any; className?: string; hex: string; hsl: HSL; hsv: HSV; rgb: RGB; onChange?: (color: any, e: any) => void; onAccept?: (color: any, e: React.MouseEvent) => void; onCancel?: (color: any, e: React.MouseEvent) => void; style?: React.CSSProperties; } declare const _default$5: React.FC & ColorWrapProps>; /** * Props for the SketchColor picker component. */ interface SketchProps { /** The width of the picker component */ width?: string | number; /** The currently selected color represented as RGB */ rgb: RGB; /** The currently selected color represented as a Hex string */ hex: string; /** The currently selected color represented as HSV */ hsv: HSV; /** The currently selected color represented as HSL */ hsl: HSL; /** Callback fired when the color changes */ onChange?: (color: any, e: any) => void; /** Callback fired when a preset swatch is hovered */ onSwatchHover?: (color: any, e: React.MouseEvent) => void; /** If true, the alpha channel slider is hidden */ disableAlpha?: boolean; /** A list of hex string preset colors to display at the bottom */ presetColors?: (string | { color: string; title?: string; })[]; /** Custom renderers for internal sub-components */ renderers?: any; /** Custom styles to override the default aesthetic */ styles?: any; /** Optional classname applied to the root element */ className?: string; /** Optional style applied to the root element */ style?: React.CSSProperties; } declare const _default$4: React.FC & ColorWrapProps>; interface SliderProps { hsl: HSL; onChange?: (color: any, e: any) => void; pointer?: FC; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$3: React.FC & ColorWrapProps>; interface SwatchesProps { width?: string | number; height?: string | number; onChange?: (color: any, e: any) => void; onSwatchHover?: (color: string, e: React.MouseEvent) => void; colors?: string[][]; hex: string; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$2: React.FC & ColorWrapProps>; interface TwitterProps { onChange?: (color: any, e: any) => void; onSwatchHover?: (color: string, e: React.MouseEvent) => void; hex: string; colors?: string[]; width?: string | number; triangle?: 'hide' | 'top-left' | 'top-right'; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default$1: React.FC & ColorWrapProps>; interface GoogleProps { width?: string | number; onChange?: (color: any, e: any) => void; rgb: RGB; hsl: HSL; hsv: HSV; hex: string; header?: string; styles?: any; className?: string; style?: React.CSSProperties; } declare const _default: React.FC & ColorWrapProps>; interface ColorWrapProps { color?: Color; onChange?: (color: ColorState, event: React.ChangeEvent | MouseEvent | TouchEvent) => void; onChangeComplete?: (color: ColorState, event: React.ChangeEvent | MouseEvent | TouchEvent) => void; onSwatchHover?: (color: ColorState, event: MouseEvent) => void; style?: React.CSSProperties; className?: string; } declare const ColorWrap:

(Picker: ComponentType

) => React.FC & ColorWrapProps>; interface AlphaProps { hsl: HSL; rgb: RGB; direction?: 'horizontal' | 'vertical'; radius?: string | number; shadow?: string; onChange?: (color: any, e: React.MouseEvent | React.TouchEvent) => void; pointer?: FC; renderers?: any; style?: { radius?: string | number; shadow?: string; }; a?: number; } declare const Alpha: FC; interface CheckboardProps { white?: string; grey?: string; size?: number; renderers?: { canvas?: any; }; borderRadius?: string | number; boxShadow?: string; children?: ReactElement; } declare const Checkboard: FC; interface EditableInputProps { label?: string; value: string | number; onChange?: (value: any, e: any) => void; style?: { wrap?: React.CSSProperties; input?: React.CSSProperties; label?: React.CSSProperties; }; placeholder?: string; dragLabel?: boolean; dragMax?: number; hideLabel?: boolean; arrowOffset?: number; } declare const EditableInput: FC; interface HueProps { hsl: HSL; direction?: 'horizontal' | 'vertical'; radius?: string | number; shadow?: string; onChange?: (color: any, e: any) => void; pointer?: FC; style?: { radius?: string | number; shadow?: string; }; } declare const Hue: FC; interface RaisedProps { zDepth?: 0 | 1 | 2 | 3 | 4 | 5; radius?: string | number; background?: string; children?: ReactNode; styles?: { wrap?: React.CSSProperties; content?: React.CSSProperties; bg?: React.CSSProperties; }; } declare const Raised: FC; interface SaturationProps { hsl: HSL; hsv: HSV; onChange?: (color: any, e: any) => void; pointer?: FC; radius?: string | number; shadow?: string; style?: { color?: React.CSSProperties; white?: React.CSSProperties; black?: React.CSSProperties; pointer?: React.CSSProperties; circle?: React.CSSProperties; radius?: string | number; shadow?: string; }; } declare const Saturation: FC; interface SwatchProps { color: string; style?: React.CSSProperties; onClick?: (color: string, e: React.MouseEvent | React.KeyboardEvent) => void; onHover?: (color: string, e: React.MouseEvent) => void; title?: string; children?: ReactNode; focus?: boolean; focusStyle?: React.CSSProperties; } declare const Swatch: (props: SwatchProps) => react_jsx_runtime.JSX.Element; export { Alpha, _default$d as AlphaPicker, type AlphaPickerProps, type AlphaProps, _default$c as BlockPicker, type BlockProps, Checkboard, type CheckboardProps, _default$a as ChromePicker, type ChromeProps, _default$b as CirclePicker, type CircleProps, type Color, type ColorState, type ColorWrapProps, _default$9 as CompactPicker, type CompactProps, ColorWrap as CustomPicker, EditableInput, type EditableInputProps, _default$8 as GithubPicker, type GithubProps, _default as GooglePicker, type GoogleProps, type HSL, type HSV, Hue, _default$7 as HuePicker, type HuePickerProps, type HueProps, _default$6 as MaterialPicker, type MaterialProps, _default$5 as PhotoshopPicker, type PhotoshopProps, type RGB, Raised, type RaisedProps, Saturation, type SaturationProps, _default$4 as SketchPicker, type SketchProps, _default$3 as SliderPicker, type SliderProps, Swatch, type SwatchProps, _default$2 as SwatchesPicker, type SwatchesProps, _default$1 as TwitterPicker, type TwitterProps, _default$a as default };