import { FC, CSSProperties } from 'react'; import './style'; type Download = false | { actionType?: 'downloadBlob' | 'openUrl'; }; type GetNonCORSUrl = (originUrl: string) => Promise | string; interface Props { src: string | { origin: string; nonCORS: string; }; name?: string; type?: string; index?: number; list?: Array<{ type: string; src: string; nonCORSSrc?: string; }>; docNames?: string[]; className?: any; style?: CSSProperties; showAllPages?: boolean; destroyOnClose?: boolean; download?: Download; getNonCORSUrl?: GetNonCORSUrl; loading?: boolean; } declare const MediaWithPreview: FC; export default MediaWithPreview;