export { StytchB2BHeadlessClient, createStytchB2BClient, createStytchB2BHeadlessClient } from './index.headless.js'; import { x as PermissionsMap } from '../createAuthUrlHandler-CH6XQXol.js'; export { y as AuthFlowType, z as B2BEmailMagicLinksOptions, C as B2BEmailOTPOptions, D as B2BMFAProducts, E as B2BMemberDeleteMFAPhoneNumberResponse, F as B2BMemberDeleteMFATOTPResponse, G as B2BMemberDeletePasswordResponse, H as B2BMemberGetConnectedAppsResponse, J as B2BMemberOnChangeCallback, K as B2BMemberRevokeConnectedAppOptions, L as B2BMemberRevokeConnectedAppResponse, M as B2BMemberStartEmailUpdateRequest, N as B2BMemberStartEmailUpdateResponse, Q as B2BMemberUnlinkRetiredEmailRequest, R as B2BMemberUnlinkRetiredEmailResponse, T as B2BMemberUpdateOptions, U as B2BMemberUpdateResponse, B as B2BOAuthAuthorizeStartOptions, n as B2BOAuthAuthorizeStartResponse, o as B2BOAuthAuthorizeSubmitOptions, p as B2BOAuthAuthorizeSubmitResponse, q as B2BOAuthLogoutStartOptions, r as B2BOAuthLogoutStartResponse, V as B2BOAuthOptions, W as B2BOAuthProviderConfig, X as B2BOAuthProviders, Y as B2BPasswordOptions, Z as B2BSCIMCreateConnectionOptions, _ as B2BSCIMCreateConnectionResponse, $ as B2BSCIMDeleteConnectionResponse, a0 as B2BSCIMGetConnectionGroupsOptions, a1 as B2BSCIMGetConnectionGroupsResponse, a2 as B2BSCIMGetConnectionResponse, a3 as B2BSCIMRotateCancelResponse, a4 as B2BSCIMRotateCompleteResponse, a5 as B2BSCIMRotateStartResponse, a6 as B2BSCIMUpdateConnectionOptions, a7 as B2BSCIMUpdateConnectionResponse, a8 as B2BSMSOTPOptions, a9 as B2BSSOOptions, aa as B2BSessionAccessTokenExchangeOptions, ab as B2BSessionAccessTokenExchangeResponse, ac as B2BSessionAttestOptions, ad as B2BSessionAttestResponse, ae as B2BSessionAuthenticateResponse, af as B2BSessionExchangeOptions, ag as B2BSessionExchangeResponse, ah as B2BSessionOnChangeCallback, ai as B2BSessionRevokeForMemberOptions, aj as B2BSessionRevokeForMemberResponse, ak as B2BSessionRevokeOptions, al as BiometricsAuthenticateCompleteResponse, am as BiometricsAuthenticateOptions, an as BiometricsAuthenticateStartResponse, ao as BiometricsDeleteResponse, ap as BiometricsGetSensorResponse, aq as BiometricsRegisterCompleteResponse, ar as BiometricsRegisterOptions, as as BiometricsRegisterStartResponse, at as BiometryType, au as ConsumerPermissionsMap, av as DirectLoginForSingleMembershipConfig, m as IHeadlessB2BIDPClient, t as IHeadlessB2BMemberClient, v as IHeadlessB2BRBACClient, w as IHeadlessB2BSCIMClient, u as IHeadlessB2BSelfClient, s as IHeadlessB2BSessionClient, aw as IHeadlessBiometricsClient, I as IHeadlessIDPClient, k as IHeadlessImpersonationClient, g as IHeadlessOAuthClient, l as IHeadlessRBACClient, j as IHeadlessTOTPClient, i as IHeadlessUserClient, ax as IOAuthProvider, ay as IRNHeadlessOAuthClient, az as IRNOAuthProvider, aA as ImpersonationAuthenticateOptions, aB as ImpersonationAuthenticateResponse, aC as MemberInfo, aD as MemberSessionInfo, aE as OAuthAttachResponse, aF as OAuthAuthenticateOptions, aG as OAuthAuthenticateResponse, O as OAuthAuthorizeStartOptions, b as OAuthAuthorizeStartResponse, c as OAuthAuthorizeSubmitOptions, d as OAuthAuthorizeSubmitResponse, aH as OAuthGetURLOptions, e as OAuthLogoutStartOptions, f as OAuthLogoutStartResponse, aI as OAuthStartFailureReason, aJ as OAuthStartResponse, aK as RNOAuthGetURLOptions, aL as RedirectURLType, aM as SCIMConnection, aN as SCIMConnectionWithBearerToken, aO as SCIMConnectionWithNextBearerToken, aP as SCIMGroup, aQ as TOTPAuthenticateOptions, aR as TOTPAuthenticateResponse, aS as TOTPCreateOptions, aT as TOTPCreateResponse, aU as TOTPRecoverOptions, aV as TOTPRecoverResponse, aW as TOTPRecoveryCodesResponse, aX as TokenType, aY as UserGetConnectedAppsResponse, aZ as UserInfo, a_ as UserOnChangeCallback, a$ as UserUpdateOptions, b0 as UserUpdateResponse } from '../createAuthUrlHandler-CH6XQXol.js'; import * as react from 'react'; import { ReactNode, ComponentType } from 'react'; import { a as StytchProjectConfigurationInput, r as StytchProjectConfiguration, s as Callbacks, t as StringsOptions, ch as Member, cm as MemberSession, cQ as Organization, g as StytchClientOptions } from '../ui-pc_AYI_4.js'; export { A as AccessTokenExchangeFactor, v as AmazonOAuthFactor, w as AppleOAuthFactor, x as AuthenticateResponse, y as AuthenticationFactor, z as AuthenticatorAppFactor, D as B2BAllowedAuthMethods, E as B2BAllowedMFAMethods, F as B2BAuthenticateResponse, G as B2BAuthenticateResponseWithMFA, H as B2BAuthenticationFactor, J as B2BDiscoveryAuthenticateResponse, K as B2BDiscoveryIntermediateSessionsExchangeOptions, L as B2BDiscoveryIntermediateSessionsExchangeResponse, M as B2BDiscoveryOTPEmailAuthenticateOptions, N as B2BDiscoveryOTPEmailAuthenticateResponse, O as B2BDiscoveryOTPEmailSendOptions, P as B2BDiscoveryOTPEmailSendResponse, Q as B2BDiscoveryOrganizationsCreateOptions, R as B2BDiscoveryOrganizationsCreateResponse, T as B2BDiscoveryOrganizationsResponse, V as B2BEmailFactor, W as B2BGitHubOAuthFactor, X as B2BGoogleOAuthFactor, Y as B2BHubSpotOAuthFactor, Z as B2BImpersonationAuthenticateOptions, _ as B2BImpersonationAuthenticateResponse, $ as B2BMagicLinkLoginOrSignupOptions, a0 as B2BMagicLinkLoginOrSignupResponse, a1 as B2BMagicLinksAuthenticateOptions, a2 as B2BMagicLinksAuthenticateResponse, a3 as B2BMagicLinksDiscoveryAuthenticateOptions, a4 as B2BMagicLinksDiscoveryAuthenticateResponse, a5 as B2BMagicLinksEmailDiscoverySendOptions, a6 as B2BMagicLinksEmailDiscoverySendResponse, a7 as B2BMagicLinksInviteOptions, a8 as B2BMagicLinksInviteResponse, a9 as B2BMicrosoftOAuthFactor, aa as B2BOAuthAuthenticateOptions, ab as B2BOAuthAuthenticateResponse, ac as B2BOAuthDiscoveryAuthenticateResponse, ad as B2BOAuthDiscoveryStartOptions, ae as B2BOTPsEmailAuthenticateOptions, af as B2BOTPsEmailAuthenticateResponse, ag as B2BOTPsEmailLoginOrSignupOptions, ah as B2BOTPsEmailLoginOrSignupResponse, ai as B2BOrganizationsDeleteResponse, aj as B2BOrganizationsGetBySlugOptions, ak as B2BOrganizationsGetBySlugResponse, al as B2BOrganizationsGetConnectedAppOptions, am as B2BOrganizationsGetConnectedAppResponse, an as B2BOrganizationsGetConnectedAppsResponse, ao as B2BOrganizationsMemberDeleteMFAPhoneNumberResponse, ap as B2BOrganizationsMemberDeleteMFATOTPResponse, aq as B2BOrganizationsMemberDeletePasswordResponse, ar as B2BOrganizationsMemberGetConnectedAppsOptions, as as B2BOrganizationsMemberGetConnectedAppsResponse, at as B2BOrganizationsMemberRevokeConnectedAppOptions, au as B2BOrganizationsMemberRevokeConnectedAppResponse, av as B2BOrganizationsMemberStartEmailUpdateOptions, aw as B2BOrganizationsMemberStartEmailUpdateResponse, ax as B2BOrganizationsMemberUnlinkRetiredEmailOptions, ay as B2BOrganizationsMemberUnlinkRetiredEmailResponse, az as B2BOrganizationsMembersCreateOptions, aA as B2BOrganizationsMembersCreateResponse, aB as B2BOrganizationsMembersDeleteResponse, aC as B2BOrganizationsMembersReactivateResponse, aD as B2BOrganizationsMembersSearchOptions, aE as B2BOrganizationsMembersSearchResponse, aF as B2BOrganizationsMembersUpdateOptions, aG as B2BOrganizationsMembersUpdateResponse, aH as B2BOrganizationsUpdateOptions, aI as B2BOrganizationsUpdateResponse, aJ as B2BPasswordAuthenticateOptions, aK as B2BPasswordAuthenticateResponse, aL as B2BPasswordDiscoveryAuthenticateOptions, aM as B2BPasswordDiscoveryAuthenticateResponse, aN as B2BPasswordDiscoveryResetByEmailOptions, aO as B2BPasswordDiscoveryResetByEmailResponse, aP as B2BPasswordDiscoveryResetByEmailStartOptions, aQ as B2BPasswordDiscoveryResetByEmailStartResponse, aR as B2BPasswordResetByEmailOptions, aS as B2BPasswordResetByEmailResponse, aT as B2BPasswordResetByEmailStartOptions, aU as B2BPasswordResetByEmailStartResponse, aV as B2BPasswordResetByExistingPasswordOptions, aW as B2BPasswordResetByExistingPasswordResponse, aX as B2BPasswordResetBySessionOptions, aY as B2BPasswordResetBySessionResponse, aZ as B2BPasswordStrengthCheckOptions, a_ as B2BPasswordStrengthCheckResponse, a$ as B2BPhoneNumberFactor, b0 as B2BSMSAuthenticateOptions, b1 as B2BSMSAuthenticateResponse, b2 as B2BSMSSendOptions, b3 as B2BSMSSendResponse, b4 as B2BSSOCreateExternalConnectionOptions, b5 as B2BSSOCreateExternalConnectionResponse, b6 as B2BSSODeleteConnectionResponse, b7 as B2BSSODiscoverConnectionsResponse, b8 as B2BSSOGetConnectionsResponse, b9 as B2BSSOOIDCCreateConnectionOptions, ba as B2BSSOOIDCCreateConnectionResponse, bb as B2BSSOOIDCUpdateConnectionOptions, bc as B2BSSOOIDCUpdateConnectionResponse, bd as B2BSSOSAMLCreateConnectionOptions, be as B2BSSOSAMLCreateConnectionResponse, bf as B2BSSOSAMLDeleteEncryptionPrivateKeyOptions, bg as B2BSSOSAMLDeleteEncryptionPrivateKeyResponse, bh as B2BSSOSAMLDeleteVerificationCertificateOptions, bi as B2BSSOSAMLDeleteVerificationCertificateResponse, bj as B2BSSOSAMLUpdateConnectionByURLOptions, bk as B2BSSOSAMLUpdateConnectionByURLResponse, bl as B2BSSOSAMLUpdateConnectionOptions, bm as B2BSSOSAMLUpdateConnectionResponse, bn as B2BSSOUpdateExternalConnectionOptions, bo as B2BSSOUpdateExternalConnectionResponse, bp as B2BSlackOAuthFactor, B as B2BState, bq as B2BTOTPAuthenticateOptions, br as B2BTOTPAuthenticateResponse, bs as B2BTOTPCreateOptions, bt as B2BTOTPCreateResponse, bu as BiometricFactor, bv as BiometricRegistrationIdIsNullOrBlank, bw as BiometricsAlreadyEnrolledError, bx as BiometricsFailedError, by as BiometricsUnavailableError, bz as BitbucketOAuthFactor, bA as ChallengeSigningFailedError, bB as CoinbaseOAuthFactor, bC as ConnectedAppPublic, C as ConsumerState, bD as CryptoWalletAuthenticateOptions, bE as CryptoWalletAuthenticateResponse, bF as CryptoWalletAuthenticateStartOptions, bG as CryptoWalletAuthenticateStartResponse, bH as CryptoWalletFactor, bI as DFPNotConfigured, bJ as DeleteResponse, bK as DeviceAttributeDetails, bL as DeviceCredentialsNotAllowedError, bM as DiscordOAuthFactor, bN as DiscoveredOrganization, bO as EmailFactor, bP as EmailMagicLinksOptions, bQ as EncryptionPrivateKey, bR as ExternalConnection, bS as FacebookOAuthFactor, bT as FailedCodeChallengeError, bU as FailedToDecryptDataError, bV as FigmaOAuthFactor, bW as GitLabOAuthFactor, bX as GithubOAuthFactor, bY as GoogleOAuthFactor, bZ as IDPConsentItem, b_ as IDPConsentScreenManifest, b$ as IDPConsentSection, c0 as IDPOAuthFlowMissingParamError, l as IHeadlessB2BDiscoveryClient, q as IHeadlessB2BImpersonationClient, i as IHeadlessB2BMagicLinksClient, h as IHeadlessB2BOAuthClient, n as IHeadlessB2BOTPsClient, j as IHeadlessB2BOrganizationClient, m as IHeadlessB2BPasswordClient, p as IHeadlessB2BRecoveryCodesClient, k as IHeadlessB2BSSOClient, o as IHeadlessB2BTOTPsClient, d as IHeadlessCryptoWalletClient, I as IHeadlessMagicLinksClient, c as IHeadlessOTPsClient, f as IHeadlessPasswordClient, b as IHeadlessSessionClient, e as IHeadlessWebAuthnClient, c1 as InternalError, c2 as InvalidAuthorizationCredentialError, c3 as InvalidCredentialTypeError, c4 as InvalidPrivateKeyLength, c5 as InvalidRedirectSchemeError, c6 as InvalidStartUrlError, c7 as JSONDataNotConvertibleToStringError, c8 as KeyInvalidatedError, c9 as KeystoreUnavailableError, ca as LinkedInOAuthFactor, cb as MagicLinksAuthenticateOptions, cc as MagicLinksAuthenticateResponse, cd as MagicLinksLoginOrCreateOptions, ce as MagicLinksLoginOrCreateResponse, cf as MagicLinksSendOptions, cg as MagicLinksSendResponse, ci as MemberEmailUpdateDeliveryMethod, cj as MemberOptions, ck as MemberResponseCommon, cl as MemberRole, cn as MfaRequired, co as MicrosoftOAuthFactor, cp as MissingAttestationObjectError, cq as MissingAuthorizationCredentialIDTokenError, cr as MissingCipherIv, cs as MissingGoogleClientIDError, ct as MissingPKCEError, cu as MissingPublicKeyError, cv as MissingUrlError, cw as NoBiometricsEnrolledError, cx as NoBiometricsRegistrationError, cy as NoCredentialsPresentError, cz as NoCurrentSessionError, cA as OAuthDiscoveryAuthenticateOptions, cB as OAuthOptions, cC as OAuthProviders, cD as OAuthRegistration, cE as OAuthStartOptions, cF as OIDCConnection, cG as OTPAuthenticateOptions, cH as OTPCodeEmailOptions, cI as OTPCodeOptions, cJ as OTPCodeSMSOptions, cK as OTPMethods, cL as OTPsAuthenticateResponse, cM as OTPsLoginOrCreateResponse, cN as OTPsSendResponse, cO as OneTapPositions, cP as OneTapStyleConfig, cR as OrganizationBySlugMatch, cS as OrganizationInfo, cT as OtpOptions, cU as PasskeyOptions, cV as PasskeysInvalidEncoding, cW as PasskeysMisconfigured, cX as PasskeysUnsupportedError, cY as PasswordAuthenticateOptions, cZ as PasswordAuthenticateResponse, c_ as PasswordCreateOptions, c$ as PasswordCreateResponse, d0 as PasswordFactor, d1 as PasswordOptions, d2 as PasswordResetByEmailOptions, d3 as PasswordResetByEmailResponse, d4 as PasswordResetByEmailStartOptions, d5 as PasswordResetByEmailStartResponse, d6 as PasswordResetByExistingPasswordOptions, d7 as PasswordResetByExistingPasswordResponse, d8 as PasswordResetBySessionOptions, d9 as PasswordResetBySessionResponse, da as PasswordStrengthCheckOptions, db as PasswordStrengthCheckResponse, dc as PhoneNumberFactor, dd as PrimaryRequired, de as ProviderOptions, df as ProvidersOptions, dg as RNUIEmailMagicLinksOptions, dh as RNUIOAuthOptions, di as RNUIOTPOptions, dj as RNUIPasswordOptions, dk as RNUIProductConfig, dl as RNUIProducts, dm as RandomNumberGenerationFailed, dn as RecoveryCodeFactor, dp as RecoveryCodeGetResponse, dq as RecoveryCodeRecoverOptions, dr as RecoveryCodeRecoverResponse, ds as RecoveryCodeRotateResponse, dt as ResponseCommon, du as RetiredEmailAddress, dv as SAMLConnection, dw as SDKAPIUnreachableError, dx as SDKDeviceHistory, dy as SDKNotConfiguredError, dz as SIWEParams, dA as SSOActiveConnection, dB as SSOAuthenticateOptions, dC as SSOAuthenticateResponse, dD as SSOStartOptions, dE as SalesforceOAuthFactor, dF as ScopeResult, dG as SearchQueryOperand, u as Session, dH as SessionAccessTokenExchangeOptions, dI as SessionAccessTokenExchangeResponse, dJ as SessionAttestOptions, dK as SessionAttestResponse, dL as SessionAuthenticateOptions, dM as SessionAuthenticateResponse, dN as SessionDurationOptions, dO as SessionInfo, dP as SessionOnChangeCallback, dQ as SessionOptions, dR as SessionRevokeOptions, dS as SessionRevokeResponse, dT as SessionTokens, dU as SessionTokensUpdate, dV as SignInWithAppleMisconfigured, dW as SlackOAuthFactor, dX as SnapchatOAuthFactor, S as StyleConfig, dY as StytchAPIError, dZ as StytchAPISchemaError, d_ as StytchAPIUnreachableError, d$ as StytchError, e0 as StytchEvent, e1 as StytchEventType, e2 as StytchSDKAPIError, e3 as StytchSDKError, e4 as StytchSDKErrorOptions, e5 as StytchSDKSchemaError, e6 as StytchSDKUIError, e7 as StytchSDKUsageError, e8 as TikTokOAuthFactor, e9 as TwitchOAuthFactor, ea as TwitterOAuthFactor, eb as UNRECOVERABLE_ERROR_TYPES, ec as UnsubscribeFunction, ed as UpdateResponse, U as User, ee as UserCancellationError, ef as UserLockedOutError, eg as Wallets, eh as WebAuthnAuthenticateResponse, ei as WebAuthnAuthenticateStartOptions, ej as WebAuthnAuthenticateStartResponse, ek as WebAuthnFactor, el as WebAuthnRegisterResponse, em as WebAuthnRegisterStartOptions, en as WebAuthnRegisterStartResponse, eo as WebAuthnRegistration, ep as WebAuthnUpdateOptions, eq as WebAuthnUpdateResponse, er as X509Certificate, es as YahooOAuthFactor, et as errorToStytchError, eu as locale } from '../ui-pc_AYI_4.js'; import { g as StytchB2BProduct, B as B2BSDKConfig, h as B2BIDPConsentManifestGenerator, A as AuthTokenParams, j as StytchB2BUIConfig, P as PresentationConfig, D as DeprecatedSDKConfig } from '../themes-BrPsKJhz.js'; export { k as B2BIDPSDKConfig, d as defaultDarkTheme, e as defaultTheme, i as iconsBlack, f as iconsWhite, s as shadcnTheme } from '../themes-BrPsKJhz.js'; import { S as StytchB2BClient } from '../StytchB2BClient-79JK1KWk.js'; export { I as IconRegistry, P as PresentationOptions, T as Theme } from '../PresentationConfig-rSvBlImP.js'; export { O as OAuthAuthorizeParams, a as OAuthLogoutParams, p as parseOAuthAuthorizeParams, b as parseOAuthLogoutParams } from '../idpHelpers-CewlCaGG.js'; import '../StytchClient-gn1ElJRA.js'; type MessageKey = "button.continue" | "button.continueWithEmail" | "button.createAnOrganization" | "button.emailCode" | "button.emailLink" | "button.emailResent" | "button.goBack" | "button.hidePassword" | "button.loginWithoutPassword" | "button.resendEmail" | "button.retry" | "button.showPassword" | "button.totpQrManual" | "button.totpQrRetry" | "button.tryDifferentEmailAddress" | "button.usePassword" | "emailConfirmation.content" | "emailConfirmation.emailSent" | "emailConfirmation.title" | "emailMethodSelection.code" | "emailMethodSelection.link" | "emailMethodSelection.title" | "emailVerification.content" | "emailVerification.title" | "error.adBlockerDetected" | "error.authPolicyNoOrg" | "error.authPolicyWithOrg" | "error.breachedPassword" | "error.claimedDomain" | "error.default" | "error.duplicatePhoneNumber" | "error.emailNoAccessToOrg" | "error.emailNotFound" | "error.eml" | "error.inactiveEmail" | "error.invalidCode" | "error.invalidEmail" | "error.invalidEmailAddress" | "error.invalidPhoneNumber" | "error.invalidPhoneNumberCountryCode" | "error.invalidSessionToken" | "error.jitIneligible" | "error.memberPasswordNotFound" | "error.noUserPassword" | "error.oauthFlowCallbackError" | "error.oauthTokenNotFound" | "error.organization" | "error.otpCodeNotFound" | "error.passcodeInvalid" | "error.resetPassword" | "error.sessionNotFound" | "error.title" | "error.unableToAuthMagicLink" | "error.unauthorizedAction" | "error.unauthorizedCredentials" | "error.unsubscribedPhoneNumber" | "error.userLockLimitReached" | "error.userUnauthenticated" | "formField.backupCode.ariaLabel" | "formField.backupCode.placeholder" | "formField.countryCode.label" | "formField.email.label" | "formField.email.placeholder" | "formField.orgSlug.label" | "formField.otp.ariaLabel" | "formField.passcode.status.verifying" | "formField.password.label" | "formField.phone.label" | "idpConsent.allowClientTo" | "idpConsent.button.allow" | "idpConsent.button.deny" | "idpConsent.customScopes.title" | "idpConsent.defaultClientName" | "idpConsent.denied" | "idpConsent.noActiveSession" | "idpConsent.noPermissionsToGrant" | "idpConsent.signIn.title" | "idpLogout.confirmMessage" | "idpLogout.no" | "idpLogout.notLoggedOut" | "idpLogout.title" | "idpLogout.yes" | "link.openInGmail" | "link.openInOutlook" | "link.openInYahoo" | "link.signupResetPassword" | "loading.label" | "login.loading" | "login.success.content" | "login.title" | "methodDivider.text" | "mfa.enrollment.content" | "mfa.enrollment.option.sms" | "mfa.enrollment.option.totp" | "mfa.enrollment.title" | "mfa.methods.authenticatorApp" | "mfa.smsEnrollment.content" | "mfa.smsEnrollment.title" | "mfa.totpEnrollment.content" | "mfa.totpEnrollment.copyCode.codeCopied" | "mfa.totpEnrollment.copyCode.label" | "mfa.totpEnrollment.title" | "mfa.totpEnrollment.toast.copyFailed" | "mfa.totpEntry.getNewCode" | "mfa.totpEntry.switchToSms" | "mfa.totpEntry.useBackupCode" | "mfaTotpEnrollment.qrAltText" | "oauth.continueWithGitHub" | "oauth.continueWithGoogle" | "oauth.continueWithHubSpot" | "oauth.continueWithMicrosoft" | "oauth.continueWithSlack" | "organizationDiscovery.acceptInvite" | "organizationDiscovery.join" | "organizationDiscovery.noOrgs.content" | "organizationDiscovery.noOrgs.create.content" | "organizationDiscovery.noOrgs.create.title" | "organizationDiscovery.noOrgs.title" | "organizationDiscovery.title" | "organizationLogin.title" | "organizationLogin.titleUnknown" | "passcode.codeSent" | "passcode.expirationCountdown" | "passcode.expired" | "passcode.resendCode" | "passcode.sentConfirmation" | "passcode.title" | "password.forgot.content.discovery" | "password.forgot.content.organization" | "password.forgot.title" | "password.login.title" | "password.requirement.fulfilled" | "password.requirement.notFulfilled" | "password.requirement.suggestion" | "password.requirement.warning" | "password.reset.emailSent.content" | "password.reset.emailSent.title" | "password.setNew.title" | "password.strength" | "password.strength.accepted" | "password.strength.notAccepted" | "password.strength.requirementsNotMet" | "password.strengthError.breached" | "password.strengthError.complexity" | "password.strengthError.minimumLength" | "password.verification.content" | "password.verification.title" | "password.zxcvbn.suggestion.addWords" | "password.zxcvbn.suggestion.allUppercase" | "password.zxcvbn.suggestion.avoidDatesAndYearsAssociatedWithYou" | "password.zxcvbn.suggestion.avoidRecentYears" | "password.zxcvbn.suggestion.avoidRepeats" | "password.zxcvbn.suggestion.avoidSequences" | "password.zxcvbn.suggestion.avoidYearsAssociatedWithYou" | "password.zxcvbn.suggestion.capitalization" | "password.zxcvbn.suggestion.longerKeyboardPattern" | "password.zxcvbn.suggestion.noSymbolsDigitsUppercase" | "password.zxcvbn.suggestion.predictableSubstitutions" | "password.zxcvbn.suggestion.reversed" | "password.zxcvbn.suggestion.useAFewWords" | "password.zxcvbn.warning.commonNames" | "password.zxcvbn.warning.dates" | "password.zxcvbn.warning.longerRepeats" | "password.zxcvbn.warning.names" | "password.zxcvbn.warning.recentYears" | "password.zxcvbn.warning.repeats" | "password.zxcvbn.warning.sequences" | "password.zxcvbn.warning.shortKeyboardPatterns" | "password.zxcvbn.warning.similarToCommonPassword" | "password.zxcvbn.warning.straightRows" | "password.zxcvbn.warning.top100CommonPassword" | "password.zxcvbn.warning.top10CommonPassword" | "password.zxcvbn.warning.veryCommonPassword" | "password.zxcvbn.warning.wordByItself" | "provider.continueWith" | "provider.continueWithSSO" | "provider.lastUsed" | "recoveryCodes.entry.content" | "recoveryCodes.entry.error.invalidCode" | "recoveryCodes.entry.title" | "recoveryCodes.filename.noOrganizationName" | "recoveryCodes.filename.withOrganizationName" | "recoveryCodes.save.button.copied" | "recoveryCodes.save.button.copyAll" | "recoveryCodes.save.button.done" | "recoveryCodes.save.button.download" | "recoveryCodes.save.content" | "recoveryCodes.save.title" | "recoveryCodes.save.toast.copyFailed" | "ssoDiscovery.email.error.unknown" | "ssoDiscovery.email.title" | "ssoDiscovery.fallback.button.reset" | "ssoDiscovery.fallback.content" | "ssoDiscovery.fallback.error.orgNotFound" | "ssoDiscovery.fallback.error.unknown" | "ssoDiscovery.fallback.title" | "ssoDiscovery.title" | "success.title" | "totp.content" | "totp.setupQr.content" | "totp.setupQr.title" | "totp.title" | "watermark.altText" | "watermark.poweredBy"; type Messages = Partial>; declare const emailMagicLinks: StytchB2BProduct; declare const emailOtp: StytchB2BProduct; declare const sso: StytchB2BProduct; declare const passwords: StytchB2BProduct; declare const oauth: StytchB2BProduct; declare const B2BProducts_emailMagicLinks: typeof emailMagicLinks; declare const B2BProducts_emailOtp: typeof emailOtp; declare const B2BProducts_oauth: typeof oauth; declare const B2BProducts_passwords: typeof passwords; declare const B2BProducts_sso: typeof sso; declare namespace B2BProducts { export { B2BProducts_emailMagicLinks as emailMagicLinks, B2BProducts_emailOtp as emailOtp, B2BProducts_oauth as oauth, B2BProducts_passwords as passwords, B2BProducts_sso as sso, }; } type B2BIdentityProviderProps$1 = Pick, 'presentation' | 'callbacks' | 'strings'> & { /** * Optional {@link B2BIDPConsentManifestGenerator} to customize the consent screen. */ getIDPConsentManifest?: B2BIDPConsentManifestGenerator; /** * Optional {@link AuthTokenParams} to provide a trusted auth token to provide for attestation prior to running OAuth flow. */ trustedAuthTokenParams?: AuthTokenParams; }; declare const StytchB2B: react.ComponentType>; config: StytchB2BUIConfig; presentation?: PresentationConfig; callbacks?: Callbacks> | undefined; } & StringsOptions & DeprecatedSDKConfig, "client">>; declare const B2BIdentityProvider: react.ComponentType>>; interface StytchB2BProps extends StringsOptions { /** * An optional {@link PresentationConfig} to customize the UI presentation. */ presentation?: PresentationConfig; /** * An optional {@link Callbacks} object. * * @example * { * onError: ({message}) => { * console.error('Stytch error', message) * } * } * * @example * { * onEvent: ({type, data}) => { * if(type === StytchEventType.B2BMagicLinkAuthenticate) { * console.log('Logged in with', data); * } * } * } */ callbacks?: Callbacks; /** * A {@link StytchB2BUIConfig} object. Add products and product-specific config to this object to change the login methods shown. * * * @example * { * products: [B2BProducts.emailMagicLinks], * authFlowType: "Discovery", * emailMagicLinksOptions: { * discoveryRedirectURL: 'https://example.com/authenticate', * }, * sessionOptions: { * sessionDurationMinutes: 60, * }, * } * * @example * { * products: [B2BProducts.emailMagicLinks, B2BProducts.sso], * authFlowType: "Organization", * emailMagicLinksOptions: { * loginRedirectURL: 'https://example.com/authenticate', * signupRedirectURL: 'https://example.com/authenticate', * }, * ssoOptions: { * loginRedirectURL: 'https://example.com/authenticate', * signupRedirectURL: 'https://example.com/authenticate', * }, * sessionOptions: { * sessionDurationMinutes: 60, * }, * } */ config: StytchB2BUIConfig; } type B2BIdentityProviderProps = Omit & { /** * Optional {@link B2BIDPConsentManifestGenerator} to customize the consent screen. */ getIDPConsentManifest?: B2BIDPConsentManifestGenerator; /** * Optional trusted auth token parameters to attest before the OAuth flow. */ trustedAuthTokenParams?: AuthTokenParams; }; type SWRMemberUninitialized = { /** * Either the active {@link Member} object, or null if the member is not logged in. */ member: null; /** * If true, indicates that the value returned is from the application cache and a state refresh is in progress. */ fromCache: false; /** * If true, indicates that the SDK has completed initialization. */ isInitialized: false; }; type SWRMemberInitialized = { /** * Either the active {@link Member} object, or null if the member is not logged in. */ member: Member | null; /** * If true, indicates that the value returned is from the application cache and a state refresh is in progress. */ fromCache: boolean; /** * If true, indicates that the SDK has completed initialization. */ isInitialized: true; }; type SWRMember = TAlwaysInitialized extends true ? SWRMemberInitialized : SWRMemberInitialized | SWRMemberUninitialized; type SWRMemberSessionUninitialized = { /** * Either the active {@link MemberSession} object, or null if the member is not logged in. */ session: null; /** * If true, indicates that the value returned is from the application cache and a state refresh is in progress. */ fromCache: false; /** * If true, indicates that the SDK has completed initialization. */ isInitialized: false; }; type SWRMemberSessionInitialized = { /** * Either the active {@link MemberSession} object, or null if the member is not logged in. */ session: MemberSession | null; /** * If true, indicates that the value returned is from the application cache and a state refresh is in progress. */ fromCache: boolean; /** * If true, indicates that the SDK has completed initialization. */ isInitialized: true; }; type SWRMemberSession = TAlwaysInitialized extends true ? SWRMemberSessionInitialized : SWRMemberSessionInitialized | SWRMemberSessionUninitialized; type SWROrganizationUninitialized = { /** * Either the active {@link Organization} object, or null if the member is not logged in. */ organization: null; /** * If true, indicates that the value returned is from the application cache and a state refresh is in progress. */ fromCache: false; /** * If true, indicates that the SDK has completed initialization. */ isInitialized: false; }; type SWROrganizationInitialized = { /** * Either the active {@link Organization} object, or null if the member is not logged in. */ organization: Organization | null; /** * If true, indicates that the value returned is from the application cache and a state refresh is in progress. */ fromCache: boolean; /** * If true, indicates that the SDK has completed initialization. */ isInitialized: true; }; type SWROrganization = TAlwaysInitialized extends true ? SWROrganizationInitialized : SWROrganizationInitialized | SWROrganizationUninitialized; /** * Returns the active Member. * The Stytch SDKs are used for client-side authentication and session management. * Check the isInitialized property to determine if the SDK has completed initialization. * Check the fromCache property to determine if the member data is from persistent storage. * @example * const {member, isInitialized, fromCache} = useStytchMember(); * if (!isInitialized) { * return

Loading...

; * } * return (

Welcome, {member.name}

); */ declare const useStytchMember: () => SWRMember; /** * Returns the active member's Stytch member session. * The Stytch SDKs are used for client-side authentication and session management. * Check the isInitialized property to determine if the SDK has completed initialization. * Check the fromCache property to determine if the session data is from persistent storage. * @example * const {session, isInitialized, fromCache} = useStytchMemberSession(); * useEffect(() => { * if (!isInitialized) { * return; * } * if (!session) { * router.replace('/login') * } * }, [session, isInitialized]); */ declare const useStytchMemberSession: () => SWRMemberSession; /** * Returns the active Stytch organization. * The Stytch SDKs are used for client-side authentication and session management. * Check the isInitialized property to determine if the SDK has completed initialization. * Check the fromCache property to determine if the organization data is from persistent storage. * @example * const {organization, isInitialized, fromCache} = useStytchOrganization(); * if (!isInitialized) { * return

Loading...

; * } * return (

Welcome to {organization.organization_name}

); */ declare const useStytchOrganization: () => SWROrganization; type SWRIsAuthorizedUninitialized = { /** * Whether the logged-in member is allowed to perform the specified action on the specified resource. */ isAuthorized: false; /** * If true, indicates that the value returned is from the application cache and a state refresh is in progress. */ fromCache: false; /** * If true, indicates that the SDK has completed initialization. */ isInitialized: false; }; type SWRIsAuthorizedInitialized = { /** * Whether the logged-in member is allowed to perform the specified action on the specified resource. */ isAuthorized: boolean; /** * If true, indicates that the value returned is from the application cache and a state refresh is in progress. */ fromCache: boolean; /** * If true, indicates that the SDK has completed initialization. */ isInitialized: boolean; }; type SWRIsAuthorized = TAlwaysInitialized extends true ? SWRIsAuthorizedInitialized : SWRIsAuthorizedInitialized | SWRIsAuthorizedUninitialized; /** * Determines whether the logged-in member is allowed to perform the specified action on the specified resource. * Returns `true` if the member can perform the action, `false` otherwise. * * If the member is not logged in, this method will always return false. * If the resource or action provided are not valid for the configured RBAC policy, this method will return false. * * Remember - authorization checks for sensitive actions should always occur on the backend as well. * @example * const { isAuthorized } = useStytchIsAuthorized('documents', 'edit'); * return */ declare const useStytchIsAuthorized: (resourceId: string, action: string) => SWRIsAuthorized; /** * Returns the Stytch B2B client stored in the Stytch context. * * @example * const stytch = useStytchB2BClient(); * useEffect(() => { * stytch.magicLinks.authenticate('...') * }, [stytch]); */ declare const useStytchB2BClient: () => StytchB2BClient; declare const withStytchB2BClient: (Component: ComponentType; }>) => ComponentType; declare const withStytchMember: (Component: ComponentType) => ComponentType; declare const withStytchMemberSession: (Component: ComponentType) => ComponentType; declare const withStytchOrganization: (Component: ComponentType) => ComponentType; /** * Wrap your component with this HOC in order to receive the permissions for the logged-in member. * Evaluates all permissions granted to the logged-in member. * Returns a Record> response indicating the member's permissions. * Each boolean will be `true` if the member can perform the action, `false` otherwise. * * If the member is not logged in, all values will be false. * * Remember - authorization checks for sensitive actions should always occur on the backend as well. * @example * type Permissions = { * document: 'create' | 'read' | 'write * image: 'create' | 'read' * } * * const MyComponent = (props) => { * const canEditDocuments = props.stytchPermissions.document.edit; * const canReadImages = props.stytchPermissions.image.read; * } * return withStytchPermissions(MyComponent) */ declare const withStytchPermissions: , T extends object>(Component: ComponentType; }>) => ComponentType; interface StytchB2BProviderProps { /** * A Stytch client instance, created using either {@link createStytchB2BClient} or {@link createStytchB2BClient} */ stytch: StytchB2BClient; /** * When true, the provider will assume that the component will only be * rendered in a browser environment, either in a single-page application or * after completing hydration of a server-rendered application. This allows * cached values to be retrieved from the browser on the first render, meaning * that the `isInitialized` value returned from Stytch hooks will be `true` * starting from the first render. * * When `false`, the provider will defer initialization until after the first * render, and `isInitialized` will initially be `false`. * * This value defaults to `false` in `@stytch/nextjs`. */ assumeHydrated?: boolean; children?: ReactNode; } /** * The Stytch Context Provider. * Wrap your application with this component in order to use Stytch everywhere in your app. * @example * const stytch = createStytchB2BClient('public-token-') * * return ( * * * * ) */ declare const StytchB2BProvider: ({ stytch, children, assumeHydrated, }: StytchB2BProviderProps) => JSX.Element; /** * @deprecated - use {@link createStytchB2BClient} instead */ declare const createStytchB2BUIClient: (rawPublicToken: string, options?: StytchClientOptions | undefined) => StytchB2BClient; export { B2BIDPConsentManifestGenerator, B2BIdentityProvider, B2BProducts, B2BSDKConfig, Callbacks, DeprecatedSDKConfig, Member, MemberSession, Organization, PermissionsMap, PresentationConfig, StringsOptions, StytchB2B, StytchB2BClient, StytchB2BProvider, StytchB2BUIConfig, StytchClientOptions, StytchProjectConfiguration, StytchProjectConfigurationInput, createStytchB2BUIClient, useStytchB2BClient, useStytchIsAuthorized, useStytchMember, useStytchMemberSession, useStytchOrganization, withStytchB2BClient, withStytchMember, withStytchMemberSession, withStytchOrganization, withStytchPermissions }; export type { B2BIdentityProviderProps, Messages as Strings, StytchB2BProps, StytchB2BProviderProps };