import { BoxProps, ElementProps, Factory, MantineColor, StylesApiProps } from '@mantine/core'; export interface WaffleChartCell { /** Segment name */ name: string; /** Segment value */ value: number; /** Segment color */ color: MantineColor; /** Unique key for the segment */ key?: string | number; } export type WaffleChartStylesNames = 'root' | 'grid' | 'cell' | 'legend' | 'legendItem' | 'legendSwatch' | 'legendLabel'; export type WaffleChartCssVariables = { root: '--waffle-cell-radius' | '--waffle-empty-color'; }; export interface WaffleChartProps extends BoxProps, StylesApiProps, ElementProps<'div'> { /** Array of data segments with name, value, and color */ data: WaffleChartCell[]; /** Number of rows, @default 10 */ rows?: number; /** Number of columns, @default 10 */ columns?: number; /** Total value for the chart, determines how many cells are filled vs empty, sum of all values by default */ total?: number; /** Gap between cells in px, @default 2 */ gap?: number; /** Cell border radius, @default 0 */ cellRadius?: number; /** Color of empty (unfilled) cells */ emptyColor?: MantineColor; /** Whether to show tooltip on hover, @default false */ withTooltip?: boolean; /** Custom tooltip label formatter */ getTooltipLabel?: (cell: WaffleChartCell & { count: number; }) => React.ReactNode; /** Whether to show legend, @default true */ withLegend?: boolean; /** Legend position, @default 'bottom' */ legendPosition?: 'top' | 'bottom' | 'left' | 'right'; /** Fill direction, @default 'left-to-right' */ fillDirection?: 'left-to-right' | 'right-to-left' | 'top-to-bottom' | 'bottom-to-top'; /** Chart size (width), auto-calculated from columns if not set */ size?: number; } export type WaffleChartFactory = Factory<{ props: WaffleChartProps; ref: HTMLDivElement; stylesNames: WaffleChartStylesNames; vars: WaffleChartCssVariables; }>; export declare const WaffleChart: import("@mantine/core").MantineComponent<{ props: WaffleChartProps; ref: HTMLDivElement; stylesNames: WaffleChartStylesNames; vars: WaffleChartCssVariables; }>;