export type ErrorMsg = { /** 错误信息 */ errorMsg: string; /** 错误码 */ errorCode: string | number; /** 错误扩展 */ innerError: { /** 错误扩展码 */ errorCode: string | number; /** 错误扩展信息 */ errorMsg: string; }; }; export type ICommon = { /** 接口调用成功的回调函数 */ success?: () => void; /** 接口调用失败的回调函数 */ fail?: (err?: ErrorMsg) => void; /** 接口调用结束的回调函数(调用成功、失败都会执行) */ complete?: () => void; }; export type RecordRest = { [key: string]: string | boolean | number; }; export declare function nativeRouter(uri: string, params?: T): Promise;