import type { RoleRefs } from '../types.js'; export declare const INTERACTIVE_ROLES: Set; export declare const CONTENT_ROLES: Set; export declare const STRUCTURAL_ROLES: Set; export interface SnapshotBuildOptions { interactive?: boolean; compact?: boolean; maxDepth?: number; } /** * Build a role snapshot from Playwright's ariaSnapshot() output. * Assigns ref IDs (e1, e2, ...) to interactive/content elements. */ export declare function buildRoleSnapshotFromAriaSnapshot(ariaSnapshot: string, options?: SnapshotBuildOptions): { snapshot: string; refs: RoleRefs; }; /** * Build a role snapshot from Playwright's AI snapshot output. * Preserves Playwright's own aria-ref ids (e.g. ref=e13). */ export declare function buildRoleSnapshotFromAiSnapshot(aiSnapshot: string, options?: SnapshotBuildOptions): { snapshot: string; refs: RoleRefs; }; export declare function getRoleSnapshotStats(snapshot: string, refs: RoleRefs): { lines: number; chars: number; refs: number; interactive: number; };