import { LitElement, type PropertyValues } from "lit"; import { type TooltipPosition } from "./tooltip.types.js"; export { TOOLTIP_POSITIONS, type TooltipPosition, parsePlacement } from "./tooltip.types.js"; export { tooltipStyles } from "./tooltip.styles.js"; export { tooltipStoryMeta } from "./tooltip.story.js"; /** * `` * * Lightweight, accessible floating tooltip adhering to WCAG 1.4.13. */ export declare class EdsTooltip extends LitElement { static readonly storyMeta: import("../../story-meta.js").StoryMeta; static styles: import("lit").CSSResult; private localeController; /** Tooltip text content. */ text: string; /** * Tooltip placement relative to the trigger. * Supports: auto, auto-start, auto-end, top, top-start, top-end, * bottom, bottom-start, bottom-end, left, left-start, left-end, * right, right-start, right-end. */ placement: TooltipPosition; /** * Controlled open state. If `true`, the tooltip is shown. * When set programmatically, the tooltip becomes "controlled" and * will not toggle automatically on hover/focus events. */ private _open; get open(): boolean; set open(val: boolean | string); private _rawStyle; /** * Inline styles applied to the tooltip element. * Allows consumers to modify tooltip appearance dynamically. * Accepts a CSS style string, a style object (e.g. `{ backgroundColor: 'red', fontSize: '14px' }`), * or a `CSSStyleDeclaration`. * * @example * ```html * * * * ``` * * Or as a CSS string: * ```html * * * * ``` */ get tooltipStyle(): string | Record; set tooltipStyle(val: string | Record); get style(): any; set style(val: any); setAttribute(name: string, value: any): void; private _visible; private _computedPlacement; /** Tracks whether the consumer has set `open` explicitly. */ private _isControlled; private _triggerEl; private _tooltipId; connectedCallback(): void; willUpdate(changedProperties: PropertyValues): void; /** * Calculates auto-flip positioning if tooltip would collide with viewport boundaries. * Also resolves `auto*` placements to the best available axis. */ private _calculateAutoPlacement; private _show; private _hide; private _handleKeyDown; /** * Returns the resolved inline style string for the tooltip element, * merging consumer `style` overrides. */ private _getStyleString; render(): import("lit").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "eds-tooltip": EdsTooltip; } } //# sourceMappingURL=tooltip.d.ts.map