import React, { type FC } from 'react'; import { type MarkdownEditorProps } from '../../MarkdownEditor'; import { FileNode } from '../types'; /** * PreviewComponent 组件属性 */ export interface PreviewComponentProps { /** 文件数据 */ file: FileNode; /** 自定义预览内容 */ customContent?: React.ReactNode; /** 自定义头部 */ customHeader?: React.ReactNode; /** 自定义操作按钮 */ customActions?: React.ReactNode; /** 返回回调 */ onBack?: () => void; /** 下载回调 */ onDownload?: (file: FileNode) => void; /** 分享回调 */ onShare?: (file: FileNode, options?: { anchorEl?: HTMLElement; origin?: string; }) => void; /** 定位回调 */ onLocate?: (file: FileNode) => void; /** Markdown 编辑器配置 */ markdownEditorProps?: Partial>; /** 头部文件信息覆盖 */ headerFileOverride?: Partial; } /** * 文件预览组件 */ export declare const PreviewComponent: FC;