import type { ComponentType } from 'react'; /** * Configuration for a custom tag handler */ export interface CustomTagConfig { /** The original tag name in markdown (e.g., 'redacted_reasoning') */ originalTag: string; /** The transformed tag name for react-markdown components (e.g., 'think') */ componentTag: string; /** React component to render for this tag */ component: ComponentType; /** Props to pass to the component */ componentProps?: Record; } /** * Configuration for custom tag plugins */ export interface CustomTagsConfig { /** Array of custom tag configurations */ tags: CustomTagConfig[]; }