/** * Base class for errors that adds a [[toJSON]] function. */ export declare abstract class ErrorBase extends Error { /** * Initializes a new instance of the [[ErrorBase]] class. * @param message A description of the error. */ protected constructor(message: string); /** * Returns a JSON representation of the current object instance. * @returns A JSON representation of the current object instance. */ toJSON(): unknown; private getStackJson; }