export type DominantColorOptions = { /** Side of the square the image is scaled down to before sampling. */ sampleSize?: number; /** Multiplier applied to each channel, darkening the colour slightly for contrast with the image. */ contrast?: number; }; /** * The dominant colour of a loaded image's corners as `rgb(r, g, b)`, weighted towards saturated pixels, for a letterbox * or backdrop behind it. `undefined` when the image is transparent at its edges or its pixels cannot be read (a * cross-origin image loaded without CORS taints the canvas), so callers fall back to their surface colour. */ export declare const sampleDominantColor: (img: HTMLImageElement, { sampleSize, contrast }?: DominantColorOptions) => string | undefined; //# sourceMappingURL=dominant-color.d.ts.map