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