import { PassThrough, PassThroughOption } from 'primeng/api'; /** * Defines the position of the tooltip. * @group Types */ type TooltipPosition = 'right' | 'left' | 'top' | 'bottom'; /** * Defines the event that triggers the tooltip. * @group Types */ type TooltipEvent = 'hover' | 'focus' | 'both'; /** * Custom pass-through(pt) options. * @template I Type of instance. * * @see {@link Tooltip.pt} * @group Interface */ interface TooltipPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the arrow's DOM element. */ arrow?: PassThroughOption; /** * Used to pass attributes to the text's DOM element. */ text?: PassThroughOption; } /** * Defines valid pass-through options in Tooltip. * @see {@link TooltipPassThroughOptions} * * @template I Type of instance. */ type TooltipPassThrough = PassThrough>; export type { TooltipEvent, TooltipPassThrough, TooltipPassThroughOptions, TooltipPosition };