export interface AxRect { x: number; y: number; width: number; height: number; } export interface AxSelectors { AXUniqueId?: string; AXLabel?: string; resourceId?: string; contentDesc?: string; text?: string; className?: string; } export interface AxElement { id: string; path: string; label: string; value: string; role: string; type: string; enabled: boolean; focused: boolean; frame: AxRect; selectors: AxSelectors; raw: Record; } export type AxPlatform = 'ios' | 'android'; export interface AxSnapshot { platform: AxPlatform; screen: { width: number; height: number; }; elements: AxElement[]; capturedAt: number; errors?: string[]; } export declare const AX_UNAVAILABLE_ERROR = "Accessibility unavailable on this device."; interface RawIosNode { AXLabel?: string | null; AXValue?: string | null; AXUniqueId?: string | null; frame?: { x: number; y: number; width: number; height: number; }; role?: string; role_description?: string; type?: string; subrole?: string | null; title?: string | null; enabled?: boolean; focused?: boolean; pid?: number; traits?: string[]; children?: RawIosNode[]; [key: string]: unknown; } export declare function normalizeIosTree(roots: RawIosNode[] | RawIosNode): AxSnapshot; interface RawAndroidParsedBounds { left: number; top: number; right: number; bottom: number; centerX: number; centerY: number; } interface RawAndroidNode { index?: string; text?: string; resourceId?: string; className?: string; packageName?: string; contentDesc?: string; clickable?: boolean; enabled?: boolean; focusable?: boolean; focused?: boolean; scrollable?: boolean; selected?: boolean; bounds?: string; parsedBounds?: RawAndroidParsedBounds; [key: string]: unknown; } export declare function normalizeAndroidTree(nodes: RawAndroidNode[]): AxSnapshot; export declare function clampAxFrameForScreen(frame: AxRect, screen: { width: number; height: number; }): AxRect | null; export declare function axElementsEqual(a: AxElement, b: AxElement): boolean; export declare function axSnapshotsEqual(a: AxSnapshot | null, b: AxSnapshot | null): boolean; export declare function axElementAtPoint(snapshot: AxSnapshot, x: number, y: number): AxElement | null; export declare function axElementSelectorExpression(el: AxElement, platform: AxPlatform): string | null; export declare function axElementRoleLabel(el: AxElement): string; export declare function axElementSummary(el: AxElement): string; export {};