/** * [WHO]: Public exports from this file (see implementation below). * [FROM]: See the import block immediately after this header. * [TO]: sparkdesign package consumers; output of CLI `add` when applicable. * [HERE]: src/lib/file-icon.tsx — Spark Design source; keep aligned with the main library. * * [PROTOCOL]: * 1. Keep this P3 header in sync when the public contract changes. * 2. Update module AGENTS.md (P2) and root AGENTS.md (P1) when boundaries change. * 3. Follow design tokens and explicit type exports. */ import type { ReactNode } from 'react'; /** * 根据文件名返回文件图标。 * 主库仅提供通用占位图标;用户通过 IconsProvider 传入 getFileIcon 时可实现按扩展名映射(如 Lucide、Remix)。 */ export declare function getFileIconByFilename(filename: string, className?: string): ReactNode;