import React from "react"; import type { FieldValues, UseFormRegister } from "react-hook-form"; declare type FieldType = "title" | "text" | "number" | "select"; interface FormProps { state: any; items: FormItem[]; register: UseFormRegister; errors: any; } interface TextFieldProps { defaultValue: string | undefined; } interface SelectProps { options: SelectOption[]; defaultValue: string; } interface SelectOption { label: string; value: string; } export interface FormItem { name?: string; label: string; type: FieldType; validation?: any; visible?: boolean; inputProps?: SelectProps | TextFieldProps; } declare const FormFields: React.FC; export default FormFields; //# sourceMappingURL=form-fields.d.ts.map