import React, { ReactElement } from "react"; import { ModalProps } from "../modal"; type Children = string | string[] | ReactElement | ReactElement[]; type ColorPickerChildren = (props: ColorPickerChildrenProps) => Children; interface ColorPickerModalProps extends Pick { okayButtonText: string; } export interface ColorPickerProps { value?: string; onChange: (value?: string) => void; children: Children | ColorPickerChildren; modal?: ColorPickerModalProps; } interface ColorPickerChildrenProps { color?: string; onChange: (value?: string) => void; pickColor: () => void; clearColor: () => void; hasColor: boolean; } declare const ColorPicker: (props: ColorPickerProps) => React.JSX.Element; export default ColorPicker;