import { Attributes, UserSettingsResource } from "../../types/userSettings.mjs"; import { SignUpResource } from "../../types/signUp.mjs"; //#region src/internal/clerk-js/signUpFormFields.d.ts /** * ActiveIdentifier denotes which one of the email address or phone number takes priority when enabled */ type ActiveIdentifier = 'emailAddress' | 'phoneNumber' | null | undefined; declare const FieldKeys: readonly ["emailAddress", "phoneNumber", "username", "firstName", "lastName", "password", "ticket", "legalAccepted"]; type FieldKey = (typeof FieldKeys)[number]; type Field = { disabled?: boolean; /** * Denotes if the corresponding input is required to be filled */ required: boolean; }; type Fields = { [key in FieldKey]: Field | undefined }; type FieldDeterminationProps = { attributes: Partial; activeCommIdentifierType?: ActiveIdentifier; hasTicket?: boolean; hasEmail?: boolean; signUp?: SignUpResource | undefined; isProgressiveSignUp: boolean; legalConsentRequired?: boolean; }; declare function determineActiveFields(fieldProps: FieldDeterminationProps): Fields; type VerificationStatusInput = { status: string | null; } | null | undefined; type ExistingSignUpInput = Pick & { verifications?: { emailAddress?: VerificationStatusInput; phoneNumber?: VerificationStatusInput; externalAccount?: VerificationStatusInput; web3Wallet?: VerificationStatusInput; }; }; declare function minimizeFieldsForExistingSignup(fields: Fields, signUp: ExistingSignUpInput): void; declare const getInitialActiveIdentifier: (attributes: Partial, isProgressiveSignUp: boolean, initialValues?: { phoneNumber?: string | null; emailAddress?: string | null; }) => ActiveIdentifier; declare function showFormFields(userSettings: UserSettingsResource): boolean; declare function emailOrPhone(attributes: Partial, isProgressiveSignUp: boolean): boolean; /** * When password is required, we need to ensure at least one identifier * (email, phone, or username) is also required */ declare function determineRequiredIdentifier(attributes: Partial): { emailShouldBeRequired: boolean; phoneShouldBeRequired: boolean; usernameShouldBeRequired: boolean; }; //#endregion export { ActiveIdentifier, ExistingSignUpInput, Field, FieldKey, Fields, determineActiveFields, determineRequiredIdentifier, emailOrPhone, getInitialActiveIdentifier, minimizeFieldsForExistingSignup, showFormFields }; //# sourceMappingURL=signUpFormFields.d.mts.map