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[], defaultGradients: CustomGradient[], onGradientsChange: (gradients: CustomGradient[]) => void);
    generateId(name: string): string;
    getById(id: string): CustomGradient;
    getByName(sampleName: string): CustomGradient;
    newName(name?: string): string;
    isDefault(id: string): boolean;
    getHelperText({ name, allowNoname, gradientId }: {
        name: any;
        allowNoname: any;
        gradientId: any;
    }): {
        error: boolean;
        helperText: string;
    };
    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