import { BoxProps, ElementProps, Factory, MantineColor, StylesApiProps, TooltipFloatingProps } from '@mantine/core'; export interface MatrixChartCell { x: string; y: string; value: number | null; } export type MatrixChartData = MatrixChartCell[]; export type MatrixChartStylesNames = 'root' | 'cell' | 'xLabel' | 'yLabel' | 'legend' | 'legendLabel' | 'legendRect'; export interface MatrixChartProps extends BoxProps, StylesApiProps, ElementProps<'svg', 'display' | 'opacity' | 'viewBox' | 'width' | 'height'> { /** Array of cell objects with x, y, and value */ data: MatrixChartData; /** Labels for x-axis (columns), displayed along top or bottom */ xLabels?: string[]; /** Labels for y-axis (rows), displayed along left side */ yLabels?: string[]; /** Value domain [min, max] for color interpolation, auto-calculated if not set */ domain?: [number, number]; /** Array of colors for value interpolation, by default 4 shades of green colors are used */ colors?: MantineColor[]; /** Cell size in px, @default 20 */ cellSize?: number; /** Gap between cells in px, @default 1 */ gap?: number; /** Cell border radius, @default 2 */ cellRadius?: number; /** If set, tooltip is displayed on cell hover, requires `getTooltipLabel` to be set @default false */ withTooltip?: boolean; /** A function to generate tooltip label based on the hovered cell, required for the tooltip to be visible */ getTooltipLabel?: (cell: MatrixChartCell) => React.ReactNode; /** Props passed down to the `Tooltip.Floating` component */ tooltipProps?: Partial; /** Callback to add custom props to cells */ getCellProps?: (cell: MatrixChartCell) => React.ComponentProps<'rect'>; /** Width reserved for y-axis labels, @default 60 */ yLabelsWidth?: number; /** Height reserved for x-axis labels, @default 60 */ xLabelsHeight?: number; /** X-axis label position, @default 'bottom' */ xLabelsPosition?: 'top' | 'bottom'; /** Font size for axis labels, @default 12 */ fontSize?: number; /** Color for empty/null cells */ emptyColor?: MantineColor; /** Whether to show legend, @default false */ withLegend?: boolean; /** Legend labels, @default ['Less', 'More'] */ legendLabels?: [string, string]; /** If set, x-axis labels are displayed, @default false */ withXLabels?: boolean; /** If set, y-axis labels are displayed, @default false */ withYLabels?: boolean; /** Rotation angle for x-axis labels in degrees, @default -90 */ xLabelsRotation?: number; } export type MatrixChartFactory = Factory<{ props: MatrixChartProps; ref: SVGSVGElement; stylesNames: MatrixChartStylesNames; }>; export declare const MatrixChart: import("@mantine/core").MantineComponent<{ props: MatrixChartProps; ref: SVGSVGElement; stylesNames: MatrixChartStylesNames; }>;