import * as React from 'react'; import type { BarElementSlotProps, BarElementSlots, BarLabelSlots, BarLabelSlotProps } from '@mui/x-charts/BarChart'; import type { RangeBarItemIdentifier } from "../../models/index.js"; export type RangeBarPlotRenderer = 'svg-single' | 'webgl'; export interface RangeBarPlotSlots extends BarElementSlots, BarLabelSlots {} export interface RangeBarPlotSlotProps extends BarElementSlotProps, BarLabelSlotProps {} export interface RangeBarPlotProps { /** * If `true`, animations are skipped. * @default undefined */ skipAnimation?: boolean; /** * Callback fired when a bar item is clicked. * @param {React.MouseEvent} event The event source of the callback. * @param {RangeBarItemIdentifier} barItemIdentifier The range bar item identifier. */ onItemClick?: (event: React.MouseEvent, barItemIdentifier: RangeBarItemIdentifier) => void; /** * Defines the border radius of the bar element. */ borderRadius?: number; /** * The type of renderer to use for the range bar plot. * - `svg-single`: Renders every bar in a `` element. * - `webgl`: Renders bars using WebGL for better performance with very large datasets, at the cost of some limitations. * Read more: https://mui.com/x/react-charts/bars/#performance * * @default 'svg-single' */ renderer?: RangeBarPlotRenderer; /** * The props used for each component slot. * @default {} */ slotProps?: RangeBarPlotSlotProps; /** * Overridable component slots. * @default {} */ slots?: RangeBarPlotSlots; } /** * Demos: * * - [Range Bar](https://mui.com/x/react-charts/range-bar/) * * API: * * - [RangeBarPlot API](https://mui.com/x/api/charts/range-bar-plot/) */ declare function RangeBarPlot(props: RangeBarPlotProps): React.JSX.Element; declare namespace RangeBarPlot { var propTypes: any; } export { RangeBarPlot };