/** * Base class for all HTTP Test related errors. * Provides consistent error structure and handling across the library. */ export declare abstract class HttpTestError extends Error { /** * Error code for programmatic identification */ abstract readonly code: string; /** * HTTP status code if applicable */ readonly statusCode?: number; /** * Additional context for the error */ readonly context?: Record; /** * Timestamp when the error occurred */ readonly timestamp: Date; constructor(message: string, context?: Record); /** * Converts error to a structured object for logging or serialization */ toJSON(): Record; /** * Creates a formatted error message for display */ getDisplayMessage(): string; }