/** * Accessibility tree crawler — extract landmark, heading, and ARIA metadata from crawled pages. * * Captures: landmarks with interactive counts, heading hierarchy with violation detection, * interactive elements missing accessible names, live regions, and skip-link presence. * * This data feeds ZeTa's accessibility test generator to surface WCAG 2.1 Level A/AA * failures (missing names, heading skips, absent skip links, unlabeled live regions). */ export interface LandmarkInfo { role: string; label: string; elementId: string; interactiveCount: number; } export interface HeadingInfo { level: number; text: string; elementId: string; } export interface MissingNameEl { tagName: string; role: string; elementId: string; htmlSnippet: string; } export interface LiveRegionInfo { role: string; ariaLive: string; ariaAtomic: string; currentText: string; } export interface AccessibilityTreeResult { landmarkCount: number; landmarks: LandmarkInfo[]; headings: HeadingInfo[]; headingHierarchyViolations: string[]; missingNameElements: MissingNameEl[]; missingNameCount: number; liveRegions: LiveRegionInfo[]; totalInteractiveCount: number; hasSkipLink: boolean; } export declare function crawlAccessibilityTree(page: any): Promise;