import { type Look } from "./theme"; /** Pipeup's own words and surface in each look, as in the stylesheet (a test keeps the two equal). */ export declare const PAIRS: Record; export interface Appearance { /** The look Pipeup is showing. */ look: Look; /** Who chose it: the reviewer (the Theme row), the author (data-pipeup-theme) or what the page shows. */ source: "reviewer" | "author" | "page"; /** Contrast of Pipeup's words on its own surface, as the page's styles leave it; 3 is the least that reads. */ ratio: number; /** The page's styles on that change everything under it, as "property: value". */ effects: string[]; } /** * How well Pipeup's words read in `look` when the page fades to `opacity` over its canvas: both the words * and their surface are blended toward the canvas, which is what the eye gets. */ export declare function reading(look: Look, opacity: number, canvas: number[]): number; /** * Looks at what the page's own styles on do to Pipeup, which sits under it: how well Pipeup's words still read * when the page fades over its canvas, and every other effect (filters, blending, transforms, zoom). Pipeup * can't undo any of them from inside, so it reports them; switching look wouldn't help, since fading costs both looks * about the same. */ export declare function inspect(doc: Document, look: Look, source: Appearance["source"]): Appearance; /** The line for the console when the page's styles change how Pipeup looks, or null when they don't. */ export declare function warning(a: Appearance): string | null;