import * as React from 'react'; import { type ChartsSlotProps, type AxisId } from '@mui/x-charts/internals'; import { type RenderProp } from '@mui/x-internals/useComponentRenderer'; import { type RangeButtonValue } from "./rangeButtonValueToZoom.js"; export interface ChartsToolbarRangeButtonTriggerProps { /** * A function to customize the rendering of the component. */ render?: RenderProp; /** * The range value. Specifies how far back from the end of the data to zoom. * * - `{ unit, step }` — A calendar interval from the end of the data (e.g., `{ unit: 'month', step: 3 }` for 3 months). * - `[start, end]` — An absolute date range. * - `(params) => { start, end }` — A function that receives axis context (`scaleType`, `data`, `domain`) and returns zoom percentages (0-100). * - `null` — Resets zoom to show all data. */ value: RangeButtonValue; /** * The axis ID to apply the range to. * Defaults to the first x-axis with zoom enabled. */ axisId?: AxisId; /** * The label used to identify the button for active-state tracking. */ label: string; /** * The size of the button. * @default 'small' */ size?: 'small' | 'medium' | 'large'; } /** * A button that sets the chart zoom to a predefined range. * It renders the `baseToggleButton` slot. */ declare const ChartsToolbarRangeButtonTrigger: React.ForwardRefExoticComponent>; export { ChartsToolbarRangeButtonTrigger };