import { ReactElement } from 'react'; import { NumericKey, TextKey } from '../../cards/keys'; import { ObservationsCardProps, ObservationScene } from '../../cards/observations-card'; export interface MarketMapCardProps> extends Omit, 'color'> { /** Unique text field naming each instrument within its group, such as its ticker. */ label: TextKey; /** Tile area, such as market cap. Nonnegative; null is missing and zero has no area. */ value: Key; /** Fractional change that colors each tile: 0.012 is up 1.2%. */ change: NumericKey; /** Optional parent category, such as a sector, named over its tiles. */ group?: TextKey; /** The change at which tiles reach full color. Defaults to 0.03, a 3% move. */ scale?: number; } /** The treemap's tiles, recolored by each instrument's change and labeled with it. */ export declare function marketMapLayout(data: readonly Row[], label: string, value: string, change: string, group: string | undefined, scale: number, width: number, height: number, percent: (value: number) => string): ObservationScene; /** * A market at a glance: every instrument a tile sized by its weight, such as market cap, and * colored green or red by how far it moved, grouped by sector. Hover reads its value and move. */ export declare function MarketMapCard>({ label, value, change, group, scale, legend, locale, ...props }: MarketMapCardProps): ReactElement;