import { type LazyExoticComponent } from 'react'; import { type PdfViewerProps } from '../../../../PdfViewer'; import type { FileId } from '../../../types'; export type PreviewProps = { /** * Объект файла */ file?: File | null; /** * URL файла, если он уже загружен */ fileUrl?: string | null; /** * Функция для генерации ссылки на скачивание файла */ generateDownloadLink?: (fileId: FileId, file?: File, fileUrl?: string) => string; isImageFile: boolean; isPdfFile: boolean; /** * Скрытие персональных данных от инструментов мониторинга */ isHidePersonalData?: boolean; /** * Компонент для отображения превью pdf-файлов */ PdfViewer?: ((props: PdfViewerProps) => JSX.Element) | LazyExoticComponent<(props: PdfViewerProps) => JSX.Element>; }; export declare const Preview: (props: PreviewProps) => JSX.Element;