import type { ApiResourceEvent } from '../../../resources/resources-manager.js'; export interface CwaViolationError { message: string; property: string; } export declare enum ErrorType { NETWORK = "NETWORK", VALIDATION = "VALIDATION", SERVER = "SERVER", UNKNOWN = "UNKNOWN" } interface CwaBaseErrorEvent { event?: ApiResourceEvent; detail: string; violations: CwaViolationError[]; timestamp: number; } interface CwaResolvedErrorEvent extends CwaBaseErrorEvent { type: Exclude; statusCode: number; } interface CwaNetworkErrorEvent extends CwaBaseErrorEvent { type: ErrorType.NETWORK; statusCode: undefined; } export type CwaErrorEvent = CwaNetworkErrorEvent | CwaResolvedErrorEvent; export interface CwaErrorStateInterface { byId: { [key: number]: CwaErrorEvent; }; allIds: Array; allEndpoints: Map; } export default function (): CwaErrorStateInterface; export {};