import * as sanity8 from "sanity"; import { ObjectDefinition, ObjectInputProps, ObjectOptions, ObjectSchemaType } from "sanity"; import { Color, HSLColor, HSVColor, RGBColor } from "react-color"; import * as react0 from "react"; interface ColorValue { hex: string; hsl: HSLColor; hsv: HSVColor; rgb: RGBColor; } interface ColorOptions extends Omit { disableAlpha?: boolean; colorList?: Array; } type ColorSchemaType = Omit & { options?: ColorOptions; }; type ColorInputProps = ObjectInputProps; declare const colorTypeName = "color"; /** * @public */ interface ColorDefinition extends Omit { type: typeof colorTypeName; options?: ColorOptions; } declare module 'sanity' { interface IntrinsicDefinitions { color: ColorDefinition; } } declare const color: { type: "object"; name: "color"; } & Omit & { preview?: sanity8.PreviewConfig<{ title: string; alpha: string; hex: string; hsl: string; }, Record<"title" | "hex" | "alpha" | "hsl", any>> | undefined; }; declare const hslaColor: { type: "object"; name: "hslaColor"; } & Omit & { preview?: sanity8.PreviewConfig, Record> | undefined; }; declare const hsvaColor: { type: "object"; name: "hsvaColor"; } & Omit & { preview?: sanity8.PreviewConfig, Record> | undefined; }; declare const rgbaColor: { type: "object"; name: "rgbaColor"; } & Omit & { preview?: sanity8.PreviewConfig, Record> | undefined; }; declare function ColorInput$1(props: ObjectInputProps): React.JSX.Element; declare const ColorInput: react0.LazyExoticComponent; declare const colorInput: sanity8.Plugin; export { type ColorDefinition, ColorInput, type ColorInputProps, type ColorOptions, type ColorSchemaType, type ColorValue, color, colorInput, hslaColor, hsvaColor, rgbaColor }; //# sourceMappingURL=index.d.ts.map