UNPKG

@ordojs/accessibility

Version:

Comprehensive accessibility system for OrdoJS with ARIA generation, automated testing, and screen reader support

138 lines (136 loc) 2.93 kB
/** * @fileoverview OrdoJS Accessibility - CLI * * Command-line interface for accessibility testing and management. */ /** * Accessibility CLI for testing and managing accessibility */ declare class AccessibilityCLI { private program; private manager; /** * Create a new AccessibilityCLI instance */ constructor(); /** * Setup CLI commands */ private setupCommands; /** * Run accessibility audit * * @param target - Target URL or file * @param options - Audit options */ private runAudit; /** * Run accessibility test * * @param target - Target URL or file * @param options - Test options */ private runTest; /** * Generate ARIA attributes * * @param input - Input file or directory * @param options - Generation options */ private generateARIA; /** * Manage focus and keyboard navigation * * @param options - Focus options */ private manageFocus; /** * Manage screen reader functionality * * @param options - Screen reader options */ private manageScreenReader; /** * Generate accessibility report * * @param options - Report options */ private generateReport; /** * Show accessibility statistics * * @param options - Stats options */ private showStats; /** * Display audit results * * @param audit - Audit results */ private displayAuditResults; /** * Display test results * * @param results - Test results */ private displayTestResults; /** * Save results to file * * @param results - Results to save * @param filePath - Output file path * @param format - Output format */ private saveResults; /** * Generate ARIA for file * * @param filePath - File path * @param options - Generation options */ private generateARIAForFile; /** * Generate ARIA for directory * * @param dirPath - Directory path * @param options - Generation options */ private generateARIAForDirectory; /** * Analyze focus order * * @param filePath - File path */ private analyzeFocusOrder; /** * Generate focus code * * @param filePath - File path */ private generateFocusCode; /** * Test keyboard navigation * * @param filePath - File path */ private testKeyboardNavigation; /** * Generate HTML report * * @param results - Results * @returns HTML report */ private generateHTMLReport; /** * Generate CSV report * * @param results - Results * @returns CSV report */ private generateCSVReport; /** * Run the CLI */ run(): Promise<void>; } export { AccessibilityCLI };