import type { Page } from "playwright"; import type { ConsentModal, ConsentButtonType } from "../types.js"; import type { ScanOptions } from "../types.js"; /** * Find a privacy policy link within a given scope (modal selector) or the full page. * Returns the absolute URL of the first matching link, or null. */ export declare function findPrivacyPolicyUrl(page: Page, scopeSelector?: string): Promise; /** * Classify a consent button label for a given page language. * `lang` should be the BCP 47 primary subtag (e.g. "de", "fr") read from * , or null when the language is undetermined. */ export declare function classifyButtonText(text: string, lang: string | null): ConsentButtonType; export declare function detectConsentModal(page: Page, options: ScanOptions): Promise; /** * Basic contrast ratio computation from RGB strings. * Returns null if colors cannot be parsed. */ export declare function computeContrastRatio(fg: string, bg: string): number | null; export declare function parseRgb(color: string): [number, number, number] | null; export declare function relativeLuminance([r, g, b]: [number, number, number]): number; //# sourceMappingURL=consent-modal.d.ts.map