/// <reference types="react" />
import { IFormReducerAction } from '../../../form/components/form/form.types';
interface IBlurEmailField {
    ref: React.MutableRefObject<HTMLInputElement>;
    validateEmail: (email: string) => Promise<any>;
    dispatch: (arg: IFormReducerAction[]) => void;
}
declare const blurEmailField: ({ ref, validateEmail, dispatch }: IBlurEmailField) => Promise<void>;
declare const transformFormData: (formData: FormData) => {
    name: string;
    email: string;
    jobTitle: FormDataEntryValue;
    organization: FormDataEntryValue;
    bioLink: FormDataEntryValue;
    optIn: boolean;
    expectation: FormDataEntryValue;
    page: string;
    'g-recaptcha-response': FormDataEntryValue;
};
interface IHandleDataProps {
    refs: {
        email: React.MutableRefObject<HTMLInputElement>;
        form?: React.MutableRefObject<HTMLFormElement>;
        hiddenValidation?: React.MutableRefObject<HTMLButtonElement>;
        jobTitle: React.MutableRefObject<HTMLInputElement>;
        name: React.MutableRefObject<HTMLInputElement>;
        organisation: React.MutableRefObject<HTMLInputElement>;
        tc: React.MutableRefObject<HTMLInputElement>;
    };
    dataToSubmit: {
        [key: string]: string;
    };
    createAccount: (arg: any) => Promise<any>;
    onSuccess?: (arg: any) => void;
    dispatch: (arg: any) => void;
    state: any;
}
declare const handleData: ({ refs, dataToSubmit, createAccount, onSuccess, dispatch, state, }: IHandleDataProps) => Promise<void>;
export { blurEmailField, transformFormData, handleData };
