import { ActionEditorEvent } from '../types/ActionTypes'; import { Id } from '../types/CommonTypes'; export interface ActionEventErrorData { event: ActionEditorEvent; actionIds: Id[]; } interface AsyncErrorBase { type: AsyncErrorType; message: string; } declare enum AsyncErrorType { action = "action", dataRow = "dataRow" } interface ExceptionContext { variableId?: Id; columnName?: string; } interface EditorExceptionDto { type: string; code: number; message: string; context?: ExceptionContext; } export declare class ActionAsyncError implements AsyncErrorBase { type: AsyncErrorType; id?: string; event?: ActionEditorEvent; eventChain?: ActionEventErrorData[]; message: string; constructor(message: string, id?: string, event?: ActionEditorEvent, eventChain?: ActionEventErrorData[]); } export declare class DataRowAsyncError implements AsyncErrorBase { type: AsyncErrorType; count: number; exceptions: EditorExceptionDto[]; message: string; constructor(count: number, message: string, exceptions: EditorExceptionDto[]); } export type AsyncError = ActionAsyncError | DataRowAsyncError; export {};