HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/share/nodejs/popper.js/node_modules/tooltip.js/index.d.ts
import { Boundary, Placement, PopperOptions } from 'popper.js';

export type TitleFunction = () => string;

export type Delay = Record<'show' | 'hide', number>;

export interface Options {
  placement?: Placement;
  arrowSelector?: string;
  innerSelector?: string;
  container?: HTMLElement | string;
  delay?: number | Delay;
  html?: boolean;
  template?: string;
  title?: string | HTMLElement | TitleFunction;
  /**
   * available options are click, hover, focus, manual
   * required to form a space delimited string
   * e.g. 'hover focus'
   */
  trigger?: string;
  closeOnClickOutside?: boolean;
  boundariesElement?: Boundary | HTMLElement;
  offset?: number | string;
  popperOptions?: PopperOptions;
}

declare class Tooltip {
  constructor(reference: HTMLElement, options: Options);

  _isOpen: boolean;

  show(): void;

  hide(): void;

  dispose(): void;

  toggle(): void;

  updateTitleContent(title: string | HTMLElement): void;
}

export default Tooltip;