import { type Placement } from '@floating-ui/dom';
import type { CSSResult } from 'lit';
import { LitElement } from 'lit';
/**
* @example
* ```ts
* // Simple usage
* html`
* Content
* `
* // With placement
* html`
*
* Content
*
* `
*
* // With custom properties
* html`
*
* Content
*
* `
* ```
*/
export declare class Tooltip extends LitElement {
static styles: CSSResult;
placement: Placement;
zIndex: number | string;
tooltipStyle: CSSResult;
/**
* changes the placement of the floating element in order to keep it in view,
* with the ability to flip to any placement.
*
* See https://floating-ui.com/docs/flip
*/
autoFlip: boolean;
/**
* Show a triangle arrow pointing to the reference element.
*/
arrow: boolean;
/**
* Default is `4px`
*
* See https://floating-ui.com/docs/offset
*/
offset: number;
/**
* Allow the tooltip to be interactive.
* eg. allow the user to select text in the tooltip.
*/
allowInteractive: boolean;
private _hoverController;
connectedCallback(): void;
getPortal(): HTMLDivElement | undefined;
private _getStyles;
render(): import("lit").TemplateResult<1>;
}
declare global {
interface HTMLElementTagNameMap {
'affine-tooltip': Tooltip;
}
}
//# sourceMappingURL=tooltip.d.ts.map