Files
NapCatQQ/.pnpm-store/v3/files/3c/cefc343e4f113272d6f40697bd1aba32ca260e1c81e13bfea7499371b61409fcf87e4900b1715a65762ef2e0c2774516b6b898f33ff79aecaa39ac233f7ee4
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
700 B
Plaintext

/**
* This code comes from @react-aria/overlays
*/
/**
* Hides all elements in the DOM outside the given targets from screen readers using aria-hidden,
* and returns a function to revert these changes. In addition, changes to the DOM are watched
* and new elements outside the targets are automatically hidden.
* @param targets - The elements that should remain visible.
* @param root - Nothing will be hidden above this element.
* @returns - A function to restore all hidden elements.
*/
declare function ariaHideOutside(targets: Element[], root?: HTMLElement): () => void;
declare function keepVisible(element: Element): (() => void) | undefined;
export { ariaHideOutside, keepVisible };