@casoon/auditmysite
Version:
Professional website analysis suite with robust accessibility testing, Core Web Vitals performance monitoring, SEO analysis, and content optimization insights. Features isolated browser contexts, retry mechanisms, and comprehensive API endpoints for profe
51 lines • 1.54 kB
TypeScript
/**
* 📊 HTML Report Utilities
*
* Shared utility functions for HTML report generation.
* Extracted from html-generator.ts for better maintainability.
*/
export type CertificateLevel = 'basic' | 'enhanced' | 'comprehensive';
/**
* Calculate WCAG compliance level based on metrics
*/
export declare function calculateWCAGLevel(score: number, errors: number, warnings: number): string;
/**
* Calculate ARIA issues count
*/
export declare function calculateARIAIssues(accessibility: any, buttonsWithoutLabel: number, imagesWithoutAlt: number): number;
/**
* Calculate mobile performance score
*/
export declare function calculateMobilePerformanceScore(mobilePerf: any): number;
/**
* Extract specific metric from issues
*/
export declare function extractMetricFromIssues(accessibility: any, metricType: string): number;
/**
* Get icon for issue type
*/
export declare function getIssueTypeIcon(type: string): string;
/**
* Extract line number from context/selector
*/
export declare function extractLineNumber(context: string, selector: string): {
line: number;
column: number;
};
/**
* Format number with commas
*/
export declare function formatNumber(num: number): string;
/**
* Format bytes to human-readable format
*/
export declare function formatBytes(bytes: number): string;
/**
* Get grade from score
*/
export declare function getGrade(score: number): string;
/**
* Get color for grade
*/
export declare function getGradeColor(grade: string): string;
//# sourceMappingURL=html-report-utils.d.ts.map