import { ContractType } from "."; import { NonSpecificConstructionFilledUnserializable } from "../index"; interface _MallocError { mallocErrorMarker: "MALLOC ERROR MARKER"; type: MallocErrorTypes; message: string; errorCode?: number; raw?: any; } export interface MallocBuilderError extends _MallocError { type: MallocErrorTypes.MALLOC_BUILDER; } export interface MallocActionBuilderError extends _MallocError { type: MallocErrorTypes.MALLOC_ACTION_BUILDER; actionName: string; actionIndex: number; actionTypeUID: string; filledNonSpecificConstruction?: NonSpecificConstructionFilledUnserializable; } export interface MallocCompilerError extends _MallocError { type: MallocErrorTypes.MALLOC_COMPILER; } export interface MallocRunnerError extends _MallocError { type: MallocErrorTypes.MALLOC_RUNNER; code: number; contractType: ContractType; actionIdx?: number; actionName?: string; name?: string; } export declare type MallocError = MallocActionBuilderError | MallocCompilerError | MallocRunnerError | MallocBuilderError; export declare enum MallocErrorTypes { MALLOC_BUILDER = "Malloc Builder", MALLOC_ACTION_BUILDER = "Malloc Action Builder", MALLOC_COMPILER = "Malloc Compiler", MALLOC_RUNNER = "Malloc Runner" } export {};