/// import { RecipeInterface } from "supertokens-web-js/recipe/passwordless"; import { UserInput } from "./types"; import { GetRedirectionURLContext, PreAPIHookContext, OnHandleEventContext } from "./types"; import type { UserContext } from "../../types"; import type { RecipeFunctionOptions } from "supertokens-web-js/recipe/passwordless"; import type { PasswordlessFlowType } from "supertokens-web-js/recipe/passwordless/types"; import type { User } from "supertokens-web-js/types"; export default class Wrapper { static init( config: UserInput ): import("../../types").RecipeInitResult< never, import("./types").PreAndPostAPIHookAction, OnHandleEventContext, import("./types").NormalisedConfig >; static signOut(input?: { userContext?: UserContext }): Promise; static createCode( input: | { email: string; shouldTryLinkingWithSessionUser?: boolean; userContext?: UserContext; options?: RecipeFunctionOptions; } | { phoneNumber: string; shouldTryLinkingWithSessionUser?: boolean; userContext?: UserContext; options?: RecipeFunctionOptions; } ): Promise< | { status: "OK"; deviceId: string; preAuthSessionId: string; flowType: PasswordlessFlowType; fetchResponse: Response; } | { status: "SIGN_IN_UP_NOT_ALLOWED"; reason: string; } >; static resendCode(input?: { userContext?: UserContext; options?: RecipeFunctionOptions }): Promise<{ status: "OK" | "RESTART_FLOW_ERROR"; fetchResponse: Response; }>; static consumeCode( input?: | { userInputCode: string; userContext?: UserContext; options?: RecipeFunctionOptions; } | { userContext?: UserContext; options?: RecipeFunctionOptions; } ): Promise< | { status: "OK"; createdNewRecipeUser: boolean; user: User; fetchResponse: Response; } | { status: "INCORRECT_USER_INPUT_CODE_ERROR" | "EXPIRED_USER_INPUT_CODE_ERROR"; failedCodeInputAttemptCount: number; maximumCodeInputAttempts: number; fetchResponse: Response; } | { status: "RESTART_FLOW_ERROR"; fetchResponse: Response; } | { status: "SIGN_IN_UP_NOT_ALLOWED"; reason: string; fetchResponse: Response; } >; static getLinkCodeFromURL(input?: { userContext?: UserContext }): string; static getPreAuthSessionIdFromURL(input?: { userContext?: UserContext }): string; static doesEmailExist(input: { email: string; userContext?: UserContext; options?: RecipeFunctionOptions; }): Promise<{ status: "OK"; doesExist: boolean; fetchResponse: Response; }>; static doesPhoneNumberExist(input: { phoneNumber: string; userContext?: UserContext; options?: RecipeFunctionOptions; }): Promise<{ status: "OK"; doesExist: boolean; fetchResponse: Response; }>; static getLoginAttemptInfo(input?: { userContext?: UserContext }): Promise< | undefined | ({ deviceId: string; preAuthSessionId: string; flowType: PasswordlessFlowType; } & CustomLoginAttemptInfoProperties) >; static setLoginAttemptInfo(input: { attemptInfo: { deviceId: string; preAuthSessionId: string; flowType: PasswordlessFlowType; } & CustomStateProperties; userContext?: UserContext; }): Promise; static clearLoginAttemptInfo(input?: { userContext?: UserContext }): Promise; static ComponentsOverrideProvider: import("react").FC< import("react").PropsWithChildren<{ components: import("./types").ComponentOverrideMap; }> >; } declare const init: typeof Wrapper.init; declare const createCode: typeof Wrapper.createCode; declare const resendCode: typeof Wrapper.resendCode; declare const consumeCode: typeof Wrapper.consumeCode; declare const getLinkCodeFromURL: typeof Wrapper.getLinkCodeFromURL; declare const getPreAuthSessionIdFromURL: typeof Wrapper.getPreAuthSessionIdFromURL; declare const doesEmailExist: typeof Wrapper.doesEmailExist; declare const doesPhoneNumberExist: typeof Wrapper.doesPhoneNumberExist; declare const getLoginAttemptInfo: typeof Wrapper.getLoginAttemptInfo; declare const setLoginAttemptInfo: typeof Wrapper.setLoginAttemptInfo; declare const clearLoginAttemptInfo: typeof Wrapper.clearLoginAttemptInfo; declare const signOut: typeof Wrapper.signOut; declare const PasswordlessComponentsOverrideProvider: import("react").FC< import("react").PropsWithChildren<{ components: import("./types").ComponentOverrideMap; }> >; export { PasswordlessComponentsOverrideProvider, init, createCode, resendCode, consumeCode, getLinkCodeFromURL, getPreAuthSessionIdFromURL, doesEmailExist, doesPhoneNumberExist, getLoginAttemptInfo, setLoginAttemptInfo, clearLoginAttemptInfo, signOut, GetRedirectionURLContext, PreAPIHookContext, OnHandleEventContext, UserInput, RecipeInterface, };