import { type FC } from 'react'; import type { FileNode } from '../../../types'; export interface UnsupportedFileCardProps { file: FileNode; /** 是否允许显示下载按钮(受 file.canDownload 与外部 onDownload 控制) */ canDownload: boolean; onDownload?: () => void; /** 文件区前缀(`workspace-file`),用于复用 FileItem 视觉 */ filePrefixCls: string; /** 预览区前缀(`workspace-file-preview`) */ prefixCls: string; hashId: string; locale?: Record; } /** * 「无法预览」卡片 * * 复用 `${filePrefixCls}-item-*` 的视觉 token,与列表页文件卡保持一致; * 当存在下载源时展示「下载」按钮,否则仅展示提示文案。 */ export declare const UnsupportedFileCard: FC;