import { AbstractError } from "./AbstractError.js"; /** * Used when an {@linkcode !Error}-like object was caught and converted into an * implementation of {@linkcode AbstractError} for further processing. */ export declare class InternalError extends AbstractError { /** * Constructs a new {@linkcode InternalError}. * @param message - The main error message. * @param status - The HTTP status code to return. */ constructor(message: string, status?: number); /** * Converts an error into an {@linkcode InternalError}. * @param error - The error to convert. * @returns An {@linkcode InternalError} that represents the given error. */ static fromError(error: Error): InternalError; }