import { NumericKey, TextKey } from './keys'; import { ObservationsCardProps, ObservationScene } from './observations-card'; export interface TreemapChartCardProps> extends ObservationsCardProps { /** Unique text field naming each leaf within its group. */ label: TextKey; /** Nonnegative area. Null is missing; zero has no area. */ value: Key; /** Optional parent category. Input rows are leaves, never parent totals. */ group?: TextKey; /** Explore a parent group, with a breadcrumb back to all leaves. */ drilldown?: boolean; } interface Rect { x: number; y: number; width: number; height: number; } /** Balanced binary tiling. Input order stays deterministic, with no random placement. */ export declare function tileAreas(items: readonly T[], weight: (item: T) => number, rect: Rect): { item: T; rect: Rect; }[]; export declare function treemapLayout(data: readonly Row[], label: string, value: string, group: string | undefined, width: number, height: number, color?: string): ObservationScene; export declare function TreemapChartCard>({ label, value, group, color, drilldown, ...props }: TreemapChartCardProps): import("react/jsx-runtime").JSX.Element; export {};