import { z } from 'zod'; import { CustomProfileFieldType, type UserProfile } from '../foundations/index.js'; export type BaseProfileField = { name: string; label?: string; description?: string; type: CustomProfileFieldType; required: boolean; }; export type TextProfileField = BaseProfileField & { type: CustomProfileFieldType.Text; config?: { placeholder?: string; minLength?: number; maxLength?: number; }; }; export declare const textProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; }, "strip", z.ZodTypeAny, { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; }, { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Text; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Text; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; } | undefined; }>; export type NumberProfileField = BaseProfileField & { type: CustomProfileFieldType.Number; config?: { placeholder?: string; minValue?: number; maxValue?: number; }; }; export declare const numberProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; }, { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Number; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; } | undefined; }, { type: CustomProfileFieldType.Number; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; } | undefined; }>; export type DateProfileField = BaseProfileField & { type: CustomProfileFieldType.Date; config?: { placeholder?: string; format: string; customFormat?: string; }; }; export declare const dateProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; format: z.ZodString; customFormat: z.ZodOptional; }, "strip", z.ZodTypeAny, { format: string; placeholder?: string | undefined; customFormat?: string | undefined; }, { format: string; placeholder?: string | undefined; customFormat?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Date; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { format: string; placeholder?: string | undefined; customFormat?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Date; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { format: string; placeholder?: string | undefined; customFormat?: string | undefined; } | undefined; }>; export type CheckboxProfileField = Omit & { type: CustomProfileFieldType.Checkbox; required: false; config?: { defaultValue: 'true' | 'false'; }; }; export declare const checkboxProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; } & { type: z.ZodLiteral; required: z.ZodLiteral; config: z.ZodOptional, z.ZodLiteral<"false">]>; }, "strip", z.ZodTypeAny, { defaultValue: "true" | "false"; }, { defaultValue: "true" | "false"; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Checkbox; name: string; required: false; label?: string | undefined; config?: { defaultValue: "true" | "false"; } | undefined; }, { type: CustomProfileFieldType.Checkbox; name: string; required: false; label?: string | undefined; config?: { defaultValue: "true" | "false"; } | undefined; }>; export type SelectProfileField = BaseProfileField & { type: CustomProfileFieldType.Select; config: { placeholder?: string; options: Array<{ label?: string; value: string; }>; }; }; export declare const selectProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ placeholder: z.ZodOptional; options: z.ZodArray; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }, { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Select; name: string; required: boolean; config: { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Select; name: string; required: boolean; config: { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }>; export type UrlProfileField = BaseProfileField & { type: CustomProfileFieldType.Url; config?: { placeholder?: string; }; }; export declare const urlProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; }, "strip", z.ZodTypeAny, { placeholder?: string | undefined; }, { placeholder?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Url; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Url; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; } | undefined; }>; export type RegexProfileField = BaseProfileField & { type: CustomProfileFieldType.Regex; config: { placeholder?: string; format: string; }; }; export declare const regexProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ placeholder: z.ZodOptional; format: z.ZodString; }, "strip", z.ZodTypeAny, { format: string; placeholder?: string | undefined; }, { format: string; placeholder?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Regex; name: string; required: boolean; config: { format: string; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Regex; name: string; required: boolean; config: { format: string; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }>; export type AddressProfileField = BaseProfileField & { type: CustomProfileFieldType.Address; config: { parts: Array<{ enabled: boolean; name: keyof Exclude; type: CustomProfileFieldType; label?: string; description?: string; required: boolean; config?: { placeholder?: string; minLength?: number; maxLength?: number; minValue?: number; maxValue?: number; options?: Array<{ label?: string; value: string; }>; format?: string; customFormat?: string; }; }>; }; }; export declare const addressProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ parts: z.ZodArray; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; format: z.ZodOptional; customFormat: z.ZodOptional; options: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">>; defaultValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }>>; }, "name"> & { name: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }, { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }, { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Address; name: string; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Address; name: string; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }>; export type FullnameProfileField = BaseProfileField & { type: CustomProfileFieldType.Fullname; config: { parts: Array<{ enabled: boolean; name: keyof Pick; type: CustomProfileFieldType; label?: string; description?: string; required: boolean; config?: { placeholder?: string; minLength?: number; maxLength?: number; minValue?: number; maxValue?: number; options?: Array<{ label?: string; value: string; }>; format?: string; customFormat?: string; }; }>; }; }; export declare const fullnameKeys: ["familyName", "givenName", "middleName"]; export declare const fullnameProfileFieldGuard: z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ parts: z.ZodArray; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; format: z.ZodOptional; customFormat: z.ZodOptional; options: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">>; defaultValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }>>; }, "name"> & { name: z.ZodEnum<["familyName", "givenName", "middleName"]>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }, { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }, { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Fullname; name: string; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Fullname; name: string; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }>; export declare const customProfileFieldUnionGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; }, "strip", z.ZodTypeAny, { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; }, { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Text; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Text; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; } | undefined; }>, z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; }, { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Number; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; } | undefined; }, { type: CustomProfileFieldType.Number; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; } | undefined; }>, z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; format: z.ZodString; customFormat: z.ZodOptional; }, "strip", z.ZodTypeAny, { format: string; placeholder?: string | undefined; customFormat?: string | undefined; }, { format: string; placeholder?: string | undefined; customFormat?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Date; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { format: string; placeholder?: string | undefined; customFormat?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Date; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { format: string; placeholder?: string | undefined; customFormat?: string | undefined; } | undefined; }>, z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; } & { type: z.ZodLiteral; required: z.ZodLiteral; config: z.ZodOptional, z.ZodLiteral<"false">]>; }, "strip", z.ZodTypeAny, { defaultValue: "true" | "false"; }, { defaultValue: "true" | "false"; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Checkbox; name: string; required: false; label?: string | undefined; config?: { defaultValue: "true" | "false"; } | undefined; }, { type: CustomProfileFieldType.Checkbox; name: string; required: false; label?: string | undefined; config?: { defaultValue: "true" | "false"; } | undefined; }>, z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ placeholder: z.ZodOptional; options: z.ZodArray; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }, { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Select; name: string; required: boolean; config: { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Select; name: string; required: boolean; config: { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }>, z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; }, "strip", z.ZodTypeAny, { placeholder?: string | undefined; }, { placeholder?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Url; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Url; name: string; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; } | undefined; }>, z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ placeholder: z.ZodOptional; format: z.ZodString; }, "strip", z.ZodTypeAny, { format: string; placeholder?: string | undefined; }, { format: string; placeholder?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Regex; name: string; required: boolean; config: { format: string; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Regex; name: string; required: boolean; config: { format: string; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }>, z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ parts: z.ZodArray; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; format: z.ZodOptional; customFormat: z.ZodOptional; options: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">>; defaultValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }>>; }, "name"> & { name: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }, { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }, { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Address; name: string; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Address; name: string; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }>, z.ZodObject<{ name: z.ZodString; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ parts: z.ZodArray; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; format: z.ZodOptional; customFormat: z.ZodOptional; options: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">>; defaultValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }>>; }, "name"> & { name: z.ZodEnum<["familyName", "givenName", "middleName"]>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }, { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }, { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Fullname; name: string; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Fullname; name: string; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }>]>; export type CustomProfileFieldUnion = TextProfileField | NumberProfileField | DateProfileField | CheckboxProfileField | SelectProfileField | UrlProfileField | RegexProfileField | AddressProfileField | FullnameProfileField; export declare const nameAndAvatarGuard: z.ZodObject<{ name: z.ZodOptional; avatar: z.ZodOptional]>>; }, "strip", z.ZodTypeAny, { name?: string | undefined; avatar?: string | undefined; }, { name?: string | undefined; avatar?: string | undefined; }>; export declare const builtInProfileGuard: z.ZodObject<{ name: z.ZodOptional; avatar: z.ZodOptional]>>; } & { profile: z.ZodObject<{ familyName: z.ZodOptional; givenName: z.ZodOptional; middleName: z.ZodOptional; nickname: z.ZodOptional; preferredUsername: z.ZodOptional; profile: z.ZodOptional; website: z.ZodOptional; gender: z.ZodOptional; birthdate: z.ZodOptional; zoneinfo: z.ZodOptional; locale: z.ZodOptional; address: z.ZodOptional; streetAddress: z.ZodOptional; locality: z.ZodOptional; region: z.ZodOptional; postalCode: z.ZodOptional; country: z.ZodOptional; }, "strip", z.ZodTypeAny, { formatted?: string | undefined; streetAddress?: string | undefined; locality?: string | undefined; region?: string | undefined; postalCode?: string | undefined; country?: string | undefined; }, { formatted?: string | undefined; streetAddress?: string | undefined; locality?: string | undefined; region?: string | undefined; postalCode?: string | undefined; country?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { familyName?: string | undefined; givenName?: string | undefined; middleName?: string | undefined; nickname?: string | undefined; preferredUsername?: string | undefined; profile?: string | undefined; website?: string | undefined; gender?: string | undefined; birthdate?: string | undefined; zoneinfo?: string | undefined; locale?: string | undefined; address?: { formatted?: string | undefined; streetAddress?: string | undefined; locality?: string | undefined; region?: string | undefined; postalCode?: string | undefined; country?: string | undefined; } | undefined; }, { familyName?: string | undefined; givenName?: string | undefined; middleName?: string | undefined; nickname?: string | undefined; preferredUsername?: string | undefined; profile?: string | undefined; website?: string | undefined; gender?: string | undefined; birthdate?: string | undefined; zoneinfo?: string | undefined; locale?: string | undefined; address?: { formatted?: string | undefined; streetAddress?: string | undefined; locality?: string | undefined; region?: string | undefined; postalCode?: string | undefined; country?: string | undefined; } | undefined; }>; }, "strip", z.ZodTypeAny, { profile: { familyName?: string | undefined; givenName?: string | undefined; middleName?: string | undefined; nickname?: string | undefined; preferredUsername?: string | undefined; profile?: string | undefined; website?: string | undefined; gender?: string | undefined; birthdate?: string | undefined; zoneinfo?: string | undefined; locale?: string | undefined; address?: { formatted?: string | undefined; streetAddress?: string | undefined; locality?: string | undefined; region?: string | undefined; postalCode?: string | undefined; country?: string | undefined; } | undefined; }; name?: string | undefined; avatar?: string | undefined; }, { profile: { familyName?: string | undefined; givenName?: string | undefined; middleName?: string | undefined; nickname?: string | undefined; preferredUsername?: string | undefined; profile?: string | undefined; website?: string | undefined; gender?: string | undefined; birthdate?: string | undefined; zoneinfo?: string | undefined; locale?: string | undefined; address?: { formatted?: string | undefined; streetAddress?: string | undefined; locality?: string | undefined; region?: string | undefined; postalCode?: string | undefined; country?: string | undefined; } | undefined; }; name?: string | undefined; avatar?: string | undefined; }>; export declare const builtInCustomProfileFieldKeys: readonly ["familyName", "givenName", "middleName", "nickname", "preferredUsername", "profile", "website", "gender", "birthdate", "zoneinfo", "locale", "address", "name", "avatar"]; export declare const updateCustomProfileFieldDataGuard: z.ZodDiscriminatedUnion<"type", [z.ZodObject; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; }, "strip", z.ZodTypeAny, { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; }, { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; }>>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Text; required: boolean; label?: string | undefined; description?: string | undefined; config?: { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Text; required: boolean; label?: string | undefined; description?: string | undefined; config?: { minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; } | undefined; }>, z.ZodObject; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; }, { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; }>>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Number; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; } | undefined; }, { type: CustomProfileFieldType.Number; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; } | undefined; }>, z.ZodObject; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; format: z.ZodString; customFormat: z.ZodOptional; }, "strip", z.ZodTypeAny, { format: string; placeholder?: string | undefined; customFormat?: string | undefined; }, { format: string; placeholder?: string | undefined; customFormat?: string | undefined; }>>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Date; required: boolean; label?: string | undefined; description?: string | undefined; config?: { format: string; placeholder?: string | undefined; customFormat?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Date; required: boolean; label?: string | undefined; description?: string | undefined; config?: { format: string; placeholder?: string | undefined; customFormat?: string | undefined; } | undefined; }>, z.ZodObject; } & { type: z.ZodLiteral; required: z.ZodLiteral; config: z.ZodOptional, z.ZodLiteral<"false">]>; }, "strip", z.ZodTypeAny, { defaultValue: "true" | "false"; }, { defaultValue: "true" | "false"; }>>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Checkbox; required: false; label?: string | undefined; config?: { defaultValue: "true" | "false"; } | undefined; }, { type: CustomProfileFieldType.Checkbox; required: false; label?: string | undefined; config?: { defaultValue: "true" | "false"; } | undefined; }>, z.ZodObject; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ placeholder: z.ZodOptional; options: z.ZodArray; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }, { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Select; required: boolean; config: { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Select; required: boolean; config: { options: { value: string; label?: string | undefined; }[]; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }>, z.ZodObject; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodOptional; }, "strip", z.ZodTypeAny, { placeholder?: string | undefined; }, { placeholder?: string | undefined; }>>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Url; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; } | undefined; }, { type: CustomProfileFieldType.Url; required: boolean; label?: string | undefined; description?: string | undefined; config?: { placeholder?: string | undefined; } | undefined; }>, z.ZodObject; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ placeholder: z.ZodOptional; format: z.ZodString; }, "strip", z.ZodTypeAny, { format: string; placeholder?: string | undefined; }, { format: string; placeholder?: string | undefined; }>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Regex; required: boolean; config: { format: string; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Regex; required: boolean; config: { format: string; placeholder?: string | undefined; }; label?: string | undefined; description?: string | undefined; }>, z.ZodObject; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ parts: z.ZodArray; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; format: z.ZodOptional; customFormat: z.ZodOptional; options: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">>; defaultValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }>>; }, "name"> & { name: z.ZodEnum<["formatted", "streetAddress", "locality", "region", "postalCode", "country"]>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }, { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }, { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Address; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Address; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "formatted" | "streetAddress" | "locality" | "region" | "postalCode" | "country"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }>, z.ZodObject; description: z.ZodOptional; required: z.ZodBoolean; } & { type: z.ZodLiteral; config: z.ZodObject<{ parts: z.ZodArray; label: z.ZodOptional; description: z.ZodOptional; required: z.ZodBoolean; config: z.ZodOptional; minLength: z.ZodOptional; maxLength: z.ZodOptional; minValue: z.ZodOptional; maxValue: z.ZodOptional; format: z.ZodOptional; customFormat: z.ZodOptional; options: z.ZodOptional; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; label?: string | undefined; }, { value: string; label?: string | undefined; }>, "many">>; defaultValue: z.ZodOptional; }, "strip", z.ZodTypeAny, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }, { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; }>>; }, "name"> & { name: z.ZodEnum<["familyName", "givenName", "middleName"]>; }, "strip", z.ZodTypeAny, { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }, { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }, { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }>; }, "name">, "strip", z.ZodTypeAny, { type: CustomProfileFieldType.Fullname; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }, { type: CustomProfileFieldType.Fullname; required: boolean; config: { parts: { type: CustomProfileFieldType; name: "familyName" | "givenName" | "middleName"; required: boolean; enabled: boolean; label?: string | undefined; description?: string | undefined; config?: { options?: { value: string; label?: string | undefined; }[] | undefined; minLength?: number | undefined; maxLength?: number | undefined; placeholder?: string | undefined; minValue?: number | undefined; maxValue?: number | undefined; format?: string | undefined; customFormat?: string | undefined; defaultValue?: string | undefined; } | undefined; }[]; }; label?: string | undefined; description?: string | undefined; }>]>; export type UpdateCustomProfileFieldData = z.infer; export declare const updateCustomProfileFieldSieOrderGuard: z.ZodObject<{ name: z.ZodString; sieOrder: z.ZodNumber; }, "strip", z.ZodTypeAny, { name: string; sieOrder: number; }, { name: string; sieOrder: number; }>; export type UpdateCustomProfileFieldSieOrder = z.infer; /** * Reserved custom data keys, which are used by the system and should not be used by custom profile fields. */ export declare const reservedCustomDataKeyGuard: z.ZodObject<{ onboarding: z.ZodOptional; guideRequests: z.ZodOptional; adminConsolePreferences: z.ZodOptional; defaultTenantId: z.ZodOptional; }, "strip", z.ZodTypeAny, { adminConsolePreferences?: string | undefined; guideRequests?: string | undefined; defaultTenantId?: string | undefined; onboarding?: string | undefined; }, { adminConsolePreferences?: string | undefined; guideRequests?: string | undefined; defaultTenantId?: string | undefined; onboarding?: string | undefined; }>; export declare const reservedCustomDataKeys: readonly ["adminConsolePreferences", "guideRequests", "defaultTenantId", "onboarding"]; /** * Disallow sign-in identifiers related field keys in custom profile fields, as this is conflicting * with the built-in sign-in/sign-up experience flows. */ export declare const signInIdentifierKeyGuard: z.ZodObject>; id: z.ZodType; username: z.ZodOptional>; primaryEmail: z.ZodOptional>; primaryPhone: z.ZodOptional>; passwordEncrypted: z.ZodOptional>; passwordEncryptionMethod: z.ZodOptional>; name: z.ZodOptional>; avatar: z.ZodOptional>; profile: z.ZodOptional; }>, z.ZodTypeDef, Partial<{ familyName: string; givenName: string; middleName: string; nickname: string; preferredUsername: string; profile: string; website: string; gender: string; birthdate: string; zoneinfo: string; locale: string; address: Partial<{ formatted: string; streetAddress: string; locality: string; region: string; postalCode: string; country: string; }>; }>>>; applicationId: z.ZodOptional>; identities: z.ZodOptional | undefined; }>, z.ZodTypeDef, Record | undefined; }>>>; customData: z.ZodOptional>; logtoConfig: z.ZodOptional>; mfaVerifications: z.ZodOptional>; isSuspended: z.ZodOptional>; lastSignInAt: z.ZodOptional>; createdAt: z.ZodOptional>; updatedAt: z.ZodOptional>; }, "username" | "primaryEmail" | "primaryPhone"> & { email: z.ZodOptional>; phone: z.ZodOptional>; }, "strip", z.ZodTypeAny, { username?: string | null; email?: string | null | undefined; phone?: string | null | undefined; primaryEmail?: string | null; primaryPhone?: string | null; }, { username?: string | null; email?: string | null | undefined; phone?: string | null | undefined; primaryEmail?: string | null; primaryPhone?: string | null; }>; export declare const reservedSignInIdentifierKeys: readonly ["username", "email", "phone", "primaryEmail", "primaryPhone"]; /** * Reserved user profile keys. * Currently only `preferredUsername` is reserved since it is the standard username property used * by most identity providers. Should not allow user updating this field via profile related APIs. */ export declare const reservedBuiltInProfileKeyGuard: z.ZodObject; givenName: z.ZodOptional; middleName: z.ZodOptional; nickname: z.ZodOptional; preferredUsername: z.ZodOptional; profile: z.ZodOptional; website: z.ZodOptional; gender: z.ZodOptional; birthdate: z.ZodOptional; zoneinfo: z.ZodOptional; locale: z.ZodOptional; address: z.ZodOptional; streetAddress: z.ZodOptional; locality: z.ZodOptional; region: z.ZodOptional; postalCode: z.ZodOptional; country: z.ZodOptional; }, "strip", z.ZodTypeAny, { formatted?: string | undefined; streetAddress?: string | undefined; locality?: string | undefined; region?: string | undefined; postalCode?: string | undefined; country?: string | undefined; }, { formatted?: string | undefined; streetAddress?: string | undefined; locality?: string | undefined; region?: string | undefined; postalCode?: string | undefined; country?: string | undefined; }>>; }, "preferredUsername">, "strip", z.ZodTypeAny, { preferredUsername?: string | undefined; }, { preferredUsername?: string | undefined; }>; export declare const reservedBuiltInProfileKeys: readonly ["preferredUsername"]; export declare enum SupportedDateFormat { US = "MM/dd/yyyy", UK = "dd/MM/yyyy", ISO = "yyyy-MM-dd", Custom = "custom" } export declare enum Gender { Female = "female", Male = "male", Other = "prefer_not_to_say" }