export declare const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
export declare type RegistrationFormState = {
  error?: string;
  validationErrors?: ValidationErrors;
  loading?: boolean;
  disabled?: boolean;
  disabledMessage?: string;
  initialData?: InitialData;
  _googleOAuthIdToken?: string;
};
export declare type ValidationErrors = {
  [key: string]: string;
};
export declare type InitialData = {
  [key: string]: string;
};
export declare function useRegistrationForm(): any[] | readonly [RegistrationFormState, (value: RegistrationFormState) => void];
export declare function useRegistrationFormState(formState?: RegistrationFormState): {
  registrationFormState: RegistrationFormState;
  setRegistrationFormState: (value: RegistrationFormState | ((previousState?: RegistrationFormState) => RegistrationFormState)) => void;
};
