import React, { type FC } from 'react'; import type { FileNode } from '../../../types'; export interface PlaceholderContentProps { children?: React.ReactNode; /** 是否在占位区显示文件名 / 大小等基础信息 */ showFileInfo?: boolean; file?: FileNode; /** 显示「点击下载」按钮的回调 */ onDownload?: () => void; locale?: Record; /** 外部传入的样式前缀;未传时回退为 ant 默认前缀拼接 workspace-preview */ prefixCls?: string; hashId?: string; } /** * 预览页通用占位容器:用于加载中、错误、不支持等场景 * * 仅承担布局容器职责,具体的 Spin / Alert / 文案由调用方传入 children */ export declare const PlaceholderContent: FC;