import type { Gradient as SchemaGradient, Gradient_Stop } from '@wix/ricos/next/schema';
/**
 * Gradient type for use across all plugins.
 * Supports both linear and radial gradients with multiple color stops.
 */
export type Gradient = SchemaGradient;
/**
 * A single color stop in a gradient.
 */
export type GradientStop = Gradient_Stop;
/**
 * Function for updating the colors array.
 */
export type SetColors = (colors: string[]) => void;
/**
 * Function for updating the gradients array.
 */
export type SetGradients = (gradients: Gradient[]) => void;
/**
 * Unified color manager for sharing custom colors and gradients across all plugins.
 *
 * @example
 * ```typescript
 * const [colors, setColors] = useState(['#FFDFBA', '#FFFFBA']);
 * const [gradients, setGradients] = useState([]);
 *
 * <RicosEditor colorManager={{ colors, setColors, gradients, setGradients }} />
 * ```
 */
export type ColorPaletteManager = {
    /**
     * Array of custom colors (hex values).
     */
    colors: string[];
    /**
     * Function for updating colors.
     */
    setColors: SetColors;
    /**
     * Array of custom gradients.
     */
    gradients?: Gradient[];
    /**
     * Function for updating gradients.
     */
    setGradients?: SetGradients;
};
//# sourceMappingURL=color-palette-types.d.ts.map