import * as React from 'react'; import type { SlotComponentPropsFromProps } from '@mui/x-internals/types'; import type { AnimatedAreaProps } from "./AnimatedArea.js"; import type { SeriesId } from "../models/seriesType/common.js"; import type { LineClasses } from "./lineClasses.js"; import type { AreaPropsOverrides } from "../models/chartsSlotsComponentsProps.js"; export interface AreaElementOwnerState { /** * The id of the series the element belongs to. */ seriesId: SeriesId; /** * The color of the area. */ color: string; /** * The id of the gradient used to color the element. * The `gradientId` is used as `url(#gradientId)`. */ gradientId?: string; isFaded: boolean; isHighlighted: boolean; /** * Override or extend the styles applied to the component. */ classes?: Partial>; } export interface AreaElementSlots { /** * The component that renders the area. * @default AnimatedArea */ area?: React.JSXElementConstructor; } export interface AreaElementSlotProps { area?: SlotComponentPropsFromProps; } export interface AreaElementProps extends Omit, Pick, Omit, 'ref' | 'color'> { /** * The SVG path of the element. */ d: string; /** * The props used for each component slot. * @default {} */ slotProps?: AreaElementSlotProps; /** * Overridable component slots. * @default {} */ slots?: AreaElementSlots; } /** * Demos: * * - [Lines](https://mui.com/x/react-charts/lines/) * - [Areas demonstration](https://mui.com/x/react-charts/areas-demo/) * * API: * * - [AreaElement API](https://mui.com/x/api/charts/area-element/) */ declare function AreaElement(props: AreaElementProps): React.JSX.Element; declare namespace AreaElement { var propTypes: any; } export { AreaElement };