/** * Component Quality Standards and Guidelines for Raaghu Design System */ export interface ComponentQualityMetrics { accessibility: AccessibilityScore; performance: PerformanceScore; testCoverage: TestCoverageScore; documentation: DocumentationScore; designSystemCompliance: ComplianceScore; overallScore: number; } export interface AccessibilityScore { score: number; wcagLevel: 'A' | 'AA' | 'AAA' | 'FAIL'; issues: AccessibilityIssue[]; } export interface PerformanceScore { score: number; bundleSize: number; renderTime: number; memoryUsage: number; } export interface TestCoverageScore { score: number; linesCovered: number; totalLines: number; branchesCovered: number; totalBranches: number; } export interface DocumentationScore { score: number; hasStorybook: boolean; hasExamples: boolean; hasAPIDoc: boolean; hasUsageGuide: boolean; } export interface ComplianceScore { score: number; followsNaming: boolean; usesDesignTokens: boolean; hasProperProps: boolean; implementsThemes: boolean; } export interface AccessibilityIssue { severity: 'error' | 'warning' | 'info'; rule: string; message: string; element: string; } export declare class ComponentStandards { static readonly QUALITY_GATES: { accessibility: { minScore: number; requiredWCAGLevel: "AA" | "AAA"; }; performance: { minScore: number; maxBundleSize: number; maxRenderTime: number; }; testCoverage: { minScore: number; minLineCoverage: number; minBranchCoverage: number; }; documentation: { minScore: number; requiredDocs: string[]; }; designSystemCompliance: { minScore: number; }; overall: { minScore: number; }; }; static readonly NAMING_CONVENTIONS: { component: RegExp; props: RegExp; file: RegExp; cssClass: RegExp; storyName: RegExp; }; static readonly REQUIRED_PROPS: { className: string; 'data-testid': string; id: string; }; static validateComponentName(name: string): boolean; static validateFileName(fileName: string): boolean; static validateCSSClassName(className: string): boolean; static calculateOverallScore(metrics: Omit): number; static meetsQualityGates(metrics: ComponentQualityMetrics): { passed: boolean; failures: string[]; }; } export declare class ComponentValidator { static validatePropsInterface(propsInterface: Record): { isValid: boolean; issues: string[]; }; static validateComponentStructure(_componentPath: string): { isValid: boolean; issues: string[]; }; } export declare class QualityReporter { static generateReport(componentName: string, metrics: ComponentQualityMetrics): string; static generateSummaryReport(components: Record): string; } declare const _default: { ComponentStandards: typeof ComponentStandards; ComponentValidator: typeof ComponentValidator; QualityReporter: typeof QualityReporter; }; export default _default;