import React, { type FC } from 'react'; import type { MarkdownEditorProps } from '../../MarkdownEditor'; import type { FileNode, FileProps } from '../types'; /** * 文件主组件:列表 / 分组 / 搜索 / 预览路由 + 渐进展示 + actionRef */ export declare const FileComponent: FC<{ nodes: FileProps['nodes']; onGroupDownload?: FileProps['onGroupDownload']; onDownload?: FileProps['onDownload']; onShare?: FileProps['onShare']; onFileClick?: FileProps['onFileClick']; onLocate?: FileProps['onLocate']; /** @deprecated @since 2.29.0 请使用 onGroupToggle 替代 */ onToggleGroup?: FileProps['onToggleGroup']; onGroupToggle?: FileProps['onGroupToggle']; onPreview?: FileProps['onPreview']; onBack?: FileProps['onBack']; /** 重置标识,用于重置预览状态(内部使用) */ resetKey?: FileProps['resetKey']; markdownEditorProps?: Partial>; customActions?: React.ReactNode | ((file: FileNode) => React.ReactNode); actionRef?: FileProps['actionRef']; /** * @deprecated @since 2.29.0 请使用 isLoading 代替 */ loading?: FileProps['loading']; isLoading?: FileProps['isLoading']; loadingRender?: FileProps['loadingRender']; emptyRender?: FileProps['emptyRender']; /** 搜索关键字(受控) */ keyword?: string; onChange?: (keyword: string) => void; /** 是否显示搜索框,默认不显示 */ showSearch?: boolean; searchPlaceholder?: string; searchPlaceholderTree?: string; bindDomId?: FileProps['bindDomId']; fileTreeSwitch?: FileProps['fileTreeSwitch']; }>;