import { FormHelperTextProps, FormLabelProps } from "../../types/mui.js";
import { ReactNode } from "react";
import * as react_jsx_runtime0 from "react/jsx-runtime";
import { Control, FieldValues, Path, RegisterOptions } from "react-hook-form";
import { IColor } from "react-color-palette";
//#region src/misc/color-picker/index.d.ts
type ColorFormat = keyof IColor;
type RHFColorPickerProps<T extends FieldValues> = {
  fieldName: Path<T>;
  control: Control<T>;
  registerOptions?: RegisterOptions<T, Path<T>>;
  value?: string;
  valueKey?: ColorFormat;
  defaultColor?: string;
  excludeAlpha?: boolean;
  required?: boolean;
  height?: number;
  hideAlpha?: boolean;
  hideInput?: (keyof IColor)[] | boolean;
  onValueChange?: (color: IColor) => void;
  disabled?: boolean;
  label?: ReactNode;
  showLabelAboveFormField?: boolean;
  formLabelProps?: FormLabelProps;
  helperText?: ReactNode;
  errorMessage?: ReactNode;
  hideErrorMessage?: boolean;
  formHelperTextProps?: FormHelperTextProps;
};
declare const RHFColorPicker: <T extends FieldValues>({
  fieldName,
  control,
  registerOptions,
  value,
  valueKey,
  defaultColor,
  excludeAlpha,
  required,
  hideInput,
  onValueChange,
  disabled: muiDisabled,
  label,
  showLabelAboveFormField,
  formLabelProps,
  helperText,
  errorMessage,
  hideErrorMessage,
  formHelperTextProps,
  height,
  ...otherProps
}: RHFColorPickerProps<T>) => react_jsx_runtime0.JSX.Element;
//#endregion
export { RHFColorPickerProps, RHFColorPicker as default };