import { ComponentType } from 'react'; import * as React from 'react'; import { FieldValues, FormState } from 'react-hook-form'; import { ButtonProps } from '../Button'; export interface SubmitContextProps { loading?: FormStateCallback | boolean; disabled?: FormStateCallback | boolean; } export type FormStateCallback = (formState: FormState) => boolean; export interface SubmitContextProps { loading?: FormStateCallback | boolean; disabled?: FormStateCallback | boolean; } export type SubmitButtonProps = Omit & SubmitContextProps & { as?: ComponentType; }; export declare const SubmitButton: React.FC;