import React, { type FC } from 'react'; import type { MarkdownEditorProps } from '../../MarkdownEditor'; import type { FileNode, FileProps } from '../types'; export declare const FileComponent: FC<{ nodes: FileProps['nodes']; onGroupDownload?: FileProps['onGroupDownload']; onDownload?: FileProps['onDownload']; onShare?: FileProps['onShare']; onFileClick?: FileProps['onFileClick']; onLocate?: FileProps['onLocate']; onToggleGroup?: FileProps['onToggleGroup']; onPreview?: FileProps['onPreview']; onBack?: FileProps['onBack']; /** 重置标识,用于重置预览状态(内部使用) */ resetKey?: FileProps['resetKey']; /** * MarkdownEditor 的配置项,用于自定义预览效果 * @description 这里的配置会覆盖默认的预览配置 */ markdownEditorProps?: Partial>; /** * 自定义预览页面右侧操作区域 * @description 可以是 ReactNode 或者根据文件返回 ReactNode 的函数 */ customActions?: React.ReactNode | ((file: FileNode) => React.ReactNode); actionRef?: FileProps['actionRef']; loading?: FileProps['loading']; loadingRender?: FileProps['loadingRender']; emptyRender?: FileProps['emptyRender']; /** 搜索关键字(受控) */ keyword?: string; /** 搜索关键字变化回调 */ onChange?: (keyword: string) => void; /** 是否显示搜索框,默认显示 */ showSearch?: boolean; /** 搜索框占位符 */ searchPlaceholder?: string; /** 是否在元素上绑定 DOM id(默认 false) */ bindDomId?: FileProps['bindDomId']; }>;