/** * ArtifactContentRenderer - Renders artifact content by type * * Supports rendering charts, tables, markdown, fusion fragments, and more. */ import { type ReactElement } from 'react'; export type ExpandRenderType = 'chart' | 'vega-lite' | 'table' | 'markdown' | 'fusion-fragment' | 'mockup' | 'code' | 'image' | 'auto'; export interface ArtifactContentRendererProps { /** The fetched content (parsed JSON or string) */ content: unknown; /** The explicit render type (from expand:type syntax) */ renderType: ExpandRenderType; /** Artifact path (for display and type detection) */ path: string; /** Run ID for nested artifact references */ runId?: string; /** Content type detected from path */ contentType?: 'json' | 'text' | 'binary'; } /** * Sanitize SVG markup using DOMPurify. * Allows only safe SVG elements; strips scripts, event handlers, and foreignObject. */ export declare function sanitizeSvg(svg: string): string; /** * Make SVG responsive — remove fixed dimensions, ensure viewBox. */ export declare function makeSvgResponsive(svg: string): string; /** * ArtifactContentRenderer - Main component * * Renders artifact content based on explicit type or auto-detection. */ export declare function ArtifactContentRenderer({ content, renderType, path, runId, contentType, }: ArtifactContentRendererProps): ReactElement; //# sourceMappingURL=ArtifactContentRenderer.d.ts.map