import type { FormActionType, FormProps } from '../../Form/types/form';
import type { ModalMethods, modalProps } from '../../Modal/types';

export type modalFormProps = {
  formConfig: Partial<FormProps>;
  modalConfig: Partial<modalProps>;
};

export type ModalFromMethods = FormActionType & ModalMethods;

export type RegisterFn = (ModalInstance: ModalFromMethods) => void;

export type UseModalFormReturnType = [RegisterFn, ModalFromMethods];
