import { SubmitHandler, FieldValues, SubmitErrorHandler, ValidationMode } from 'react-hook-form';
import { CustomField } from './formNextTypes.js';

interface FormNextProps {
    onValid: SubmitHandler<FieldValues>;
    onInvalid?: SubmitErrorHandler<FieldValues>;
    fields: CustomField[];
    button: {
        text: string;
        label: string;
    };
    autofocus?: boolean;
    mode?: keyof ValidationMode;
    developerView?: boolean;
    isDisabled?: boolean;
}
declare function FormNext({ onValid, onInvalid, fields, button, autofocus, mode, developerView, isDisabled, }: FormNextProps): JSX.Element;

export { FormNext as default };
