import './report'; import { APIError, UserValidateError } from '@jolibox/common'; export declare function formatErrorCode(method: string, code?: number): string; export declare const createAPIError: (error: { code: number; msg: string; type?: string; }, params?: { errNo?: number; errMsg?: string; }) => APIError; export declare const createUserValidateAPIError: (msg: string) => UserValidateError; export { errorReportEmitter, ErrorData } from './report';