/**
 * Component Validator
 *
 * Validates React components for syntax, structure, and best practices.
 * Used by the EnhancementAgent to ensure quality and compliance.
 */
export interface ComponentValidation {
    isValid: boolean;
    errors: ValidationError[];
    warnings: ValidationWarning[];
    score: number;
    suggestions: string[];
}
export interface ValidationError {
    type: "syntax" | "structure" | "react" | "typescript" | "accessibility";
    message: string;
    line?: number;
    severity: "error" | "warning";
}
export interface ValidationWarning {
    type: "performance" | "accessibility" | "best-practice";
    message: string;
    line?: number;
    suggestion: string;
}
export declare class ComponentValidator {
    /**
     * Validate component syntax
     */
    validateSyntax(componentCode: string): Promise<boolean>;
    /**
     * Validate enhancement against constraints
     */
    validateEnhancement(componentCode: string, constraints: {
        maxDependencies: number;
        targetFramework: "react" | "next";
        uiLibrary: "shadcn" | "custom";
    }): Promise<ComponentValidation>;
    /**
     * Extract dependencies from component code
     */
    private extractDependencies;
    /**
     * Extract shadcn/ui components
     */
    private extractShadcnComponents;
    /**
     * Check accessibility issues
     */
    private checkAccessibility;
    /**
     * Check performance issues
     */
    private checkPerformance;
    /**
     * Calculate validation score
     */
    private calculateScore;
}
//# sourceMappingURL=componentValidator.d.ts.map