/**
 * Formats an error object into a string representation.
 * @param error - The error to format. It can be an `Error` instance, a string, or another object.
 * @param [defaultErrorString=''] - The default error message if the error cannot be formatted.
 * @param [opts={}] - Additional options.
 * @param [opts.errorLimit=8] - The maximum number of stack trace lines to include.
 * @returns  The formatted error message.
 */
export declare function formatErrorToString(error: unknown, defaultErrorString?: string, opts?: {
    errorLimit: number;
}): string;
