export declare enum ErrorType {
    VALIDATION_ERROR = "VALIDATION_ERROR",
    AI_PROVIDER_ERROR = "AI_PROVIDER_ERROR",
    FILE_SYSTEM_ERROR = "FILE_SYSTEM_ERROR",
    NETWORK_ERROR = "NETWORK_ERROR",
    CONFIGURATION_ERROR = "CONFIGURATION_ERROR",
    COMPONENT_GENERATION_ERROR = "COMPONENT_GENERATION_ERROR",
    PROJECT_SETUP_ERROR = "PROJECT_SETUP_ERROR",
    DEPENDENCY_ERROR = "DEPENDENCY_ERROR",
    AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
    UNKNOWN_ERROR = "UNKNOWN_ERROR"
}
export interface MyContextError {
    type: ErrorType;
    message: string;
    originalError?: Error;
    context?: Record<string, any>;
    suggestions?: string[];
}
export declare class ErrorHandler {
    /**
     * Format a user-friendly error message with suggestions
     */
    static formatError(error: MyContextError): string;
    /**
     * Create a structured error object
     */
    static createError(type: ErrorType, message: string, originalError?: Error, context?: Record<string, any>): MyContextError;
    /**
     * Wrap an error with additional context and suggestions
     */
    static wrapError(error: Error, type: ErrorType, context?: Record<string, any>): MyContextError;
    /**
     * Get error icon based on type
     */
    private static getErrorIcon;
    /**
     * Get user-friendly error title
     */
    private static getErrorTitle;
    /**
     * Get error description
     */
    private static getErrorDescription;
    /**
     * Get error-specific suggestions
     */
    private static getErrorSuggestions;
    /**
     * Handle and display an error, then exit
     */
    static handleError(error: MyContextError): never;
    /**
     * Handle an error gracefully without exiting
     */
    static handleErrorGracefully(error: MyContextError): void;
    /**
     * Convert common errors to structured errors
     */
    static fromError(error: Error, context?: Record<string, any>): MyContextError;
}
//# sourceMappingURL=errorHandler.d.ts.map