/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import React from 'react'; import { IDialogPropTypes } from 'rc-dialog/es/IDialogPropTypes'; export interface ImgPreviewProps { imgUrl: string | string[]; onClose?: () => void; onIndexChange?: (index: number, url?: string) => void; defaultScale?: number | undefined; defaultIndex?: number; showDownload?: boolean; onDownloadError?: (url: string) => void; prefixCls?: string; renderTips?: (url: string, index: number) => React.ReactNode | string[]; tipsTextMaxLength?: number; } export interface imgpPreviewConfigProps { prefixCls?: string; } export declare type PreviewModalProps = IDialogPropTypes & ImgPreviewProps; export declare const imgpPreviewConfig: (props: imgpPreviewConfigProps) => void; export declare const PreviewModal: (props: PreviewModalProps) => JSX.Element; export declare const imgPreview: (props: ImgPreviewProps) => void;