import * as React from 'react'; /** * Schema for configuring an AIChart */ export interface ChartBlockSchema { /** Unique identifier for the component instance */ id: string; /** Chart type */ type: 'bar' | 'line' | 'pie' | 'area'; /** Optional title displayed above the chart */ title?: string; /** Array of data points */ data: Record[]; /** Key for X-axis values */ xKey?: string; /** Key(s) for Y-axis values - can be a single key or array for multiple series */ yKey?: string | string[]; /** Custom colors for the chart series */ colors?: string[]; /** Whether the chart responds to click events */ interactive?: boolean; /** Height of the chart in pixels (default: 300) */ height?: number; } /** * Props for AIChart */ export interface AIChartProps { /** Schema defining the chart configuration */ schema: ChartBlockSchema; /** Additional class names */ className?: string; } /** * AIChart - Renders charts from JSON schema in AI chat messages. * * Supports bar, line, pie, and area chart types with optional interactivity. * When interactive mode is enabled, click events are emitted through the * AIInteractionContext. */ export declare function AIChart({ schema, className, }: AIChartProps): React.ReactElement; export declare namespace AIChart { var displayName: string; } export default AIChart;