import { type StyleProp, type ViewStyle } from "../../style/index.js"; import { type ChartSkin } from "../shared/types.js"; export interface TreemapDatum { /** Stable identity, used as the React key when present. */ id?: string | number; /** The tile label. */ label: string; /** The tile's magnitude; sizes its area. */ value: number; } export interface TreemapProps { /** The tiles, laid out largest first by the squarified algorithm. */ data: TreemapDatum[]; /** Optional heading shown above the tiles. */ title?: string; compact?: boolean; /** Formats tile values and the flag (data formatting, not styling). */ formatValue?: (v: number) => string; /** Press-to-inspect: the selected tile index (controlled). Pass null for none. */ selected?: number | null; /** Press-to-inspect: the initially selected tile (uncontrolled). */ defaultSelected?: number; /** Fired when a press selects a tile (or clears it with null). */ onSelect?: (index: number | null) => void; /** E2E hook forwarded to the root element. */ testID?: string; /** Outer layout composition only (width/flex within a parent), never a restyle hook. */ style?: StyleProp; } export declare function createTreemap(skin: ChartSkin): (props: TreemapProps) => import("react").JSX.Element; //# sourceMappingURL=treemap.shared.d.ts.map