import React from 'react'; import { HierarchyNode, HierarchyCircularNode } from 'd3-hierarchy'; declare type PackProps = { /** The root hierarchy node from which to derive the pack layout. */ root: HierarchyNode; /** Render override function which is passed the computed pack layout data. */ children?: (pack: HierarchyCircularNode) => React.ReactNode; /** top offset applied to the g element container. */ top?: number; /** left offset applied to the g element container. */ left?: number; /** className applied to the g element container. */ className?: string; /** * Radius accessor function which defines the radius of each leaf node. * If the radius accessor is null, the radius of each leaf circle is derived * from the leaf node.value, and scaled proportionally to fit within * the defined layout `size`. */ radius?: (node: HierarchyNode) => number; /** Sets the pack layout size to the defined [width, height]. */ size?: [number, number]; /** * Sets this pack layout’s padding accessor to the specified number or function, * which determines approximate separation of nodes in the resulting pack. */ padding?: number; /** Component which renders a single pack node, passed the node object. */ nodeComponent?: React.FunctionComponent> | React.ComponentClass>; }; export declare type NodeComponentProps = { node: HierarchyCircularNode; }; export default function Pack({ top, left, className, root, radius, size, padding, children, nodeComponent, }: PackProps): JSX.Element; export {}; //# sourceMappingURL=Pack.d.ts.map