import { IUserInfo } from '../../../registry'; import { LyraJSAPIMethodBrowser } from './index'; export interface IGetAuthCodeOptions { scopes: string; } export interface IGetAuthCodeSuccess { authCode: string; } export interface IShowAuthGuideOptions { authType: string; } export interface IShowAuthGuidSuccess { shown: boolean; } export interface IAuthError { error: number; errorMessage: string; } export interface IGetAuthUserInfoOptions { withoutAuthCode?: boolean; } export interface IGetAuthUserInfoSuccess { nickName: string; avatar: string; } export interface IGetSettingSuccess { userInfo: boolean; camera: boolean; album: boolean; location: boolean; audioRecord: boolean; } export interface IAuthAPI { getAuthCode: LyraJSAPIMethodBrowser; showAuthGuide: LyraJSAPIMethodBrowser; getUserInfo: LyraJSAPIMethodBrowser<{}, IUserInfo | IAuthError, true>; getAuthUserInfo: LyraJSAPIMethodBrowser; getSetting: LyraJSAPIMethodBrowser<{}, IGetSettingSuccess, false>; } //# sourceMappingURL=auth.d.ts.map