import * as React from 'react'; import { Location } from '../../helpers/urls'; import './TreeMap.css'; export interface TreeMapItem { color?: string; gradient?: string; icon?: React.ReactNode; key: string; label: string; link?: string | Location; measureValue?: string; metric?: { key: string; type: string; }; size: number; tooltip?: React.ReactNode; } interface Props { height: number; items: TreeMapItem[]; onRectangleClick?: (item: string) => void; width: number; } export default class TreeMap extends React.PureComponent { mostCommitPrefix: (labels: string[]) => string; render(): JSX.Element; } export {};