import { BoxProps, ElementProps, Factory, MantineColor, StylesApiProps } from '@mantine/core'; export interface GaugeChartSection { /** Upper bound value for this section */ value: number; /** Color of the section */ color: MantineColor; } export type GaugeChartStylesNames = 'root' | 'track' | 'section' | 'sectionCap' | 'needle' | 'label'; export type GaugeChartCssVariables = { root: '--gauge-size'; }; export interface GaugeChartProps extends BoxProps, StylesApiProps, ElementProps<'svg', 'display' | 'opacity' | 'viewBox' | 'width' | 'height' | 'target'> { /** Current value to display. Fills the arc from `min` up to `value`, unless `sections` is set – then the arc is colored by thresholds and the value is displayed only in the center label. */ value: number; /** Minimum value of the gauge, @default 0 */ min?: number; /** Maximum value of the gauge, @default 100 */ max?: number; /** Value marked on the arc with a line marker, use to display a goal or the current value of a gauge with `sections` */ target?: number; /** Threshold sections of the gauge arc, each section is filled from the previous section upper bound to its own `value`. If set, the arc is not filled based on `value`. */ sections?: GaugeChartSection[]; /** Arc thickness in px, @default 12 */ thickness?: number; /** Chart size (width and height), @default 200 */ size?: number; /** Start angle in degrees, @default -120 */ startAngle?: number; /** End angle in degrees, @default 120 */ endAngle?: number; /** Label displayed in the center of the gauge */ label?: React.ReactNode; /** Value formatter for default label, @default (v) => String(v) */ valueFormatter?: (value: number) => string; /** Color of the gauge track (unfilled portion) */ trackColor?: MantineColor; /** Color of the filled arc when sections are not provided */ filledColor?: MantineColor; /** Color of the target marker */ targetColor?: MantineColor; /** Thickness of the target marker, @default 2 */ targetSize?: number; /** Whether to round arc endpoints. With `sections`, only the outer ends of the first and last sections are rounded. @default false */ roundCaps?: boolean; } export type GaugeChartFactory = Factory<{ props: GaugeChartProps; ref: SVGSVGElement; stylesNames: GaugeChartStylesNames; vars: GaugeChartCssVariables; }>; export declare const GaugeChart: import("@mantine/core").MantineComponent<{ props: GaugeChartProps; ref: SVGSVGElement; stylesNames: GaugeChartStylesNames; vars: GaugeChartCssVariables; }>;