export declare const LEAD_FORM_STATE_CONTEXT = "sq:lead-form-state";
export declare type LeadFormState = {
  error?: string;
  validationErrors?: ValidationErrors;
  loading?: boolean;
  disabled?: boolean;
  disabledMessage?: string;
  initialData?: InitialData;
};
export declare type ValidationErrors = {
  [key: string]: string;
};
export declare type InitialData = {
  [key: string]: string;
};
export declare function useLeadFormState(formState?: LeadFormState): {
  leadFormState: LeadFormState;
  setLeadFormState: (value: LeadFormState | ((previousState?: LeadFormState) => LeadFormState)) => void;
};
