export type LogoFit = "cover" | "contain"; /** The fit measured earlier for this exact `src`, if any. */ export declare function cachedLogoFit(src: string): LogoFit | undefined; /** The pixels the decision reads: RGBA of a `SAMPLE`×`SAMPLE` scaled copy. */ export type LogoPixels = { width: number; height: number; data: ArrayLike; }; /** * "cover" for a near-square image whose four edge midpoints are opaque, * otherwise "contain". `naturalWidth`/`naturalHeight` are the image's own * size; `pixels` is the image drawn into a square sample. */ export declare function logoFitFromPixels(naturalWidth: number, naturalHeight: number, pixels: LogoPixels): LogoFit; /** * Measures a loaded image and caches the result under `src`. Never throws: * an unreadable image (tainted canvas, no 2D context) is a mark. */ export declare function measureLogoFit(src: string, image: HTMLImageElement): LogoFit;