export declare class ApiTypeError extends Error { type: string; stack?: string; reqId?: string | number; displayMsg: string; constructor( type: string, msg: string, stack?: string, reqId?: string | number, displayMsg?: string, ); } /** @deprecated 不要使用和 JS 默认错误类型重名的 TypeError,可用 ApiTypeError 代替 */ export declare const TypeError: typeof ApiTypeError; interface ApiErrorOptions { message: string; stack?: string; type: string; reqId?: string | number; code?: string; displayMsg?: string; } export declare class ApiError extends Error { type: string; reqId?: string | number; code?: string; displayMsg: string; constructor({ type, message, stack, reqId, displayMsg, code }: ApiErrorOptions); } export {};