export interface KakaoLoginToken { accessToken: string; refreshToken: string; tokenType?: string; idToken?: string; accessTokenExpiresAt: number; refreshTokenExpiresAt: number; accessTokenExpiresIn: number; refreshTokenExpiresIn: number; scopes: string[]; } export type KakaoCodeTokenOptions = { code: string; codeVerifier?: string; redirectUri?: string; web?: { clientSecret?: string; }; }; export type KakaoTalkLaunchMethod = 'UniversalLink' | 'CustomScheme'; export interface KakaoScopeInfo { id: string; agreed: boolean; displayName: string; revocable?: boolean | null; using: boolean; delegated?: boolean | null; type: string; } export interface KakaoServiceTerms { tag: string; agreedAt?: number; agreed: boolean; required: boolean; revocable: boolean; agreedBy?: 'KAUTH' | 'KAPI' | 'unknown'; } export type KakaoRevokedServiceTerms = { tag: string; agreed: boolean; }; export interface KakaoAppServiceTerms { tag: string; createdAt: number; updatedAt: number; } export interface KakaoShippingAddressResult { userId?: number; needsAgreement?: boolean; shippingAddresses: KakaoShippingAddress[]; } export interface KakaoShippingAddress { id: number; name?: string; isDefault: boolean; updatedAt?: number; type?: string; baseAddress?: string; detailAddress?: string; receiverName?: string; receiverPhoneNumber1?: string; receiverPhoneNumber2?: string; zoneNumber?: string; zipCode?: string; } export interface KakaoUser { id: number; properties: Record; hasSignedUp?: boolean | null; uuid?: string | null; groupUserToken?: string | null; email?: string | null; name?: string | null; nickname?: string | null; profileImageUrl?: string | null; thumbnailImageUrl?: string | null; isDefaultImage?: boolean | null; phoneNumber?: string | null; ageRange?: string | null; birthday?: string | null; birthdayType?: string | null; isLeapMonth?: boolean | null; birthyear?: string | null; gender?: string | null; isEmailValid?: boolean | null; isEmailVerified?: boolean | null; isKorean?: boolean | null; ageRangeNeedsAgreement?: boolean | null; birthdayNeedsAgreement?: boolean | null; birthyearNeedsAgreement?: boolean | null; emailNeedsAgreement?: boolean | null; genderNeedsAgreement?: boolean | null; isKoreanNeedsAgreement?: boolean | null; phoneNumberNeedsAgreement?: boolean | null; profileNeedsAgreement?: boolean | null; nameNeedsAgreement?: boolean | null; profileImageNeedsAgreement?: boolean | null; profileNicknameNeedsAgreement?: boolean | null; legalName?: string | null; legalNameNeedsAgreement?: boolean | null; legalBirthDate?: string | null; legalBirthDateNeedsAgreement?: boolean | null; legalGender?: 'female' | 'male' | null; legalGenderNeedsAgreement?: boolean | null; connectedAt?: number | null; synchedAt?: number | null; } export interface KakaoAccessTokenInfo { id?: number; appId: number; expiresIn: number; } export declare function login({ serviceTerms, prompts, useKakaoAccountLogin, scopes, nonce, loginHint, channelPublicIds, android, ios, }?: { serviceTerms?: string[]; prompts?: ('Login' | 'Create' | 'Cert' | 'SelectAccount')[]; scopes?: string[]; useKakaoAccountLogin?: boolean; nonce?: string; loginHint?: string; channelPublicIds?: string[]; android?: { requestCode?: number; }; ios?: { launchMethod?: KakaoTalkLaunchMethod; }; web?: { redirectUri: string; scope?: string[]; throughTalk?: boolean; prompt?: ('login' | 'none' | 'create' | 'select_account')[]; loginHint?: string; serviceTerms?: string[]; state?: string; nonce?: string; }; }): Promise; export declare function signup({ properties }?: { properties?: Record; }): Promise; export declare function loginWithKakao({ uiMode, prompts, loginHint, nonce, channelPublicIds, serviceTerms, ios, }?: { uiMode?: 'auto' | 'light' | 'dark'; prompts?: ('Login' | 'Create' | 'Cert' | 'SelectAccount')[]; loginHint?: string; nonce?: string; channelPublicIds?: string[]; serviceTerms?: string[]; ios?: { orientation?: 'auto' | 'portrait' | 'landscape'; launchMethod?: KakaoTalkLaunchMethod; }; }): Promise; export declare function refreshToken({ token, ios, }?: { token?: KakaoLoginToken; ios?: { loggingEnabled?: boolean; }; }): Promise; export declare function logout(): Promise; export declare function unlink(): Promise; export declare function isLogined(): Promise; export declare const hasToken: () => Promise; export declare function isKakaoTalkLoginAvailable(): Promise; export declare function scopes(scopes?: string[]): Promise; export declare function revokeScopes(scopes: string[]): Promise; export declare function revokeScopesWithResult(scopes: string[]): Promise; export declare function serviceTerms({ result, tags, }?: { result?: 'agreed_service_terms' | 'app_service_terms'; tags?: string[]; }): Promise; export declare function shippingAddresses({ addressId, fromUpdatedAt, pageSize, }?: { addressId?: number; fromUpdatedAt?: number; pageSize?: number; }): Promise; export declare function revokeServiceTerms(tags: string[]): Promise; export declare function selectShippingAddress(): Promise; export declare function me({ propertyKeys, secureResource, }?: { propertyKeys?: string[]; secureResource?: boolean; }): Promise; export declare function issueAccessTokenWithCode({ code, codeVerifier, redirectUri, }: KakaoCodeTokenOptions): Promise; export declare function getAccessToken(): Promise; export declare function updateProfile({ properties, }: { properties: Record; }): Promise; export declare function setAccessTokenWeb(token: string): void; export declare function issueAccessTokenWithCodeWeb(params: { redirectUri: string; clientSecret?: string; code: string; codeVerifier?: string; }): Promise<{ tokenType: string; accessToken: string; idToken?: string; expiresIn: number; refreshToken: string; refreshTokenExpiresIn: number; scope?: string; }>; declare const KakaoUser: { login: typeof login; loginWithKakao: typeof loginWithKakao; refreshToken: typeof refreshToken; issueAccessTokenWithCode: typeof issueAccessTokenWithCode; signup: typeof signup; logout: typeof logout; unlink: typeof unlink; isLogined: typeof isLogined; hasToken: () => Promise; isKakaoTalkLoginAvailable: typeof isKakaoTalkLoginAvailable; scopes: typeof scopes; revokeScopes: typeof revokeScopes; revokeScopesWithResult: typeof revokeScopesWithResult; serviceTerms: typeof serviceTerms; revokeServiceTerms: typeof revokeServiceTerms; shippingAddresses: typeof shippingAddresses; selectShippingAddress: typeof selectShippingAddress; me: typeof me; updateProfile: typeof updateProfile; getAccessToken: typeof getAccessToken; setAccessTokenWeb: typeof setAccessTokenWeb; issueAccessTokenWithCodeWeb: typeof issueAccessTokenWithCodeWeb; }; export default KakaoUser; export type KakaoUserAPI = typeof KakaoUser; //# sourceMappingURL=index.d.ts.map