import type { KeyboardEvent as ReactKeyboardEvent } from 'react'; /** Elements that can receive keyboard focus through sequential navigation. */ export declare const FOCUSABLE_SELECTOR: string; /** * Ancestors that already own keyboard activation. A clickable child rendered * inside one of these must not add a second tab stop (nested-interactive). */ export declare const INTERACTIVE_ANCESTOR_SELECTOR: string; export declare const isActivationKey: (key: string) => key is "Enter" | " " | "Spacebar"; export declare const getFocusableElements: (container: HTMLElement | null) => HTMLElement[]; export declare const hasInteractiveAncestor: (element: HTMLElement | null) => boolean; interface ButtonA11yOptions { onActivate: (event: ReactKeyboardEvent) => void; disabled?: boolean; role?: 'button' | 'link'; } /** * Makes a non-semantic element (div/span) keyboard operable like a native * button or link — WCAG 2.1.1 Keyboard and 4.1.2 Name, Role, Value. * Links activate on Enter only, buttons on Enter and Space. */ export declare const getButtonA11yProps: ({ onActivate, disabled, role, }: ButtonA11yOptions) => { role: "button" | "link"; tabIndex: number; 'aria-disabled': true | undefined; onKeyDown: (event: ReactKeyboardEvent) => void; }; export {};