import type { CustomGradient, GradientFillStop } from '~/types';
/**
 * An utility class used to manage Custom Gradients
 */
export declare class GradientList {
    gradients: CustomGradient[];
    defaultGradients: CustomGradient[];
    onGradientsChange: (gradients: CustomGradient[]) => void;
    constructor(gradients: CustomGradient[] | undefined, defaultGradients: CustomGradient[] | undefined, onGradientsChange: (gradients: CustomGradient[]) => void);
    generateId(name: string): string;
    getById(id: string): CustomGradient | undefined;
    getByName(sampleName: string): CustomGradient | undefined;
    newName(name?: string): string;
    isDefault(id: string): boolean;
    getHelperText({ name, allowNoname, gradientId }: {
        name: string;
        allowNoname: boolean;
        gradientId: string;
    }): {
        error: boolean;
        helperText: string;
    } | null;
    add(name: string, gradientStops: GradientFillStop[]): {
        id: string;
        name: string;
        gradientStops: GradientFillStop[];
    };
    remove(id: string): CustomGradient[];
    update(id: string, update: Partial<CustomGradient>): CustomGradient[];
}
//# sourceMappingURL=GradientList.d.ts.map