import { Modal as OriginalModal } from 'antd'; import React from 'react'; import { ButtonItemType } from '@/types/table'; import './index.scss'; type ButtonType = 'link' | 'text' | 'default' | 'primary' | 'dashed' | undefined; type ModalType = 'info' | 'success' | 'warning' | 'error' | 'confirm'; interface ButtonItem { compId?: string; name: string; type?: ButtonItemType; danger?: boolean; onClick?: (item?: Record) => void; } export interface RsModalProps { width?: string; height?: string; mask?: boolean; closable?: boolean; closeType?: 'ESCClose' | 'maskClose'; placement?: 'top' | 'right' | 'bottom' | 'left'; title?: React.ReactNode; children?: React.ReactNode; className?: string; style?: React.CSSProperties; footerShow?: boolean; __designMode?: string; open?: boolean; okType?: ButtonType; footerAlign?: 'left' | 'center' | 'right'; buttonLayout?: 'cancel-ok' | 'ok-cancel' | 'ok' | 'cancel'; modalChoose?: 'infoModal' | 'defaultModal'; modalType?: ModalType; okText?: string; cancelText?: string; forceRender?: boolean; wrapClassName?: string; afterClose?: () => void; onOk?: () => void; onCancel?: () => void; forwardRef?: any; customButtonPosition?: number; buttonItems?: ButtonItem[]; } declare const RsModal: import("react").ForwardRefExoticComponent> & { info: typeof OriginalModal.info; success: typeof OriginalModal.success; error: typeof OriginalModal.error; warning: typeof OriginalModal.warning; warn: typeof OriginalModal.warn; confirm: typeof OriginalModal.confirm; }; export default RsModal;