import { ReactNode } from 'react';
interface FormComponentProps {
component: {
additionalValidation?: object[];
allowMultiple?: boolean;
content?: string;
cya_label?: string;
data?: {
options?: string | object[];
url?: string;
};
disabled?: boolean;
fieldId?: string;
full_path?: string;
hint?: string;
id?: string;
label?: string;
suffix?: string;
fieldset?: boolean;
type?: string;
pageCollection?: {
name?: string;
};
};
value?: ReactNode | {
id?: string;
} | object[];
formData?: object | null;
wrap?: boolean;
onAction?: Function;
onChange?: Function;
onTopLevelChange?: Function;
pages?: object[];
submitting?: boolean;
}
/** Renders a single component on a form with COP React components,
on the basis of a JSON configuration */
declare const FormComponent: ({ component, value, formData, wrap, onAction, onChange, onTopLevelChange, pages, submitting, ...attrs }: FormComponentProps) => any;
export default FormComponent;