import { BaseApi } from './baseApi'; export interface IBaseRoot { alertMsg: string; data: T; errorCode: any; errorMsg: any; statusCode: number; success: boolean; traceLogId: string; } export type IGenerateQrCodeData = IBaseRoot<{ qrId: string; qrUrl: string; }>; export interface IQueryQrCodeStatusData { authToken: null | string; avatar: null | string; customerUserType: null | string; status: number; ticket: null | string; userId: null | string; } export type IQueryQrCodeStatus = IBaseRoot; export type ILoginData = Omit; export interface IBusinessRoot { code: number; msg: string; guid: any; success: boolean; data: { [key: string]: any; }; } export type IGetUserInfo = IBusinessRoot; export declare class UserApi extends BaseApi { generateQrCode(): Promise; queryQrCodeStatus(qrId: string): Promise; login(ticket: string): Promise; fetchUserInfo(): Promise; }