import type { Page } from 'playwright'; import type { ThemeTokens } from '../types.ts'; export declare const TYPOGRAPHY_SCENARIO = "typography-v1-2026-10-28"; export type TypeObservation = { selector: string; text: string; role: string; variant?: string; size: number; renderedSize: number; weight: string; lineHeight: string; tracking: string; family: string; }; export type TypographyCapture = { path: string; width: number; state: string; scenario: string; observations: TypeObservation[]; failures: string[]; }; /** A serialized callback keeps browser DOM types out of the Worker/compiler TS program. */ export declare function captureTypography(page: Page, theme: Partial, path: string, width: number, state: string): Promise; export declare function typographyConsistencyFailures(captures: TypographyCapture[]): string[]; export declare function typographyEvidenceFailures(report: { scenario: string; captures: TypographyCapture[]; failures: string[]; } | undefined, routes: string[]): string[]; /** Exercise ordinary local disclosure states without submitting forms or following links. */ export declare function captureTypographyStates(page: Page, theme: Partial, path: string, width: number): Promise;