import { CustomGradient } from './CustomGradient';
export interface GradientStorage {
    /**
     * A manually set flag that shows that gradient editor is open in the component
     */
    isEditing: boolean;
    /**
     * Is true when there are pending API requests
     */
    isLoading: boolean;
    /**
     * Allows to set isBusy state while editing gradient in the component
     * @param isEditing
     */
    setIsEditing(isEditing: boolean): void;
    /**
     * A list of custom gradients.
     * NOTE: the built-in gradient are NOT included here.
     */
    gradients: CustomGradient[];
    /**
     * A custom gradients setter. Also sets isEditing to false
     */
    setGradients(gradients: CustomGradient[]): void | Promise<void>;
    find(id: string): CustomGradient | undefined;
}
export type GradientStorageConfig = {
    userId: number | string;
    storageKey?: string;
    onFetchError?: (error: any) => void;
    onUpdateError?: (error: any) => void;
};
//# sourceMappingURL=GradientStorage.d.ts.map