import { ButtonProps, ModalProps } from 'antd'; import React from 'react'; export type ProViewerModePropsType = 'modal' | 'page'; export type ProViewerFilePropsType = 'pdf' | 'img' | 'word' | 'excel'; export type PreviewFileHandlerPropsType = () => PromiseLike; export type BufferSource = ArrayBufferView | ArrayBuffer; export type BlobPart = string | Blob | BufferSource; declare module 'antd' { interface ModalProps { height?: string; } } export interface JumpPagePropsType { blob?: Blob; src?: string; } export interface StatePropsType { imgVisible?: boolean; modalVisible?: boolean; url: string; } export interface ProViewerPropsType { disabled?: boolean; mode: ProViewerModePropsType | string; fileType?: ProViewerFilePropsType; src?: string; onClick?: () => void; icon?: React.ReactNode; modalProps?: ModalProps; buttonProps?: Omit; previewFile?: PreviewFileHandlerPropsType; previewData?: any; children?: any; [key: string]: any; }