@youwen/ai-design-system
Version:
Enterprise AI-driven design system with comprehensive design tokens
13 lines (12 loc) • 785 B
TypeScript
/**
* Storybook AI验证系统
* 为Story添加实时验证功能
*/
import * as React from 'react';
import type { ValidationResult, ComponentValidationReport } from './types';
export declare const withValidation: (Story: any, context: any) => React.DetailedReactHTMLElement<React.HTMLAttributes<HTMLElement>, HTMLElement>;
export declare function createValidatedStory<T>(componentType: string, defaultArgs: T, meta: any): any;
export declare function generateControls<T extends Record<string, any>>(componentProps: T): Record<keyof T, any>;
export declare function generateActions(eventHandlers: string[]): Record<string, any>;
export declare function exportValidationReport(results: ComponentValidationReport[]): void;
export type { ValidationResult, ComponentValidationReport };