using Minint.Core.Models; namespace Minint.Core.Services; public interface IPaletteService { /// /// Returns the index of in the document palette. /// If the color is not present, appends it and returns the new index. /// int EnsureColor(MinintDocument document, RgbaColor color); /// /// Finds index of an exact color match, or returns -1 if not found. /// int FindColor(MinintDocument document, RgbaColor color); /// /// Removes unused colors from the palette and remaps all layer pixel indices. /// Index 0 (transparent) is always preserved. /// void CompactPalette(MinintDocument document); }