import { LitElement } from 'lit'; import { PopoverAlign, PopoverPosition, PopoverType, TypeNativePopoverController } from '../internal'; /** * @element nve-tooltip * @description A contextual popup that displays a plaintext description. Tooltips are [triggered](https://w3c.github.io/aria/#tooltip) by hovering, focusing, or tapping an element and cannot have interactive elements within them. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) * @since 0.6.0 * @entrypoint \@nvidia-elements/core/tooltip * @event beforetoggle - Dispatched on a popover just before showing or hiding. [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/beforetoggle_event) * @event toggle - Dispatched on a popover element just after showing or hiding. [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event) * @event open - Dispatched when the tooltip opens. * @event close - Dispatched when the tooltip closes. * @slot - default content slot * @cssprop --border-radius * @cssprop --background * @cssprop --color * @cssprop --padding * @cssprop --box-shadow * @cssprop --font-size * @cssprop --font-weight * @cssprop --arrow-transform * @cssprop --width * @cssprop --height * @cssprop --border * @csspart arrow * @cssprop --animation-duration - Duration of tooltip open/close animations * @aria https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/ */ export declare class Tooltip extends LitElement { static styles: import('lit').CSSResult[]; static readonly metadata: { tag: string; version: string; }; /** * (optional) By default the popover automatically anchors itself relative to the trigger element. * Pass an optional custom anchor element as an idref string within the same render root or a HTMLElement DOM reference. */ anchor: string | HTMLElement; /** * @deprecated Use the popover API instead. * The trigger defines what element triggers an `open` interaction event. * A trigger can accept a idref string within the same render root or a HTMLElement DOM reference. */ trigger: string | HTMLElement; /** * Sets the side position of the popover relative to the provided anchor element. */ position: PopoverPosition; /** * Sets the alignment of the popover relative to the provided anchor element. */ alignment: PopoverAlign; /** * @deprecated Use the popover API instead. * Determines if popover visibility behavior should be automatically controlled by the trigger. */ behaviorTrigger: boolean; /** * visual treatment to represent a ongoing task or support status */ status: 'muted'; /** * @deprecated Use interest-delay-start css property instead */ openDelay: number; popoverArrow: HTMLElement; /** @private */ readonly popoverType: PopoverType; protected typeNativePopoverController: TypeNativePopoverController; /** @private */ _internals: ElementInternals; render(): import('lit').TemplateResult<1>; connectedCallback(): void; }