import type Mithril from 'mithril'; import type { AlertAttrs } from '../components/Alert'; export declare type InternalFlarumRequestOptions = Mithril.RequestOptions & { url: string; }; export default class RequestError { status: number; options: InternalFlarumRequestOptions; xhr: XMLHttpRequest; responseText: string | null; response: { [key: string]: unknown; errors?: { detail?: string; code?: string; [key: string]: unknown; }[]; } | null; alert: AlertAttrs | null; constructor(status: number, responseText: string | null, options: InternalFlarumRequestOptions, xhr: XMLHttpRequest); }