UNPKG

@kaarot_kalel_90/react-native-tuya

Version:

React Native bindings for the Tuya SDK 6.11 (Device Panel included)

42 lines (41 loc) 1.44 kB
export declare function registerAccountWithEmail(params: RegisterAccountWithEmailParams): Promise<any>; export declare function getRegisterEmailValidateCode(params: GetEmailValidateCodeParams): Promise<any>; export declare function loginWithEmail(params: LoginWithEmailParams): Promise<any>; export declare function getEmailValidateCode(params: GetEmailValidateCodeParams): Promise<any>; export declare function resetEmailPassword(params: ResetEmailPasswordParams): Promise<any>; export declare function logout(): Promise<string>; export declare function getCurrentUser(): Promise<User | null>; export declare function cancelAccount(): Promise<string>; export declare type User = { email: string; username: string; sid: string; timezoneId: string; uid: string; userType: number; headPic: string; mobile: string; nickName: string; phoneCode: string; }; export declare type RegisterAccountWithEmailParams = { countryCode: string; email: string; validateCode: string; password: string; }; export declare type GetEmailValidateCodeParams = { countryCode: string; email: string; }; export declare type LoginWithEmailParams = { email: string; password: string; countryCode: string; }; export declare type ResetEmailPasswordParams = { email: string; countryCode: string; validateCode: string; newPassword: string; };