import * as React from 'react'; import { SlotComponentPropsFromProps } from '@mui/x-internals/types'; import { AnimatedAreaProps } from "./AnimatedArea.js"; import { SeriesId } from "../models/seriesType/common.js"; export interface AreaElementClasses { /** Styles applied to the root element. */ root: string; /** Styles applied to the root element when highlighted. */ highlighted: string; /** Styles applied to the root element when faded. */ faded: string; /** * Styles applied to the root element for a specified series. * Needs to be suffixed with the series ID: `.${areaElementClasses.series}-${seriesId}`. */ series: string; } export type AreaElementClassKey = keyof AreaElementClasses; export interface AreaElementOwnerState { id: SeriesId; color: string; gradientId?: string; isFaded: boolean; isHighlighted: boolean; classes?: Partial; } export declare function getAreaElementUtilityClass(slot: string): string; export declare const areaElementClasses: AreaElementClasses; 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' | 'id'> { 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 };