import * as React from 'react'; import { FormTypes, SubmissionTypes } from '@oneblink/types'; import { FormElementConditionallyShown, FormElementLookupHandler, FormElementValidation, NestedFormElementValueChangeHandler, IsDirtyProps, UpdateFormElementsHandler, SectionState } from '../types/form'; type Props = { formId: number; id: string; isEven: boolean; element: FormTypes.RepeatableSetElement; /** * Whether this set’s own controls (add/remove entries) are locked. The set * itself must be listed in `editableFormElementIds` to add or remove entries; * a nested field being listed is not enough. */ readOnly: boolean; /** * Lock to apply to fields inside each entry. True when the whole form is * read-only, a parent is read-only, or this element’s definition has * `readOnly: true`. */ childrenReadOnly: boolean; value: Array | undefined; onChange: NestedFormElementValueChangeHandler; onLookup: FormElementLookupHandler; formElementConditionallyShown: FormElementConditionallyShown | undefined; formElementValidation: FormElementValidation | undefined; displayValidationMessage: boolean; onUpdateFormElements: UpdateFormElementsHandler; sectionState: SectionState; } & IsDirtyProps; export declare function useRepeatableSetIndexText(text: string): string; declare function FormElementRepeatableSet({ formId, element, readOnly, childrenReadOnly, value, formElementValidation, id, isEven, displayValidationMessage, formElementConditionallyShown, onChange, onLookup, onUpdateFormElements, isDirty, setIsDirty, sectionState, }: Props): import("react/jsx-runtime").JSX.Element; declare const _default: React.MemoExoticComponent; export default _default;