import { UserProfileAttributeMetadata, UserProfileMetadata } from '@keycloak/keycloak-admin-client/lib/defs/userProfileMetadata'; import { TFunction } from 'i18next'; import { ReactNode, JSX } from 'react'; import { UseFormReturn } from 'react-hook-form'; import { UserFormFields } from './utils'; export type UserProfileError = { responseData: { errors?: { errorMessage: string; }[]; }; }; export type Options = { options?: string[]; }; export type InputType = "text" | "textarea" | "select" | "select-radiobuttons" | "multiselect" | "multiselect-checkboxes" | "html5-email" | "html5-tel" | "html5-url" | "html5-number" | "html5-range" | "html5-datetime-local" | "html5-date" | "html5-month" | "html5-time" | "multi-input"; export type UserProfileFieldProps = { t: TFunction; form: UseFormReturn; inputType: InputType; attribute: UserProfileAttributeMetadata; renderer?: (attribute: UserProfileAttributeMetadata) => ReactNode; }; export type OptionLabel = Record | undefined; export declare const FIELDS: { [type in InputType]: (props: UserProfileFieldProps) => JSX.Element; }; export type UserProfileFieldsProps = { t: TFunction; form: UseFormReturn; userProfileMetadata: UserProfileMetadata; supportedLocales: string[]; currentLocale: string; hideReadOnly?: boolean; renderer?: (attribute: UserProfileAttributeMetadata) => JSX.Element | undefined; }; export declare const UserProfileFields: ({ t, form, userProfileMetadata, supportedLocales, currentLocale, hideReadOnly, renderer, }: UserProfileFieldsProps) => import("react/jsx-runtime").JSX.Element | null;