import type { RawAria } from '@variance-authority/core/format'; export declare function ariaOf(element: Element, view?: Window): RawAria; export declare function roleOf(element: Element): string | null; /** * Accessible name, following accname's precedence for the cases covered. * * Order: `aria-labelledby`, `aria-label`, a native label host, then content. */ export declare function accessibleName(element: Element, view?: Window): string | null; /** * Accessible description: `aria-describedby`, then `title`. * * The narrower half of accname, and the half that had nowhere to go before this * existed. `ATTRIBUTE_ALLOWLIST` drops every `aria-*` attribute because they are * "resolved into role/name/state" — which is true of `aria-label` and * `aria-selected` and was never true of `aria-describedby`. A form field whose * error message was deleted kept its role, its name, its styles and its rect, * lost its description, and compared **equal** on every tier this project has. * * A reference that resolves to nothing yields `null` rather than an empty * string, so the delta reads as a description that vanished. That is the whole * point: the dangling reference *is* the regression, and the two must not * normalize onto each other. * * `title` is consulted second and only when it did not already become the name, * because a `title` on an unnamed element is its name, not its description. */ export declare function accessibleDescription(element: Element, view?: Window): string | null; /** * States, from both ARIA attributes and their native equivalents. * * A `` and an `