import { LitElement } from 'lit'; import { IconButton } from '../icon-button'; import { PopoverAlign, PopoverPosition, PopoverType, TypeNativePopoverController } from '../internal'; /** * @element nve-toggletip * @description Generic toggletip element for rendering a variety of different interactive content. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API) * @since 0.38.0 * @entrypoint \@nvidia-elements/core/toggletip * @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 toggletip opens. * @event close - Dispatched when the toggletip closes. * @slot - default slot for toggletip content * @cssprop --arrow-transform * @cssprop --border * @cssprop --border-radius * @cssprop --background * @cssprop --color * @cssprop --padding * @cssprop --font-size * @cssprop --font-weight * @cssprop --box-shadow * @cssprop --width * @cssprop --min-width * @cssprop --gap * @cssprop --animation-duration - Duration of toggletip open/close animations * @csspart icon-button - The close icon button element * @aria https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/ * */ export declare class Toggletip extends LitElement { #private; static styles: import('lit').CSSResult[]; static readonly metadata: { tag: string; version: string; }; static elementDefinitions: { [IconButton.metadata.tag]: typeof IconButton; }; /** * (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. * If an arrow exists the alginment will be relative to the arrow against the anchor. */ alignment: PopoverAlign; /** * @deprecated Use the popover API instead. * Determines if popover visibility behavior should be automatically controlled by the trigger. */ behaviorTrigger: boolean; /** * Determines if a close button should render within toggletip. */ closable: boolean; /** * Determines if the component renders an arrow. */ arrow: boolean; popoverArrow: HTMLElement; /** @private */ readonly popoverType: PopoverType; protected typeNativePopoverController: TypeNativePopoverController; /** * Updates internal string values for internationalization. */ i18n: Partial; /** @private */ _internals: ElementInternals; render(): import('lit').TemplateResult<1>; connectedCallback(): void; }