import React, { ReactElement } from 'react'; import { type Rect, type IScreenshotButtonProp, type AlignType, type ViewOption, type IOdRectOrigin } from '@zhst/types'; import './index.less'; export interface ImgViewProps extends React.HTMLAttributes { dataSource: Array<{ url?: string; imageKey: string; attachImg?: Array<{ label: string; url: string; }>; odRect?: Rect; score?: number; showScore?: boolean; cameraPosition?: string; time?: string | number; objects: any[]; }>; showAttachImgLabel: boolean; showOpt: boolean; width?: string | number; height?: string | number; screenshotButtonAlign: AlignType; screenshotButtonRender: (screenshotButtonProp: IScreenshotButtonProp) => ReactElement; hideLeftTopBtn?: boolean; showScore?: boolean; viewOption?: ViewOption; objects: IOdRectOrigin[]; } export interface ImgViewRef { imgInsRef: React.MutableRefObject; setShowCrop: React.Dispatch>; } export declare const BigImagePreview: React.ForwardRefExoticComponent>; export default BigImagePreview;