#!/usr/bin/env node
import { Command } from "commander";
export interface RefinementOptions {
    prompt: string;
    temperature?: number;
    maxTokens?: number;
    verbose?: boolean;
    debug?: boolean;
    output?: string;
    interactive?: boolean;
    outputFormat?: "structured" | "diff" | "preview" | "apply";
    showChanges?: boolean;
    preserveHistory?: boolean;
    rollback?: boolean;
}
export interface UISpecOptions {
    componentName: string;
    description?: string;
    jsonInput?: string;
    jsonFile?: string;
    outputFormat?: "compact" | "detailed" | "both";
    template?: "card" | "form" | "button" | "modal" | "list" | "custom";
    verbose?: boolean;
}
export declare class RefineCommand {
    private enhancementAgent;
    constructor();
    /**
     * Generate UI specification from component description
     */
    generateUISpec(options: UISpecOptions): Promise<any>;
    /**
     * Get JSON input from various sources
     */
    private getJSONInput;
    /**
     * Convert description to basic JSON structure
     */
    private convertDescriptionToJSON;
    /**
     * Generate UI specification from JSON data
     */
    private generateSpecification;
    /**
     * Generate compact specification
     */
    private generateCompactSpec;
    /**
     * Generate detailed specification
     */
    private generateDetailedSpec;
    execute(componentPath: string, options: RefinementOptions): Promise<any>;
    private printNextCommands;
    /**
     * Get refinement prompt from options or user input
     */
    private getRefinementPrompt;
    /**
     * Generate fallback enhancement when AI times out
     */
    private generateFallbackEnhancement;
    /**
     * Extract design context from component code
     */
    private extractDesignContext;
    /**
     * Extract interaction patterns from component
     */
    private extractInteractions;
    /**
     * Generate refinement output based on format
     */
    private generateRefinementOutput;
    /**
     * Generate diff output for side-by-side comparison
     */
    private generateDiffOutput;
    /**
     * Generate preview output for component rendering
     */
    private generatePreviewOutput;
    /**
     * Generate apply output for immediate application
     */
    private generateApplyOutput;
    /**
     * Generate unified diff format
     */
    private generateUnifiedDiff;
    /**
     * Generate side-by-side diff format
     */
    private generateSideBySideDiff;
    /**
     * Check if component can be rendered
     */
    private canRenderComponent;
    /**
     * Extract component dependencies
     */
    private extractDependencies;
    /**
     * Extract component props interface
     */
    private extractComponentProps;
    /**
     * Extract render warnings
     */
    private extractRenderWarnings;
    /**
     * Preserve component history for rollback
     */
    private preserveComponentHistory;
    /**
     * Handle rollback to previous version
     */
    private handleRollback;
    /**
     * Apply refinement changes to file
     */
    private applyRefinement;
    /**
     * Display refinement results for CLI
     */
    private displayRefinementResults;
}
export declare const refine: Command;
//# sourceMappingURL=refine.d.ts.map