import type { ImageSource } from './types'; export interface PaletteOptions { /** * The maximum number of colors to use in the palette(2 - 256) * * @default 256 */ maxColors?: number; /** * Statistics mode * * @default 'full' */ statsMode?: 'diff' | 'full'; /** * Premultiplied alpha * * @default false */ premultipliedAlpha?: boolean; /** * Tint * * @default [0xFF, 0xFF, 0xFF] */ tint?: Array; /** * Algorithm for color Image Quantization * * @default median-cut */ algorithm?: 'median-cut'; /** * Samples color data */ samples?: Array; }