export declare class ServiceResult { errcode: number; errmsg: string; success: boolean; hasMore: boolean; count: number; data?: T; /** * * @param {*} data */ constructor(data?: T); static newInstance(): ServiceResult; /** * * @param {ServiceResult} data */ static getSuccess(data?: T): ServiceResult; /** * * @param {number} errcode * @param {string} errmsg * @param {ServiceResult} data */ static getFail(errmsg: string, data?: T, errcode?: number): ServiceResult; /** * 失败 * @param errmsg * @param errcode */ fail(errmsg: string, errcode?: number): this; /** * 新的模版T clone */ clone(): ServiceResult; }