/** * responsive.ts — audit_responsive_visibility implementation * Renders a URL at multiple breakpoints and flags content elements * that are visible on desktop but hidden on mobile. */ import { CaptureUnavailableError } from "./capture.js"; export { CaptureUnavailableError }; export type VisibilityRow = { selector: string; hidingClass: string | null; isContent: boolean; isDecorative: boolean; visibleAt: { breakpoint: number; visible: boolean; }[]; mobileVisible: boolean; desktopVisible: boolean; category: "intentional" | "likely-oversight"; }; export type ResponsiveVisibilityResult = { url: string; breakpoints: number[]; flagged: VisibilityRow[]; flagged_count: number; likely_oversight_count: number; warnings: string[]; }; export declare function captureResponsiveVisibility(url: string, breakpoints?: number[], opts?: { viewportHeight?: number; timeoutMs?: number; }): Promise;