import { type ReactNode } from 'react'; import { type FieldBoxSize } from './fieldBox.js'; export interface ColorInputProps { /** A CSS color the theme reads: a hex, `oklch()` or `color(display-p3 …)`. */ value: string; /** Called with each color that parses, as typed or as picked: a picked one is a hex. */ onValueChange: (color: string) => void; /** Without a label the row stands alone; name it with `aria-label`. */ label?: ReactNode; /** Beside the label and outside it, so it stays out of the field's name. */ hint?: ReactNode; /** Buttons at the far end of the label's row that act on the color, as Field's `actions`. */ actions?: ReactNode; /** Help under the field. */ description?: ReactNode; error?: ReactNode; /** `sm` for dense places such as toolbars and table cells, `lg` for a form that stands alone, * such as sign-in. */ size?: FieldBoxSize | undefined; /** The hex field's id, which a label names. */ id?: string | undefined; /** Submits the color under this name with a form. */ name?: string | undefined; disabled?: boolean | undefined; required?: boolean | undefined; 'aria-label'?: string | undefined; 'aria-labelledby'?: string | undefined; 'aria-describedby'?: string | undefined; 'aria-invalid'?: boolean | undefined; 'aria-required'?: boolean | undefined; /** On the row that holds the swatch and the hex field: its width or margin. */ className?: string | undefined; } /** * A color as a swatch that opens the system picker, beside a field its hex can be typed or pasted * in. A half-typed color stays in the field, marked invalid, until it parses; leaving the field * puts back the last color that did. */ export declare function ColorInput({ value, onValueChange, label, hint, actions, description, error, size, id, name, disabled, required, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-invalid': ariaInvalid, 'aria-required': ariaRequired, className, }: ColorInputProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable | Promise | import("react").ReactElement> | import("react").ReactPortal | null | undefined> | null | undefined;