export type PhoneVerifyConflict = null | 'already_used'; export type PhoneAlreadyUsedContext = { phone: string; source?: string; returnUrl?: string; }; export type PhoneAlreadyUsedFlowOptions = { /** When true, user can close the modal while conflict is shown */ allowDismiss?: boolean; onPhoneAlreadyUsed?: (context: PhoneAlreadyUsedContext) => void; }; /** Host app hooks (care, ecom, …) — set once via `setPhoneVerifyHostHandlers` */ export type PhoneVerifyHostHandlers = { onFlowStart?: () => void; /** @deprecated Prefer `SSOV2` `onDismiss` with `reason: 'phone_already_used'` */ onDismissWithPhoneConflict?: () => void; onAuthSuccess?: () => void; };