/** * [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]: registry/basic/collapsible-card.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'; export interface CollapsibleCardProps { headerIcon?: ReactNode; headerTitle: ReactNode; headerRight?: ReactNode; children?: ReactNode; defaultExpanded?: boolean; /** CSS padding 如 '6px 8px',或 Tailwind 类 */ contentPadding?: string; onToggle?: (expanded: boolean) => void; collapsible?: boolean; footer?: ReactNode; contentMaxHeight?: number; /** 是否启用内容区底部展开/收起栏:内容高度超过 maxHeight 时显示,点击切换全部展开或收起 */ showExpandAllBar?: boolean; /** showExpandAllBar 为 true 时,未展开全部时的内容区最大高度(px) */ maxHeight?: number; titleShimmer?: boolean; className?: string; } export declare function CollapsibleCard({ headerIcon, headerTitle, headerRight, children, defaultExpanded, contentPadding, onToggle, collapsible, footer, contentMaxHeight, showExpandAllBar, maxHeight, titleShimmer, className, }: CollapsibleCardProps): import("react/jsx-runtime").JSX.Element; export declare namespace CollapsibleCard { var displayName: string; }