import { type FormAction, type FormFieldError } from '../lib/useUserProfileForm'; import type { Attribute } from 'keycloakify/login/KcContext'; import type { KcClsx } from 'keycloakify/login/lib/kcClsx'; import type { EventDispatcher, Snippet } from 'svelte'; import type { Readable } from 'svelte/store'; export type UserProfileFormFieldsProps = { kcContext: Extract; i18n: Readable; kcClsx: KcClsx; onIsFormSubmittableValueChange: (isFormSubmittable: boolean) => void; doMakeUserConfirmPassword: boolean; beforeField?: Snippet<[BeforeAfterFieldProps]> | null; afterField?: Snippet<[BeforeAfterFieldProps]> | null; }; type BeforeAfterFieldProps = { attribute: Attribute; dispatchFormAction: EventDispatcher<{ formAction: FormAction; }>; displayableErrors: FormFieldError[]; valueOrValues: string | string[]; kcClsx: KcClsx; i18n: Readable; }; export {};