/** * [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/chat/code-block-part.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 type CodeBlockDiffType = 'add' | 'remove'; export interface CodeBlockPartProps { language?: string; code?: string; filename?: string; diffType?: CodeBlockDiffType | null; diffLines?: number | null; isGenerating?: boolean; defaultExpanded?: boolean; className?: string; headerIcon?: ReactNode; getFileIcon?: (fileType?: string, filename?: string) => ReactNode; } export declare function CodeBlockPart({ language, code, filename, diffType, diffLines, isGenerating, defaultExpanded, className, headerIcon, getFileIcon, }: CodeBlockPartProps): import("react/jsx-runtime").JSX.Element; export declare namespace CodeBlockPart { var displayName: string; } export declare const CodeBlockCard: typeof CodeBlockPart; export type CodeBlockCardProps = CodeBlockPartProps;