/** * Tooltip Component — shows content on hover/focus with smart positioning. * The anchor is the tooltip's PARENT element; the popover itself lives in * document.body (top layer), not in this element's shadow root. */ import { type Placement } from '../utils/positioning.js'; import type { Flavor } from '../types/common.js'; /** * Tooltip flavors: dark (default) / light / info plus any Flavor — * built-in semantic colors or a custom flavor backed by --ty-*-X tokens. */ export type TooltipFlavor = 'dark' | 'light' | 'info' | Flavor; /** * Tooltip attributes configuration */ export interface TooltipAttributes { placement: Placement; offset: number; delay: number; disabled: boolean; flavor: TooltipFlavor; } /** * TyTooltip Web Component */ export declare class TyTooltip extends HTMLElement { /** Internal open state */ _open: boolean; static get observedAttributes(): string[]; constructor(); connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void; }