import { type ParticleColor } from "@galacean/editor-ui"; import { type Color } from "@galacean/editor-ui"; export type GradientPropertyType = "constant" | "gradient" | "two-constant" | "two-gradient"; export type IEngineParticleColor = { color: { value: Color; time: number; }[]; alpha: { value: number; time: number; }[]; }; export type ConstantValue = { type: "constant"; label?: string; value: Color; }; export type TwoConstantValue = { type: "two-constant"; label?: string; value: [Color, Color]; }; export type GradientValue = { type: "gradient"; label?: string; value: IEngineParticleColor; }; export type GradientInsideValue = { type: "gradient"; label?: string; value: ParticleColor; }; export type TwoGradientValue = { type: "two-gradient"; label?: string; value: [IEngineParticleColor, IEngineParticleColor]; }; export type TwoGradientInsideValue = { type: "two-gradient"; label?: string; value: [ParticleColor, ParticleColor]; }; export type ParticleColorValue = ConstantValue | TwoConstantValue | GradientValue | TwoGradientValue; export type ParticleColorInsideValue = ConstantValue | TwoConstantValue | GradientInsideValue | TwoGradientInsideValue; export interface FormItemGradientProps { type?: GradientPropertyType; label: string; info?: string; labelFirst?: boolean; value: ParticleColorValue[]; onValueChange?: (value: FormItemGradientProps["value"], type: GradientPropertyType) => void; } export declare function FormItemGradient(props: FormItemGradientProps): import("react/jsx-runtime").JSX.Element;