UNPKG

@vladimirdukelic/revolutionary-ui-factory

Version:

Revolutionary UI Factory System v2 - Generate ANY UI component for ANY framework with 60-95% code reduction

51 lines (50 loc) 1.34 kB
/** * AI Component Generator for Revolutionary UI Factory * Generates components from natural language descriptions */ export interface AIGenerationOptions { prompt: string; framework?: string; styling?: string; typescript?: boolean; outputDir?: string; model?: AIModel; } export type AIModel = 'gpt-4' | 'gpt-3.5-turbo' | 'claude-3-opus' | 'claude-3-sonnet' | 'gemini-pro' | 'custom'; export declare class AIComponentGenerator { private componentGenerator; constructor(); /** * Generate a component from natural language prompt */ generateFromPrompt(options: AIGenerationOptions): Promise<any>; /** * Parse natural language prompt to component specifications */ private parsePrompt; /** * Local prompt parsing using pattern matching */ private parsePromptLocally; /** * Generate component name from prompt */ private generateComponentName; /** * Check if word is a stop word */ private isStopWord; /** * Extract props from prompt */ private extractProps; /** * Get AI model configuration */ getModelConfig(): Promise<any>; /** * Save custom AI configuration */ saveCustomAIConfig(config: any): Promise<void>; } export declare const examplePrompts: string[];