import { VerificationResource } from "../../types/verification.js"; import { ProtectCheckResource, SignUpField, SignUpIdentificationField } from "../../types/signUpCommon.js"; //#region src/internal/clerk-js/nextStep.d.ts type SharedNextStep = { type: 'protect'; } | { type: 'transfer'; } | { type: 'complete'; createdSessionId: string | null; } | { type: 'unknown'; }; type SignInNextStep = SharedNextStep | { type: 'identifier'; } | { type: 'first_factor'; strategy: string | null; sent: boolean; } | { type: 'second_factor'; strategy: string | null; sent: boolean; } | { type: 'client_trust'; } | { type: 'new_password'; }; type SignUpNextStep = SharedNextStep | { type: 'start'; } | { type: 'enterprise_sso'; } | { type: 'fields'; fields: SignUpField[]; } | { type: 'verify_email'; target: string | null; sent: boolean; } | { type: 'verify_phone'; target: string | null; sent: boolean; }; type NextStep = SignInNextStep | SignUpNextStep; type VerificationInput = Pick; type SignInNextStepInput = { status: string | null; protectCheck: ProtectCheckResource | null; isTransferable: boolean; firstFactorVerification: VerificationInput; secondFactorVerification: VerificationInput; createdSessionId: string | null; }; type SignUpNextStepInput = { id?: string | undefined; status: string | null; protectCheck: ProtectCheckResource | null; isTransferable: boolean; missingFields: SignUpField[]; unverifiedFields: SignUpIdentificationField[]; emailAddress: string | null; phoneNumber: string | null; verifications: { emailAddress: { nextAction: string; }; phoneNumber: { nextAction: string; }; }; createdSessionId: string | null; }; /** * Computes the next step of a sign-in from the fields FAPI sends today. * * @internal */ declare function getSignInNextStep(signIn: SignInNextStepInput): SignInNextStep; /** * Computes the next step of a sign-up from the fields FAPI sends today. * * @internal */ declare function getSignUpNextStep(signUp: SignUpNextStepInput): SignUpNextStep; //#endregion export { NextStep, SignInNextStep, SignInNextStepInput, SignUpNextStep, SignUpNextStepInput, getSignInNextStep, getSignUpNextStep }; //# sourceMappingURL=nextStep.d.ts.map