import { AbstractErrorObject } from '../types'; /** * Represents the parameters for an error object. */ type Params = { /** * A unique identifier for the error. */ key: string; /** * An optional description of the error. */ description?: string; /** * The date and time when the error occurred. */ timestamp: Date; /** * An optional stack trace for the error. */ stackTrace?: string; }; /** * Represents an error object with a key, description, timestamp, and stack trace. * Implements the `AbstractErrorObject` and `Params` interfaces. * * @implements {AbstractErrorObject} * @implements {Params} */ export declare class ErrorObject implements AbstractErrorObject, Params { key: string; description: string | undefined; timestamp: Date; stackTrace: string | undefined; isErrorObject: boolean; /** * Creates an instance of ErrorObject. * * @param key - A unique identifier for the error. * @param description - An optional description of the error. */ constructor(key: string, description?: string); toJSON(): string; fromJSON(json: string): void; /** * Retrieves the current stack trace as a string. * * This method uses the `StackTrace.get()` function to obtain an array of stack frames, * converts each stack frame to a string, and joins them with newline characters. * * @returns {Promise} A promise that resolves to the stringified stack trace. */ private _getStackTrace; } export {};