export declare class A11y { private logger; private observer; private liveRegionUpdateTimeout; private shouldFocusFirstInvalidField; constructor(); /** * Apply the field-level accessibility tagging (error containers, * aria-required, fallback aria-labels, radio group roles) to every field * within `root`. Defaults to the whole document on initial load, but can be * pointed at a freshly injected fragment (e.g. a Supporter Hub overlay) so * dynamically added forms get the same treatment. All operations are * idempotent, so re-scanning already tagged fields is safe. */ static scanFields(root?: ParentNode): void; private static addGlobalErrorLiveRegion; private static addGroupRole; private static addRequired; private static addLabel; private updateFrequencyLabel; private setAutoGeneratedAltTags; /** * Observe #engrid for .en__field__error additions and removals, relocating * each error after its field's input so DOM order matches visual order. Also * toggles aria-invalid / aria-describedby on the corresponding input (or radio * group when the field has role="group") and updates a single, DOM-ordered * global live region. Runs for the lifetime of the page so async validators * (NeverBounce, VGS, server re-renders) are caught without timing assumptions. */ private observeErrorMessages; private tagFieldError; private clearFieldError; /** * Make everything on the page inert except the supplied overlay element and * its ancestors. This hides background content from assistive technology and * prevents focus from escaping a modal-style overlay. * * @param inert When true, set `inert` on all siblings of the overlay and of * each of its ancestors. When false, remove `inert` from every * element this method previously marked (tracked via the * `data-engrid-inert` flag). * @param overlay The element that should remain interactive. Required when * `inert` is true; ignored when `inert` is false. */ static inertPage(inert: boolean, overlay?: HTMLElement): void; private scheduleLiveRegionUpdate; private updateGlobalErrorLiveRegion; private formatErrorMessage; private focusFirstInvalidField; private getFieldLabel; private normalizeLabel; }