import { UserProfileAttributeMetadata } from '@keycloak/keycloak-admin-client/lib/defs/userProfileMetadata'; import { default as UserRepresentation } from '@keycloak/keycloak-admin-client/lib/defs/userRepresentation'; import { TFunction } from 'i18next'; import { FieldPath } from 'react-hook-form'; export type KeyValueType = { key: string; value: string; }; export type UserFormFields = Omit & { attributes?: KeyValueType[] | Record; }; type FieldError = { field: string; errorMessage: string; params?: unknown[]; }; type ErrorArray = { errors?: FieldError[]; }; export type UserProfileError = { responseData: ErrorArray | FieldError; }; export declare const isBundleKey: (displayName: unknown) => boolean; export declare const label: (t: TFunction, text: string | undefined, fallback?: string, prefix?: string) => string; export declare const labelAttribute: (t: TFunction, attribute: UserProfileAttributeMetadata) => string; export declare const isRootAttribute: (attr?: string) => boolean | "" | undefined; export declare const fieldName: (name?: string) => FieldPath; export declare const beerify: (name: T) => string; export declare const debeerify: (name: T) => string; export declare function setUserProfileServerError(error: UserProfileError, setError: (field: keyof T, params: object) => void, t: TFunction): void; export declare function isRequiredAttribute({ required, }: UserProfileAttributeMetadata): boolean; export declare function isUserProfileError(error: unknown): error is UserProfileError; export {};