/** * Custom error class for B44 SDK */ export declare class B44Error extends Error { /** * HTTP status code */ status?: number; /** * Error code */ code?: string; /** * Additional error data */ data?: any; /** * Original error that caused this error */ originalError?: Error; /** * Create a new B44Error * @param message Error message * @param status HTTP status code * @param code Error code * @param data Additional error data * @param originalError Original error that caused this error */ constructor(message: string, status?: number, code?: string, data?: any, originalError?: Error); /** * Convert the error to a JSON object * @returns JSON representation of the error */ toJSON(): { name: string; message: string; status: number | undefined; code: string | undefined; data: any; }; } /** * Log an error to the console in development mode * @param prefix Prefix for the error message * @param error Error to log */ export declare function logError(prefix: string, error: Error | B44Error): void;