import type { Rgb } from './color'; /** * A composited pixel with a lower contrast ratio than this against the background * is treated as blending into it. White on white is 1.0; #e6e6e6 on white is ~1.25. */ export declare const MIN_VISIBLE_CONTRAST = 1.25; /** * Share of pixels that must be at least partly see-through before the image * counts as transparent at all. Opaque images never need the backdrop. */ export declare const MIN_TRANSPARENT_SHARE = 0.05; /** * Share of the visible (alpha-weighted) image that must blend into the background * before the backdrop is shown. */ export declare const MIN_BLENDING_SHARE = 0.5; /** * Decide whether a transparent image would be (largely) invisible against `background`. * * `pixels` is RGBA data, as returned by `CanvasRenderingContext2D.getImageData()`. */ export declare function needsTransparencyBackdrop(pixels: ArrayLike, background: Rgb): boolean;