import type { Attributes, CommonAttributes } from 'mithril'; import type {Response} from 'redaxios'; export type ErrorResponse = Response<{errors: Record}>; export type JSXElement = Omit, 'children' | 'style'> & CommonAttributes & { children?: JSX.Element | JSX.Element[] | Attributes | Attributes[], style?: string | CSSStyleDeclaration }; export declare namespace JSONAPI { export interface Trace { file: string; line: number; function: string; class: string; type: string; } export interface Meta { exception: string; file: string; line: number; trace: Trace[]; } export interface Error { detail: string; meta: Meta; status: string; title: string; } export interface RequestError { response: { data: { errors: JSONAPI.Error[] } }; } }