export declare enum Status { SUCCESS = "SUCCESS", ERROR = "ERROR" } export interface ResponseDto { /** * Actual payload of the response */ data: T; /** * Status of the response */ status: Status; /** * In case of ERROR status, this field contains the error message and detailed description */ error?: ErrorWithMessage; } type ErrorWithMessage = { message: string[] | object[]; code?: string; }; export declare const ErrorUtils: { tryFailTron: (f: (() => Promise) | (() => T)) => Promise>; tryFail: (f: (() => Promise) | (() => T_1)) => Promise>; formatErrorMsg: (message: string) => string; toErrorWithMessage: (maybeError: unknown) => ErrorWithMessage; isErrorWithMessage(e: unknown): e is ErrorWithMessage; }; export {};