import { IResource } from "edifice-ts-client"; import { type SubmitHandler } from "react-hook-form"; interface ModalProps { resource: IResource; onSuccess?: () => void; } export interface FormDataProps { title: string; description: string; activityType: string; subjectArea: string; language: string; ageMin: string; ageMax: string; keyWords: string; } export default function usePublishModal({ onSuccess, resource }: ModalProps): { control: import("react-hook-form").Control; cover: string | File | Blob; formState: { errors: import("react-hook-form").FieldErrors; isSubmitting: boolean; isDirty: boolean; isValid: boolean; }; handleDeleteImage: () => void; handlePublish: SubmitHandler; handleSubmit: import("react-hook-form").UseFormHandleSubmit; handleUploadImage: (file: File | string) => void; register: import("react-hook-form").UseFormRegister; selectActivities: (value: string | number) => void; selectedActivities: (string | number)[]; selectedSubjectAreas: (string | number)[]; selectSubjects: (value: string | number) => void; setValue: import("react-hook-form").UseFormSetValue; watch: import("react-hook-form").UseFormWatch; }; export {};