/** Revenue badges pinned to each element's top-right corner, plus click-to-element lookup. */ import type { PageHeatmapBadge } from "../_vendor/schemas/generated/pageHeatmap"; export declare const HEAT_BADGE_ATTRIBUTE = "data-replo-heat-badge"; export interface BadgedElement { selector: string; element: Element; } export interface BadgeRect { x: number; y: number; width: number; isFixed: boolean; } /** The landmark an element sits in, else its nearest section's aria-label or first heading. */ export declare function findSection(element: Element): string | null; /** The clicked badge's selector, else the innermost badged element's (nth-of-type paths rule out `closest`). */ export declare function findClickedSelector({ target, badged, }: { target: Node; badged: BadgedElement[]; }): string | null; export declare function renderBadges({ container, badges, rectFor, }: { container: HTMLElement; badges: PageHeatmapBadge[]; rectFor: (selector: string) => BadgeRect | null; }): void;