/** * 可访问性工具函数 */ export interface AccessibilityOptions { announceChanges?: boolean; enableKeyboardNavigation?: boolean; focusManagement?: boolean; } export declare class AccessibilityManager { private options; private liveRegion; constructor(options?: AccessibilityOptions); /** * 创建屏幕阅读器实时区域 */ private setupLiveRegion; /** * 向屏幕阅读器宣布消息 */ announce(message: string, priority?: 'polite' | 'assertive'): void; /** * 生成键盘事件处理器 */ createKeyboardHandler(callbacks: { onEnter?: () => void; onEscape?: () => void; onSpace?: () => void; onArrowUp?: () => void; onArrowDown?: () => void; onTab?: (event: KeyboardEvent) => void; }): (event: KeyboardEvent) => void; /** * 生成ARIA属性 */ getAriaProps(config: { role?: string; label?: string; description?: string; expanded?: boolean; hasPopup?: boolean; controls?: string; owns?: string; }): Record; /** * 焦点管理 */ manageFocus(element: HTMLElement | null, options?: { preventScroll?: boolean; restoreFocus?: HTMLElement; }): { restore: () => void; }; /** * 检查元素是否可访问 */ validateAccessibility(element: HTMLElement): { valid: boolean; issues: string[]; }; /** * 清理资源 */ destroy(): void; } export declare const accessibilityManager: AccessibilityManager; export declare const announce: (message: string, priority?: "polite" | "assertive") => void; export declare const createKeyboardHandler: (callbacks: Parameters[0]) => (event: KeyboardEvent) => void; export declare const getAriaProps: (config: Parameters[0]) => Record; export declare const manageFocus: (element: HTMLElement | null, options?: Parameters[1]) => { restore: () => void; }; //# sourceMappingURL=accessibility-utils.d.ts.map