import React from 'react'; import { Area as AreaType, Stack as StackType, SeriesPoint, Series } from 'd3-shape'; import { $TSFIXME, AddSVGProps, AccessorForArrayItem, StackKey, BaseStackProps, AreaPathConfig } from '../types'; export declare type StackProps = BaseStackProps & { /** Returns a color for a given stack key and index. */ color?: (key: Key, index: number) => string; /** Override render function which is passed the configured arc generator as input. */ children?: (args: { stacks: Series[]; path: AreaType>; stack: StackType<$TSFIXME, Datum, Key>; }) => React.ReactNode; /** Sets the x0 accessor function, and sets x1 to null. */ x?: AccessorForArrayItem, number>; /** Specifies the x0 accessor function which defaults to d => d[0]. */ x0?: AccessorForArrayItem, number>; /** Specifies the x1 accessor function which defaults to null. */ x1?: AccessorForArrayItem, number>; /** Specifies the y0 accessor function which defaults to d => 0. */ y0?: AccessorForArrayItem, number>; /** Specifies the y1 accessor function which defaults to d => d[1]. */ y1?: AccessorForArrayItem, number>; } & Pick>, 'defined' | 'curve'>; export default function Stack({ className, top, left, keys, data, curve, defined, x, x0, x1, y0, y1, value, order, offset, color, children, ...restProps }: AddSVGProps, SVGPathElement>): JSX.Element; //# sourceMappingURL=Stack.d.ts.map