import type { AuthEventPayload, UserProfile } from '@dynamic-labs/types'; import type { UserFields, ProjectSettingsKyc, UpdateSelfResponse, ProjectSettings } from '@dynamic-labs/sdk-api-core'; export type AuthModuleState = { token: string | null; minifiedToken: string | null; authenticatedUser: UserProfile | null; }; export type UpdateUserFieldsArg = Omit; export type UpdateUserReturnPayload = { isSmsVerificationRequired: boolean; isEmailVerificationRequired: boolean; missingFields: ProjectSettingsKyc[]; updateUserProfileResponse: UpdateSelfResponse; }; export type AuthModuleMessages = { logout: () => Promise; refreshUser: () => Promise; updateUser: (userFields: UpdateUserFieldsArg) => Promise; verifyUserUpdateOtp: (verificationToken: string) => Promise; handleAuthenticatedUser: (params: { user: UserProfile; }) => Promise; permanentlyDeleteCurrentUser: () => Promise; authSuccess: (user: UserProfile) => void; authFailed: (data: AuthEventPayload, reason: 'user-cancelled' | { error: unknown; }) => void; authInit: (data: AuthEventPayload) => void; loggedOut: (user: UserProfile | null) => void; userProfileUpdated: (user: UserProfile) => void; getProjectSettings: () => Promise; }; export declare const authEventNames: ("authSuccess" | "authFailed" | "authInit" | "loggedOut" | "userProfileUpdated")[];