import { AnyErrorCode } from "../../generated/sync/error/AnyErrorCode"; export declare type ErrorCodeMap = { [key in AnyErrorCode]: string; }; export declare type ErrorCodeType = (AnyErrorCode | { index?: number | string; argIndex?: number | string; forcedArg?: any; error: ErrorCodeType; }); export declare function isIndexErrorCodeType(error: ErrorCodeType): error is { index: number; error: ErrorCodeType; }; export declare class ErrorMessageService { static Map: ErrorCodeMap; static ToHumanReadable(mixed: any): string; static ToMessageWithMap(map: ErrorCodeMap, name: string, errorCode: ErrorCodeType, mixed: any, args?: any): string; static ToMessage(name: string, errorCode: ErrorCodeType, mixed: any, args?: any): string; }