import { CSSResultGroup, LitElement, PropertyValues } from 'lit'; import { AutoPlacementOptions, FlipOptions, ShiftOptions } from '@floating-ui/dom'; import { Placement } from '@floating-ui/utils'; import { MiddlewareModifier } from '@viasat/beam-shared/components/floatingui'; import { TooltipTriggerSize } from '@viasat/beam-shared/components/tooltip'; import { ThemeTypes } from '@viasat/beam-shared/utils/constants'; export { type ChangeEvent } from '../../utils/mixins/ControlledToggle'; declare const BmTooltip_base: import('../../utils/mixins/types').Constructor & typeof LitElement; /** * `bm-tooltip` * * @slot text - The content of Tooltip * @slot trigger - The element that triggers Tooltip * * @fires bm-toggle - Dispatched when the Tooltip is toggled * */ export declare class BmTooltip extends BmTooltip_base { static styles: CSSResultGroup; /** * Specify the theme of Tooltip. By default it inherits the theme from the parent */ theme: ThemeTypes | undefined; /** * Control the visibility of Tooltip */ open?: boolean; /** * Open state of the element */ _isOpen?: boolean; /** * Whether the arrow is visible * * @default false */ hideArrow: boolean; /** * Specify the placement of Tooltip relative to the anchor * * @default 'top' */ placement?: Placement; /** * Specify if Tooltip should automatically choose the placement that has the most space. * AutoPlacementOptions * */ autoPlacement?: boolean | AutoPlacementOptions; /** * Specify if Tooltip should flip to the opposite side if there is not enough space. * Cannot be used with `autoPlacement`. * FlipOptions * * @default true */ flip?: boolean | FlipOptions; /** * Specify if Tooltip should shift to keep itself in view. * ShiftOptions * * @default true */ shift: boolean | ShiftOptions; /** * Specify if Tooltip should hide when the anchor is not in view. * HideOptions * * @default true */ autoHiding: boolean | Record; /** * Pass an array to override the floating-ui middleware * or a function to modify the Beam-default middleware array. * Middleware */ middleware?: MiddlewareModifier; /** * Control the default visibility of Tooltip * * @default false */ defaultOpen: boolean; /** * Specify the delay in milliseconds before Tooltip appears * when the anchor is hovered * * @default 0 */ showDelay: number; /** * Enable the Popover API internally on supported browsers * * @default true */ popoverAPI: boolean; /** * Disable aria-describedby and id attributes on the floating and anchor content * * @default false */ disableAutoAria: boolean; /** * Override the auto-generated id attached to the trigger for aria-describedby */ autoDescribedById: string; /** * Prevent Tooltip from appearing */ disabled: boolean; /** * Specify the size of the Tooltip trigger. `none` to leave uncontrolled. */ triggerSize: TooltipTriggerSize; constructor(); willUpdate(changedProperties: PropertyValues): void; render(): import('lit-html').TemplateResult<1>; } export declare class BmTooltipIconTrigger extends LitElement { static styles: CSSResultGroup; /** * Specify the size of the Tooltip trigger. `none` to leave uncontrolled. */ size: TooltipTriggerSize; /** * Prevent the trigger from being interacted with */ disabled: boolean; render(): import('lit-html').TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'bm-tooltip': BmTooltip; 'bm-tooltip-icon-trigger': BmTooltipIconTrigger; } } //# sourceMappingURL=Tooltip.d.ts.map