/**
 * Enhanced Error Context & Suggestions
 * Provides contextual error messages and actionable remediation steps
 * Based on comprehensive real-world feedback from production usage
 */
export interface ErrorContext {
    originalError: string;
    errorType: 'session_lost' | 'network_failure' | 'browser_crashed' | 'permission_denied' | 'timeout' | 'unknown';
    contextualMessage: string;
    remediationSteps: string[];
    suggestedTools: string[];
    frameworkSpecific?: string[];
    severity: 'low' | 'medium' | 'high' | 'critical';
}
export interface SessionContext {
    url?: string;
    port?: number;
    framework?: 'react' | 'nextjs' | 'vue' | 'angular' | 'fastapi' | 'unknown';
    lastAction?: string;
    sessionDuration?: number;
    browserType?: string;
}
export declare class EnhancedErrorContextProvider {
    private static instance;
    static getInstance(): EnhancedErrorContextProvider;
    /**
     * Analyze error and provide enhanced context with actionable remediation
     */
    analyzeError(error: Error | string, sessionContext?: SessionContext): ErrorContext;
    /**
     * Categorize error based on common patterns from real-world usage
     */
    private categorizeError;
    /**
     * Generate contextual message based on error type and session context
     */
    private generateContextualMessage;
    /**
     * Generate specific remediation steps based on error type and context
     */
    private generateRemediationSteps;
    /**
     * Suggest specific tools to help resolve the error
     */
    private getSuggestedTools;
    /**
     * Get framework-specific suggestions based on detected framework
     */
    private getFrameworkSpecificSuggestions;
    /**
     * Assess error severity for prioritization
     */
    private assessSeverity;
    /**
     * Format error context for display to user
     */
    formatErrorForUser(errorContext: ErrorContext): string;
    /**
     * Update session context for better error analysis
     */
    updateSessionContext(context: Partial<SessionContext>): void;
}
export default EnhancedErrorContextProvider;
//# sourceMappingURL=enhanced-error-context.d.ts.map