/**
* Tooltip.
*
* An HTML overlay rather than SVG text: real text wrapping, real CSS, and no
* clipping by the SVG viewport. Positioning flips near the container edges so a
* tooltip on a feature at the right margin does not fall off the map.
*
* @module components/Tooltip
*/
import type { ScreenPoint, TooltipOptions } from '../types';
export declare class Tooltip {
readonly container: HTMLElement;
/** Re-pointed at the live config on every draw; see `_syncComponentOptions`. */
options: TooltipOptions;
el: HTMLElement | null;
visible: boolean;
constructor({ container, options }: {
container: HTMLElement;
options: TooltipOptions;
});
mount(): void;
show({ point, html: markup }: {
point: ScreenPoint;
html: string;
}): void;
move([x, y]: ScreenPoint): void;
hide(): void;
destroy(): void;
/**
* Default tooltip content: name, value, and the join key when it differs from
* the name (which is exactly when a developer is debugging a join).
*
*/
static defaultContent({ feature, value, datum, series, format, }: {
feature: {
key?: string;
name?: string;
};
value: number | null;
datum: unknown;
series?: {
config?: {
name?: string;
};
scale?: {
nullLabel?: string;
};
};
format?: (v: number) => string;
}): string;
}
//# sourceMappingURL=Tooltip.d.ts.map