import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { LoginId, RegisterV2Options, StateMachineResponse, RegisterV2ApplicationErrors, RegisterV2ValidationErrors, ValidateEmailResponse, LoginV2Options, LoginV2ApplicationErrors, LoginV2ValidationErrors, SignOnOptions, SignOnResponse, LogoutOptions, RawHttpResponse } from './index.typings.mjs'; export { AccountInfo, Address, AddressTag, AddressTagWithLiterals, AddressWrapper, Authentication, AuthenticatorConnection, CallVerifyData, CaptchaDecisionReason, CaptchaDecisionReasonWithLiterals, CaptchaFlow, CaptchaFlowWithLiterals, CaptchaIdentityType, CaptchaIdentityTypeWithLiterals, CaptchaKind, CaptchaKindWithLiterals, CaptchaOutcome, CaptchaOutcomeWithLiterals, CaptchaResult, CaptchaResultWithLiterals, CaptchaToken, CaptchaTokenTokenOneOf, CaptchaVerification, ChangePasswordRequest, ChangePasswordResponse, ConnectIdpRequest, Connection, ConnectionTypeOneOf, CustomField, CustomValue, CustomValueValueOneOf, DeliveryMethod, DeliveryMethodWithLiterals, Email, EmailTag, EmailTagWithLiterals, EmailValidationFailure, ExternalEmailVerifyData, Factor, FactorStatus, FactorStatusWithLiterals, FactorType, FactorTypeWithLiterals, GetWebauthnChallengeRequest, GetWebauthnChallengeResponse, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, Identity, IdentityProfile, IdpConnection, ListValue, LoginCallbackRequest, LoginIdTypeOneOf, LoginV2Request, LoginWithIdpConnectionRedirectRequest, LoginWithIdpConnectionRequest, LoginWithIdpConnectionTokenParamsRequest, LogoutRequest, MapValue, MessageEnvelope, Metadata, MfaChallengeData, MfaReason, MfaReasonWithLiterals, Organization, PathParametersEntry, Phone, PhoneTag, PhoneTagWithLiterals, PrivacyStatus, PrivacyStatusWithLiterals, PushChallengeData, PushVerifyData, QueryParametersEntry, RawHttpRequest, Reason, ReasonWithLiterals, RecaptchaForClientSiteKey, RecoveryCodeVerifyData, RegisterV2Request, RequireFirstFactorData, RequireMfaData, SecondaryEmail, SignOnRequest, SmsVerifyData, StateMachineResponseStateDataOneOf, StateType, StateTypeWithLiterals, Status, StatusName, StatusNameWithLiterals, StatusV2, StatusWithLiterals, TenantType, TenantTypeWithLiterals, TotpVerifyData, V1CustomValue, V1CustomValueValueOneOf, V1Factor, V1ListValue, V1MapValue, V1Reason, V1ReasonWithLiterals, ValidateEmailRequest, VerificationChallenge, VerificationChallengeFactorChallengeDataOneOf, VerifyRequest, VerifyRequestFactorDataOneOf, WebAuthnChallengeData, WebAuthnVerifyData, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs'; declare function registerV2$1(httpClient: HttpClient): RegisterV2Signature; interface RegisterV2Signature { /** * Registers a new member. * * Typically, after a successful registration, you generate and use member tokens for the * registered member so that subsequent API calls are called as part of a member session. * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens). * * If the email used to register the member already exists as a contact email, the registering * member need to verify the email address using a code that is sent to the address. * @param - Identifier of the registering member. */ (loginId: LoginId, options?: RegisterV2Options): Promise & { __applicationErrorsType?: RegisterV2ApplicationErrors; __validationErrorsType?: RegisterV2ValidationErrors; }>; } declare function validateEmail$1(httpClient: HttpClient): ValidateEmailSignature; interface ValidateEmailSignature { /** */ (email: string): Promise>; } declare function loginV2$1(httpClient: HttpClient): LoginV2Signature; interface LoginV2Signature { /** * Logs in an existing member. * * Typically, after a successful login, you generate and use member tokens for the * logged-in member so that subsequent API calls are called as part of a member session. * Use the `sessionToken` in the response to [get the site member's access and refresh tokens](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/handle-members-with-custom-login#get-the-site-members-access-and-refresh-tokens). * @param - Identifier of identity logging in. */ (loginId: LoginId, options?: LoginV2Options): Promise & { __applicationErrorsType?: LoginV2ApplicationErrors; __validationErrorsType?: LoginV2ValidationErrors; }>; } declare function changePassword$1(httpClient: HttpClient): ChangePasswordSignature; interface ChangePasswordSignature { /** * Changes the password of a logged-in member. The member must have a valid session to use this method. * * The member's session remains valid after password change. * * The new password must meet the site's configured password requirements for length * and complexity. These requirements are enforced automatically when processing the request. * @param - New password to set for the logged-in member. * * The password must meet the site's configured password requirements for length and complexity. */ (newPassword: string): Promise; } declare function signOn$1(httpClient: HttpClient): SignOnSignature; interface SignOnSignature { /** * Authenticates a member without credentials and returns a session token. * * This method provides authentication that automatically creates or updates * member accounts as needed during the authentication process. * Use this only for trusted integrations and scenarios where you already have verified user information. * @param - Member identifier for authentication. * * Currently only email addresses are supported. */ (loginId: LoginId, options?: SignOnOptions): Promise>; } declare function logout$1(httpClient: HttpClient): LogoutSignature; interface LogoutSignature { /** * Terminates the member's session and clears authentication cookies. * * Returns the following: * - `body`: HTML content for the logout response * - `statusCode`: HTTP status code (200 for success, 302 for redirect) * - `headers`: Array of key-value pairs including: * - `Set-Cookie` headers to remove all session cookies * - `Location` header (when `postLogoutRedirectUri` is provided, with 302 status) */ (options?: LogoutOptions): Promise>; } declare const registerV2: MaybeContext & typeof registerV2$1>; declare const validateEmail: MaybeContext & typeof validateEmail$1>; declare const loginV2: MaybeContext & typeof loginV2$1>; declare const changePassword: MaybeContext & typeof changePassword$1>; declare const signOn: MaybeContext & typeof signOn$1>; declare const logout: MaybeContext & typeof logout$1>; export { LoginId, LoginV2ApplicationErrors, LoginV2Options, LoginV2ValidationErrors, LogoutOptions, RawHttpResponse, RegisterV2ApplicationErrors, RegisterV2Options, RegisterV2ValidationErrors, SignOnOptions, SignOnResponse, StateMachineResponse, ValidateEmailResponse, changePassword, loginV2, logout, registerV2, signOn, validateEmail };