import { ComponentDefinition } from './types'; /** * Wraps `ChartRenderer` as a component definition so charts can * be registered in a `componentCatalog()`. * * The adapter renders a `ChartRenderer` internally using the same * config-based API, with reaviz as the underlying chart library. * * Because reaviz is an optional peer dependency, this adapter is * fully tree-shakeable — it only loads reaviz code when imported. * * Both `zod` and `reaviz` are required when this helper is used. * * @example * ```tsx * import { componentCatalog, createChartComponentDef } from 'reachat'; * * const catalog = componentCatalog({ * Chart: createChartComponentDef(), * // ... other components * }); * ``` * * The LLM can then output: * ```component * { * "type": "Chart", * "props": { * "type": "bar", * "data": [{ "key": "A", "data": 10 }, { "key": "B", "data": 20 }], * "title": "My Chart" * } * } * ``` */ export declare function createChartComponentDef(): ComponentDefinition;