import { FC } from 'react'; import { FieldValues, UseFormReset, UseFormSetValue } from 'react-hook-form'; interface FormLowcodeLite { baseUrl: string; init?: ({ setValue }: { setValue: UseFormSetValue; }) => void; submitButtonText?: string; submitButtonIcon?: JSX.Element; inline?: boolean; inputSize?: 'xs' | 'sm' | 'md' | 'lg'; renderFlow?: 'grid' | 'row' | 'column'; cancelButtonText?: string; cancelButtonIcon?: JSX.Element; onSubmit: (data: FieldValues) => void; onCancel: (reset: UseFormReset) => void; spec: { defaultValue?: any; form_field_type: string; label: string; name: string; type: string; select_options?: { /** * @value 'flat' * @return exact value from the selection option * * @value 'object' | undefined * @return object from the selection option * */ behavior?: 'flat' | 'object'; method?: string; option_key: string; option_label: string; url?: string; options?: { key: string | number; label: string; }[]; }; }[]; } declare const FormLowcodeLite: FC; export default FormLowcodeLite;