import { ErrorCode } from '../constants'; /** * BaseError is a base class for all error classes in this sdk. */ export declare class BaseError extends Error { /** * The error code of this error */ code: ErrorCode; /** * Any additional details for this error */ details: Record | undefined; /** * Constructs a new BaseError with a given message, code, and optional details * * @param {string} message - The error message * @param {ErrorCode} [code] - The error code * @param {Record} [details] - Any additional details for this error */ constructor(message: string, code?: ErrorCode, details?: Record); /** * Format the error string with the given message and details * * @param {string} message - The error message * @param {Record} [details] - Any additional details for this error * @returns {string} The formatted error string */ formatErrorStr(message: string, details?: Record): string; }