import type { HeatmapDescriber } from './heatmap-format'; import type { HeatmapCellInfo } from './heatmap-model'; import type { ResolvedHeatmapScale } from './heatmap-scale'; import type { HeatmapPalette } from './heatmap-variants'; export interface HeatmapContextValue { palette: HeatmapPalette; scale: ResolvedHeatmapScale; describer: HeatmapDescriber; /** True when some cells fall below `minCount`, so the legend explains it. */ hasLowSample: boolean; /** True when a total the grid draws is withheld to protect small * numbers. It may rest on many records, so the legend keys it apart. */ hasWithheldTotal: boolean; /** True when some cells have no data. */ hasEmpty: boolean; /** The sample threshold, when one is set. */ minCount?: number; /** The tooltip text for a cell: the consumer's, or the default sentence. */ tooltipText: (cell: HeatmapCellInfo) => string; } export declare const HeatmapContext: import("react").Context; /** The surrounding Heatmap's context, or null outside one. */ export declare function useHeatmapContext(): HeatmapContextValue | null; //# sourceMappingURL=heatmap-context.d.ts.map