/** * Accessible name and description computation. * Implements the W3C Accessible Name and Description Computation spec. * https://www.w3.org/TR/accname-1.2/ * * Based on Playwright's implementation patterns. */ /** * Options for accessible name computation. */ export interface NameComputationOptions { /** Include content from aria-hidden elements (for aria-labelledby) */ includeHidden?: boolean; } /** * Get the accessible name of an element following W3C spec. * Priority: aria-labelledby > aria-label > native label > title > alt > placeholder > text content * * @param element The element to compute name for * @param options Computation options */ export declare function computeAccessibleName(element: Element, options?: NameComputationOptions): string; /** * Get the accessible description of an element. * Priority: aria-describedby > aria-description > title (if not used for name) * * @param element The element to compute description for * @param options Computation options */ export declare function computeAccessibleDescription(element: Element, options?: NameComputationOptions): string; //# sourceMappingURL=name.d.ts.map