import { FormTypes } from '@oneblink/types'; import { FormElementValueChangeHandler, FormElementConditionallyShownElement, UpdateFormElementsHandler } from '../types/form'; export default function useFormElementOptions({ element, value, onChange, conditionallyShownOptionsElement, onFilter, onUpdateFormElements, }: { element: FormTypes.FormElementWithOptions; value: unknown | undefined; onChange: FormElementValueChangeHandler; conditionallyShownOptionsElement: FormElementConditionallyShownElement | undefined; onFilter?: (choiceElementOption: FormTypes.ChoiceElementOption) => boolean; onUpdateFormElements: UpdateFormElementsHandler; }): FormTypes.ChoiceElementOption[];