import { LeadForm } from "./sqm-lead-form";
export declare type LeadFormState = {
  [key: string]: any;
};
export declare type ValidationErrorFunction = (input: {
  control: any;
  key: string;
  value: any;
}) => string | undefined;
export declare function useLeadForm(props: LeadForm): {
  states: {
    loading: boolean;
    error: string;
    success: boolean;
    leadFormState: import("./useLeadFormState").LeadFormState;
    referralCode: any;
  };
  callbacks: {
    submit: (event: any) => Promise<void>;
    inputFunction: (e: any) => void;
    resetForm: () => void;
  };
  refs: {
    formRef: {
      current: HTMLFormElement;
    };
  };
};
