import React from 'react'; import { ButtonProps } from 'antd'; import './index.less'; export interface SubmitButtonProps extends ButtonProps { status: 'normal' | 'disabled' | 'hidden'; children: React.ReactNode; childrenString?: string; confirmConfig?: { enable: boolean; title: string; content: string; icon: React.ReactNode; okText: string; cancelText: string; }; toastConfig?: { enable: boolean; icon: React.ReactNode; title: string; showAfterSubmit?: boolean; }; refreshData?: boolean; afterSubmitType?: 'none' | 'close' | 'showModal' | 'showNotification'; afterSubmitModalConfig?: { title: string; content: string; okText: string; onOk?: () => void; }; afterSubmitNotificationConfig?: { title: string; content: string; icon: React.ReactNode; duration: number; placement: 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight'; }; } declare const SubmitButton: (props: SubmitButtonProps) => React.JSX.Element | null; export default SubmitButton;