import type { ColorLegendProps as CoreColorLegendProps, ColorLegendRenderContext, LegendProps as CoreLegendProps, LegendItemRenderContext } from '@primeui/chart-types'; import type { CSSProperties, VNode } from 'vue'; export interface ChartLegendProps extends CoreLegendProps { render?: (context: LegendItemRenderContext) => VNode | VNode[] | string | null; /** Custom CSS class (shared mode only) */ class?: string; /** Custom inline styles (shared mode only) */ style?: CSSProperties; } export interface ColorLegendProps extends Omit { /** Custom render function for the color legend. When provided, replaces the default gradient bar entirely. */ render?: (context: ColorLegendRenderContext) => VNode | null; }