import { PortalRegistrationForm } from "./sqm-portal-registration-form";
import { RegistrationFormState } from "./useRegistrationFormState";
export declare type ValidationErrorFunction = (input: {
  control: any;
  key: string;
  value: any;
}) => string | undefined;
export declare function usePortalRegistrationForm(props: PortalRegistrationForm): {
  states: {
    loading: boolean;
    error: string;
    registrationFormState: RegistrationFormState;
    confirmPassword: boolean;
    hideInputs: boolean;
    loginPath: string;
    enablePasswordValidation: boolean;
  };
  callbacks: {
    submit: (event: any) => Promise<void>;
    inputFunction: (e: any) => void;
  };
  refs: {
    formRef: {
      current: HTMLFormElement;
    };
  };
};
