import { type IntlShape } from "react-intl"; import { type ISeparators } from "@gooddata/sdk-model"; import { type IHeaderPredicate } from "@gooddata/sdk-ui"; import { type ICustomTooltipConfig } from "@gooddata/sdk-ui-vis-commons"; import { type IGeoPushpinChartConfig } from "../../../types/config/pushpinChart.js"; import { type IGeoLayerTooltipLookup } from "../../common/customTooltipExecution.js"; import { type IPopupFacade } from "../../common/mapFacade.js"; import type { IGeoTooltipConfig, ITooltipReferenceMaps } from "../../registry/adapterTypes.js"; export declare const TOOLTIP_MAX_WIDTH = 320; /** * Determine if a tooltip should be shown for the given feature properties * * @param geoProperties - GeoJSON feature properties * @returns True if tooltip should be shown * * @internal */ export declare function shouldShowTooltip(geoProperties: GeoJSON.GeoJsonProperties | undefined): boolean; /** * Generate HTML content for tooltip * * @param geoProperties - GeoJSON feature properties * @param tooltipStroke - Color for tooltip stroke * @param maxWidth - Maximum width of tooltip * @param separators - Number format separators * @param drillableItems - Drillable items configuration * @param intl - Internationalization shape (used for the custom-tooltip * `(No data)` fallback string) * @param showStroke - Whether to render the stroke band above the body * (defaults to `true`; pass `false` for icon-shape pushpins) * @param customConfig - Optional custom-tooltip config (markdown content + * placement). When omitted or disabled, the tooltip renders the default * items only. * @param referenceMaps - Optional per-layer maps used by the custom-tooltip * resolver to translate `localIdentifier` / `attrId` into the LDM ids * referenced as `{metric/}` and `{label/}`. * @param tooltipLookup - Optional per-layer tooltip lookup * @returns HTML string for tooltip * * @internal */ export declare function getTooltipHtml(geoProperties: GeoJSON.GeoJsonProperties, tooltipStroke: string, maxWidth: number, separators: ISeparators | undefined, drillableItems: IHeaderPredicate[] | undefined, intl: IntlShape, showStroke?: boolean, customConfig?: ICustomTooltipConfig, referenceMaps?: ITooltipReferenceMaps, tooltipLookup?: IGeoLayerTooltipLookup): string; /** * Creates tooltip configuration for the unified tooltip handler. * * @param tooltip - Popup facade for displaying tooltips * @param config - Chart configuration * @param drillableItems - Drillable items predicates * @param intl - Internationalization instance * @param layerIds - MapLibre layer IDs to monitor * @param referenceMaps - Per-layer maps used by the custom-tooltip resolver * @param tooltipLookup - Per-layer tooltip lookup * @returns Tooltip configuration for unified handling * * @internal */ export declare function createPushpinTooltipConfig(tooltip: IPopupFacade, config: IGeoPushpinChartConfig, drillableItems: IHeaderPredicate[] | undefined, intl: IntlShape, layerIds: string[], referenceMaps?: ITooltipReferenceMaps, tooltipLookup?: IGeoLayerTooltipLookup): IGeoTooltipConfig; //# sourceMappingURL=tooltipManagement.d.ts.map