import type { TurboModule } from 'react-native'; import { TurboModuleRegistry } from 'react-native'; import type { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes'; import type { KakaoAccessTokenInfo, KakaoLoginToken, KakaoRevokedServiceTerms, KakaoScopeInfo, KakaoServiceTerms, KakaoShippingAddressResult, KakaoUser, } from '..'; export interface Spec extends TurboModule { isKakaoTalkLoginAvailable(): Promise; login( serviceTerms: string[], prompts: string[], useKakaoAccountLogin: boolean, iosLaunchMethod: string, scopes?: string[], nonce?: string, loginHint?: string, channelPublicIds?: string[], androidRequestCode?: number, ): Promise; loginWithKakao( uiMode: string, orientation: string, launchMethod: string, prompts: string[], loginHint?: string, nonce?: string, channelPublicIds?: string[], serviceTerms?: string[], ): Promise; issueAccessTokenWithCode( code: string, codeVerifier?: string, redirectUri?: string, ): Promise; refreshToken(token?: UnsafeObject, iosLoggingEnabled?: boolean): Promise; signup(properties?: UnsafeObject): Promise; logout(): Promise; unlink(): Promise; isLogined(): Promise; hasToken(): Promise; scopes(scopes?: string[]): Promise; revokeScopes(scopes: string[]): Promise; serviceTerms(result?: string, tags?: string[]): Promise; revokeServiceTerms(tags: string[]): Promise; shippingAddresses( addressId?: number, fromUpdatedAt?: number, pageSize?: number, ): Promise; selectShippingAddress(): Promise; me(propertyKeys?: string[], secureResource?: boolean): Promise; updateProfile(properties: UnsafeObject): Promise; getAccessToken(): Promise; } export default TurboModuleRegistry.getEnforcing('RNCKakaoUser');