import { type RefObject } from 'react'; /** * Repairs the one ARIA defect AG Grid's pinned viewport introduces. * * Pinning a column makes AG Grid write `aria-hidden="false"` onto the * `role="presentation"` pinned column and spanned-cell containers. axe's * `aria-required-children` treats any presentational element carrying a * global ARIA attribute as an *owned* child rather than transparent, so the * `role="grid"` root and the pinned `role="rowgroup"` viewport both report * "Element has children which are not allowed: [role=presentation]". Nothing * is wrong with the tree itself — only the no-op attribute. * * The observer watches `aria-hidden` alone, inside the grid root only, and * removes it only where the value is exactly `"false"` and the element is * presentational. `aria-hidden="true"` is never touched, so every genuine * hide AG Grid performs still stands. */ export declare function usePresentationalAriaFix(rootRef: RefObject, enabled?: boolean): void; //# sourceMappingURL=use-presentational-aria-fix.d.ts.map