export interface CheckRect { x: number; y: number; width: number; height: number; } export interface PlaceholderHit { label: string; token: string; kind: "js-template" | "mustache" | "object" | "invalid-date" | "nan" | "empty-binding"; snippet: string; rect: CheckRect; } export interface PlaceholderResult { rule: "placeholder"; found: boolean; outcome: "pass" | "fail"; scanned: number; truncated: boolean; hits: PlaceholderHit[]; } export interface ImageHit { label: string; src: string; reason: "missing" | "loading" | "stretched"; naturalWidth: number; naturalHeight: number; renderedWidth: number; renderedHeight: number; objectFit: string; rect: CheckRect; } export interface ImageHealthResult { rule: "image"; found: boolean; outcome: "pass" | "fail"; scanned: number; truncated: boolean; issues: ImageHit[]; } export interface TruncationHit { label: string; axis: "x" | "y"; how: "ellipsis" | "line-clamp"; overflowPx: number; snippet: string; rect: CheckRect; } export interface TruncationResult { rule: "truncation"; found: boolean; outcome: "pass" | "fail"; scanned: number; truncated: boolean; hits: TruncationHit[]; } export interface ContrastHit { label: string; ratio: number; required: number; color: string; background: string; largeText: boolean; snippet: string; outcome: "fail" | "unknown"; rect: CheckRect; } export interface ContrastResult { rule: "contrast"; found: boolean; outcome: "pass" | "fail" | "unknown"; scanned: number; truncated: boolean; hits: ContrastHit[]; } export interface ContentChecksRequest { placeholder: { scope: string | null; } | null; image: { scope: string | null; tolerance: number; } | null; truncation: { scope: string | null; tolerance: number; } | null; contrast: { scope: string | null; } | null; } export interface ContentChecksResult { placeholder?: PlaceholderResult; image?: ImageHealthResult; truncation?: TruncationResult; contrast?: ContrastResult; } export declare function buildContentChecks(): (request: ContentChecksRequest) => ContentChecksResult; export interface ContentAnnotationBox { rect: CheckRect; label: string; color: string; } export declare function buildContentAnnotateScript(): (args: { boxes: ContentAnnotationBox[]; }) => void; export declare function buildClearContentAnnotationsScript(): () => void; //# sourceMappingURL=content-checks.d.ts.map