import { FormTypes, SubmissionTypes } from '@oneblink/types'; import * as React from 'react'; import { FormElementConditionallyShown, FormElementLookupHandler, FormElementValidation, NestedFormElementValueChangeHandler, SectionState, UpdateFormElementsHandler } from '../types/form'; export type Props = { formId: number; id: string; element: FormTypes.FormFormElement; /** * Whether this nested form is locked. Used as `readOnlyOverride` for * synthetic children when `readOnlyOverrideChildren` is set. Nested fields do * not inherit this value as a blanket lock so a child included in * `editableFormElementIds` can stay editable. */ readOnly: boolean; /** * Lock to apply to nested fields (`OneBlinkFormElements.readOnly` / * `parentReadOnly`). True when the whole form is read-only, a parent is * read-only, or this element’s definition has `readOnly: true`. */ childrenReadOnly: boolean; /** * When true, nested fields use this element’s `readOnly` as * `readOnlyOverride` instead of calculating their own. Used by Civica name * records and Freshdesk dependent fields. */ readOnlyOverrideChildren?: boolean; value: SubmissionTypes.S3SubmissionData['submission'] | undefined; onChange: NestedFormElementValueChangeHandler; onLookup: FormElementLookupHandler; formElementValidation: FormElementValidation | undefined; displayValidationMessages: boolean; formElementConditionallyShown: FormElementConditionallyShown | undefined; onUpdateFormElements: UpdateFormElementsHandler; sectionState: SectionState; }; declare function FormElementForm({ formId, element, readOnly, childrenReadOnly, readOnlyOverrideChildren, value, id, formElementValidation, displayValidationMessages, formElementConditionallyShown, onChange, onLookup, onUpdateFormElements, sectionState, }: Props): import("react/jsx-runtime").JSX.Element; declare const _default: React.MemoExoticComponent; export default _default;