/** * Accessibility utilities and constants for the Raaghu Design System * Following WCAG 2.1 AA guidelines */ export declare const ARIA_ROLES: { readonly BUTTON: "button"; readonly LINK: "link"; readonly TAB: "tab"; readonly TABPANEL: "tabpanel"; readonly TABLIST: "tablist"; readonly DIALOG: "dialog"; readonly ALERT: "alert"; readonly ALERTDIALOG: "alertdialog"; readonly MENU: "menu"; readonly MENUBAR: "menubar"; readonly MENUITEM: "menuitem"; readonly CHECKBOX: "checkbox"; readonly RADIO: "radio"; readonly LISTBOX: "listbox"; readonly OPTION: "option"; readonly COMBOBOX: "combobox"; readonly GRID: "grid"; readonly GRIDCELL: "gridcell"; readonly ROWHEADER: "rowheader"; readonly COLUMNHEADER: "columnheader"; readonly PROGRESSBAR: "progressbar"; readonly SLIDER: "slider"; readonly SPINBUTTON: "spinbutton"; readonly TOOLTIP: "tooltip"; readonly STATUS: "status"; readonly LOG: "log"; readonly REGION: "region"; readonly BANNER: "banner"; readonly NAVIGATION: "navigation"; readonly MAIN: "main"; readonly COMPLEMENTARY: "complementary"; readonly CONTENTINFO: "contentinfo"; readonly SEARCH: "search"; readonly FORM: "form"; }; export declare const ARIA_PROPS: { readonly LABEL: "aria-label"; readonly LABELLEDBY: "aria-labelledby"; readonly DESCRIBEDBY: "aria-describedby"; readonly EXPANDED: "aria-expanded"; readonly HIDDEN: "aria-hidden"; readonly DISABLED: "aria-disabled"; readonly CHECKED: "aria-checked"; readonly SELECTED: "aria-selected"; readonly PRESSED: "aria-pressed"; readonly CURRENT: "aria-current"; readonly LIVE: "aria-live"; readonly ATOMIC: "aria-atomic"; readonly RELEVANT: "aria-relevant"; readonly BUSY: "aria-busy"; readonly INVALID: "aria-invalid"; readonly REQUIRED: "aria-required"; readonly READONLY: "aria-readonly"; readonly MULTISELECTABLE: "aria-multiselectable"; readonly ORIENTATION: "aria-orientation"; readonly SORT: "aria-sort"; readonly VALUEMIN: "aria-valuemin"; readonly VALUEMAX: "aria-valuemax"; readonly VALUENOW: "aria-valuenow"; readonly VALUETEXT: "aria-valuetext"; readonly CONTROLS: "aria-controls"; readonly OWNS: "aria-owns"; readonly ACTIVEDESCENDANT: "aria-activedescendant"; readonly HASPOPUP: "aria-haspopup"; readonly LEVEL: "aria-level"; readonly POSINSET: "aria-posinset"; readonly SETSIZE: "aria-setsize"; }; export declare const LIVE_REGIONS: { readonly OFF: "off"; readonly POLITE: "polite"; readonly ASSERTIVE: "assertive"; }; export declare const KEYS: { readonly ENTER: "Enter"; readonly SPACE: " "; readonly TAB: "Tab"; readonly ESCAPE: "Escape"; readonly ARROW_UP: "ArrowUp"; readonly ARROW_DOWN: "ArrowDown"; readonly ARROW_LEFT: "ArrowLeft"; readonly ARROW_RIGHT: "ArrowRight"; readonly HOME: "Home"; readonly END: "End"; readonly PAGE_UP: "PageUp"; readonly PAGE_DOWN: "PageDown"; readonly DELETE: "Delete"; readonly BACKSPACE: "Backspace"; }; export interface FocusableElement extends HTMLElement { focus(): void; } export interface AccessibilityProps { 'aria-label'?: string; 'aria-labelledby'?: string; 'aria-describedby'?: string; 'aria-expanded'?: boolean; 'aria-hidden'?: boolean; 'aria-disabled'?: boolean; 'aria-checked'?: boolean | 'mixed'; 'aria-selected'?: boolean; 'aria-pressed'?: boolean | 'mixed'; 'aria-current'?: boolean | 'page' | 'step' | 'location' | 'date' | 'time'; 'aria-live'?: 'off' | 'polite' | 'assertive'; 'aria-atomic'?: boolean; 'aria-relevant'?: 'additions' | 'removals' | 'text' | 'all'; 'aria-busy'?: boolean; 'aria-invalid'?: boolean | 'grammar' | 'spelling'; 'aria-required'?: boolean; 'aria-readonly'?: boolean; 'aria-multiselectable'?: boolean; 'aria-orientation'?: 'horizontal' | 'vertical'; 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other'; 'aria-valuemin'?: number; 'aria-valuemax'?: number; 'aria-valuenow'?: number; 'aria-valuetext'?: string; 'aria-controls'?: string; 'aria-owns'?: string; 'aria-activedescendant'?: string; 'aria-haspopup'?: boolean | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog'; 'aria-level'?: number; 'aria-posinset'?: number; 'aria-setsize'?: number; role?: string; tabIndex?: number; } export declare class FocusManager { private static focusableSelectors; static getFocusableElements(container: Element): FocusableElement[]; static getFirstFocusableElement(container: Element): FocusableElement | null; static getLastFocusableElement(container: Element): FocusableElement | null; static trapFocus(container: Element, event: KeyboardEvent): void; static restoreFocus(previouslyFocusedElement: FocusableElement | null): void; } export declare class ScreenReaderUtils { static announceToScreenReader(message: string, politeness?: 'polite' | 'assertive'): void; static createVisuallyHiddenStyles(): { position: "absolute"; left: string; width: string; height: string; overflow: "hidden"; }; } export declare class ColorContrastUtils { static getRelativeLuminance(color: string): number; static getContrastRatio(color1: string, color2: string): number; static meetsWCAGAA(foreground: string, background: string): boolean; static meetsWCAGAAA(foreground: string, background: string): boolean; } export declare class AccessibilityValidator { static validateButton(props: any): string[]; static validateInput(props: any): string[]; static validateModal(props: any): string[]; } declare const _default: { ARIA_ROLES: { readonly BUTTON: "button"; readonly LINK: "link"; readonly TAB: "tab"; readonly TABPANEL: "tabpanel"; readonly TABLIST: "tablist"; readonly DIALOG: "dialog"; readonly ALERT: "alert"; readonly ALERTDIALOG: "alertdialog"; readonly MENU: "menu"; readonly MENUBAR: "menubar"; readonly MENUITEM: "menuitem"; readonly CHECKBOX: "checkbox"; readonly RADIO: "radio"; readonly LISTBOX: "listbox"; readonly OPTION: "option"; readonly COMBOBOX: "combobox"; readonly GRID: "grid"; readonly GRIDCELL: "gridcell"; readonly ROWHEADER: "rowheader"; readonly COLUMNHEADER: "columnheader"; readonly PROGRESSBAR: "progressbar"; readonly SLIDER: "slider"; readonly SPINBUTTON: "spinbutton"; readonly TOOLTIP: "tooltip"; readonly STATUS: "status"; readonly LOG: "log"; readonly REGION: "region"; readonly BANNER: "banner"; readonly NAVIGATION: "navigation"; readonly MAIN: "main"; readonly COMPLEMENTARY: "complementary"; readonly CONTENTINFO: "contentinfo"; readonly SEARCH: "search"; readonly FORM: "form"; }; ARIA_PROPS: { readonly LABEL: "aria-label"; readonly LABELLEDBY: "aria-labelledby"; readonly DESCRIBEDBY: "aria-describedby"; readonly EXPANDED: "aria-expanded"; readonly HIDDEN: "aria-hidden"; readonly DISABLED: "aria-disabled"; readonly CHECKED: "aria-checked"; readonly SELECTED: "aria-selected"; readonly PRESSED: "aria-pressed"; readonly CURRENT: "aria-current"; readonly LIVE: "aria-live"; readonly ATOMIC: "aria-atomic"; readonly RELEVANT: "aria-relevant"; readonly BUSY: "aria-busy"; readonly INVALID: "aria-invalid"; readonly REQUIRED: "aria-required"; readonly READONLY: "aria-readonly"; readonly MULTISELECTABLE: "aria-multiselectable"; readonly ORIENTATION: "aria-orientation"; readonly SORT: "aria-sort"; readonly VALUEMIN: "aria-valuemin"; readonly VALUEMAX: "aria-valuemax"; readonly VALUENOW: "aria-valuenow"; readonly VALUETEXT: "aria-valuetext"; readonly CONTROLS: "aria-controls"; readonly OWNS: "aria-owns"; readonly ACTIVEDESCENDANT: "aria-activedescendant"; readonly HASPOPUP: "aria-haspopup"; readonly LEVEL: "aria-level"; readonly POSINSET: "aria-posinset"; readonly SETSIZE: "aria-setsize"; }; LIVE_REGIONS: { readonly OFF: "off"; readonly POLITE: "polite"; readonly ASSERTIVE: "assertive"; }; KEYS: { readonly ENTER: "Enter"; readonly SPACE: " "; readonly TAB: "Tab"; readonly ESCAPE: "Escape"; readonly ARROW_UP: "ArrowUp"; readonly ARROW_DOWN: "ArrowDown"; readonly ARROW_LEFT: "ArrowLeft"; readonly ARROW_RIGHT: "ArrowRight"; readonly HOME: "Home"; readonly END: "End"; readonly PAGE_UP: "PageUp"; readonly PAGE_DOWN: "PageDown"; readonly DELETE: "Delete"; readonly BACKSPACE: "Backspace"; }; FocusManager: typeof FocusManager; ScreenReaderUtils: typeof ScreenReaderUtils; ColorContrastUtils: typeof ColorContrastUtils; AccessibilityValidator: typeof AccessibilityValidator; }; export default _default;