UNPKG

@youwen/ai-design-system

Version:

Enterprise AI-driven design system with comprehensive design tokens

27 lines (26 loc) 883 B
/** * AI组件验证引擎 * 智能验证组件的设计一致性、可访问性和性能 */ /// <reference types="react" /> import type { ValidationResult, ComponentValidationReport } from './types'; export interface ComponentSpec { type: string; props: Record<string, any>; children?: React.ReactNode; } export declare function validateComponent(spec: ComponentSpec): ValidationResult; export declare function validateComponents(specs: ComponentSpec[]): ComponentValidationReport[]; export declare function generateValidationReport(results: ValidationResult[]): { summary: { totalComponents: number; passedComponents: number; failedComponents: number; averageScores: { accessibility: number; performance: number; designConsistency: number; }; }; details: ValidationResult[]; };