import * as ng_primitives_portal from 'ng-primitives/portal'; import { NgpOffset, NgpPlacement, NgpFlip, NgpShift, NgpOverlayArrowState, NgpOverlayArrowProps, NgpOverlayContent, NgpOffsetInput, NgpFlipInput, NgpShiftInput, NgpPosition, NgpOverlay } from 'ng-primitives/portal'; export { NgpOverlayArrowProps as NgpTooltipArrowProps, NgpOverlayArrowState as NgpTooltipArrowState, injectOverlayContext as injectTooltipContext } from 'ng-primitives/portal'; import * as _angular_core from '@angular/core'; import { Provider, ElementRef, Signal, WritableSignal } from '@angular/core'; import { NumberInput, BooleanInput } from '@angular/cdk/coercion'; import * as ng_primitives_state from 'ng-primitives/state'; import { StateInjectionOptions } from 'ng-primitives/state'; import * as ng_primitives_internal from 'ng-primitives/internal'; import { HoverBridgePoint } from 'ng-primitives/internal'; interface NgpTooltipConfig { /** * Define the offset of the tooltip relative to the trigger. * Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis. * @default 4 */ offset: NgpOffset; /** * Define the placement of the tooltip relative to the trigger. * @default 'top' */ placement: NgpPlacement; /** * Define the delay before the tooltip is shown. * @default 0 */ showDelay: number; /** * Define the delay before the tooltip is hidden. * @default 500 */ hideDelay: number; /** * Define whether the tooltip should flip when there is not enough space for the tooltip. * Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options. * @default true */ flip: NgpFlip; /** * Define the container element or selector into which the tooltip should be attached. * @default 'body' */ container: HTMLElement | string | null; /** * Whether the tooltip should only show when the trigger element overflows. * @default false */ showOnOverflow: boolean; /** * Whether to use the text content of the trigger element as the tooltip content. * @default true */ useTextContent: boolean; /** * Configure shift behavior to keep the tooltip in view. * Can be a boolean to enable/disable, or an object with padding and limiter options. * @default undefined (enabled by default in overlay) */ shift: NgpShift; /** * Whether to track the trigger element position on every animation frame. * Useful for moving elements like slider thumbs. * @default false */ trackPosition: boolean; /** * Defines how the tooltip behaves when the window is scrolled. * @default 'reposition' */ scrollBehavior: 'reposition' | 'close'; /** * Cooldown duration in milliseconds. * When moving from one tooltip to another within this duration, * the showDelay is skipped for the new tooltip. * @default 300 */ cooldown: number; /** * Whether hovering the tooltip content keeps it open while moving from the trigger. * @default false */ hoverableContent: boolean; } /** * Provide the default Tooltip configuration * @param config The Tooltip configuration * @returns The provider */ declare function provideTooltipConfig(config: Partial): Provider[]; declare class NgpTooltipArrow { /** * Padding between the arrow and the edges of the tooltip. * This prevents the arrow from overflowing the rounded corners. */ readonly padding: _angular_core.InputSignalWithTransform; protected readonly state: ng_primitives_portal.NgpOverlayArrowState; /** * Set the padding between the arrow and the edges of the tooltip. * @param value The padding value in pixels */ setPadding(value: number | undefined): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } declare const NgpTooltipArrowStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal>; declare const ngpTooltipArrow: ({ padding }: NgpOverlayArrowProps) => NgpOverlayArrowState; declare const injectTooltipArrowState: { (): _angular_core.Signal; (options: ng_primitives_state.StateInjectionOptions): _angular_core.Signal; (options?: ng_primitives_state.StateInjectionOptions): _angular_core.Signal | _angular_core.Signal; }; declare const provideTooltipArrowState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; type TooltipInput = NgpOverlayContent | string | null | undefined; /** * Apply the `ngpTooltipTrigger` directive to an element that triggers the tooltip to show. */ declare class NgpTooltipTrigger { /** * Access the global tooltip configuration. */ private readonly config; /** * Access the tooltip template ref. */ readonly tooltip: _angular_core.InputSignalWithTransform | null, TooltipInput>; /** * Whether the tooltip is disabled. This allows the tooltip to be enabled or disabled dynamically. * @default false */ readonly disabled: _angular_core.InputSignalWithTransform; /** * Define the placement of the tooltip relative to the trigger. * @default 'top' */ readonly placement: _angular_core.InputSignal; /** * Define the offset of the tooltip relative to the trigger. * Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis. * @default 0 */ readonly offset: _angular_core.InputSignalWithTransform; /** * Define the delay before the tooltip is displayed. * @default 500 */ readonly showDelay: _angular_core.InputSignalWithTransform; /** * Define the delay before the tooltip is hidden. * @default 0 */ readonly hideDelay: _angular_core.InputSignalWithTransform; /** * Define whether the tooltip should flip when there is not enough space for the tooltip. * Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options. * @default true */ readonly flip: _angular_core.InputSignalWithTransform; /** * Configure shift behavior to keep the tooltip in view. * Can be a boolean to enable/disable, or an object with padding and limiter options. * @default undefined (enabled by default in overlay) */ readonly shift: _angular_core.InputSignalWithTransform; /** * Define the container in which the tooltip should be attached. * @default document.body */ readonly container: _angular_core.InputSignal; /** * Define whether the tooltip should only show when the trigger element overflows. * @default false */ readonly showOnOverflow: _angular_core.InputSignalWithTransform; /** * Define an anchor element for positioning the tooltip. * If provided, the tooltip will be positioned relative to this element instead of the trigger. * * The anchor is live, so rebinding it moves an open tooltip. * * An input only reaches this directive on the next change detection pass, which a press * can outrun - use `setAnchor()` instead when the anchor is claimed during one. */ readonly anchor: _angular_core.InputSignal; /** * Provide context to the tooltip. This can be used to pass data to the tooltip content. */ readonly context: _angular_core.InputSignal; /** * Define whether to use the text content of the trigger element as the tooltip content. * When enabled, the tooltip will display the text content of the trigger element. * @default true */ readonly useTextContent: _angular_core.InputSignalWithTransform; /** * Define whether to track the trigger element position on every animation frame. * Useful for moving elements like slider thumbs. * @default false */ readonly trackPosition: _angular_core.InputSignalWithTransform; /** * Programmatic position for the tooltip. When provided, the tooltip * will be positioned at these coordinates instead of the trigger element. * Use with trackPosition="true" for smooth cursor following. */ readonly position: _angular_core.InputSignal; /** * Defines how the tooltip behaves when the window is scrolled. * @default 'reposition' */ readonly scrollBehavior: _angular_core.InputSignal<"reposition" | "close">; /** * Define the cooldown duration in milliseconds. * When moving from one tooltip to another within this duration, * the showDelay is skipped for the new tooltip. * @default 300 */ readonly cooldown: _angular_core.InputSignalWithTransform; /** * Whether hovering tooltip content keeps the tooltip open. * @default false */ readonly hoverableContent: _angular_core.InputSignalWithTransform; protected readonly state: { tooltip: _angular_core.WritableSignal | null>; disabled: _angular_core.WritableSignal; placement: _angular_core.WritableSignal; offset: _angular_core.WritableSignal; showDelay: _angular_core.WritableSignal; hideDelay: _angular_core.WritableSignal; flip: _angular_core.WritableSignal; shift: _angular_core.WritableSignal; container: _angular_core.WritableSignal; showOnOverflow: _angular_core.WritableSignal; anchor: _angular_core.WritableSignal; context: _angular_core.WritableSignal; useTextContent: _angular_core.WritableSignal; trackPosition: _angular_core.WritableSignal; position: _angular_core.WritableSignal; scrollBehavior: _angular_core.WritableSignal<"reposition" | "close">; cooldown: _angular_core.WritableSignal; hoverableContent: _angular_core.WritableSignal; overlay: _angular_core.WritableSignal | null>; tooltipId: _angular_core.WritableSignal; open: _angular_core.Signal; hasOverflow: _angular_core.WritableSignal; contentHovered: _angular_core.WritableSignal; hoverBridgePolygon: _angular_core.Signal; show: () => void; hide: (immediate?: boolean) => void; setTooltipId: (id: string) => void; setTooltip: (newTooltip: string | NgpOverlayContent | null) => void; setDisabled: (isDisabled: boolean) => void; setPlacement: (newPlacement: NgpPlacement) => void; setOffset: (newOffset: NgpOffset) => void; setShowDelay: (delay: number) => void; setHideDelay: (delay: number) => void; setFlip: (shouldFlip: NgpFlip) => void; setShift: (shouldShift: NgpShift) => void; setContainer: (newContainer: HTMLElement | string | null) => void; setShowOnOverflow: (shouldShowOnOverflow: boolean) => void; setAnchor: (newAnchor: HTMLElement | null) => void; setContext: (newContext: T | undefined) => void; setUseTextContent: (shouldUseTextContent: boolean) => void; setTrackPosition: (shouldTrack: boolean) => void; setPosition: (newPosition: NgpPosition | null) => void; setScrollBehavior: (behavior: "reposition" | "close") => void; setCooldown: (duration: number) => void; setHoverableContent: (isHoverable: boolean) => void; onTooltipHoverStart: () => void; onTooltipHoverEnd: () => void; }; /** * Show the tooltip programmatically (skips cooldown so multiple tooltips can coexist). */ show(): void; /** * Hide the tooltip. * @param immediate Skip the hide delay and exit animation. */ hide(immediate?: boolean): void; /** * Set the anchor the tooltip is positioned against, taking effect immediately rather than * on the next change detection pass. * * Reach for this over `ngpTooltipTriggerAnchor` when the anchor is claimed during a press. * Outside-press dismissal is decided on a capture-phase `mouseup`, which a fast tap can * deliver in the same frame as the `pointerdown` that claimed the anchor - before the * binding has reached this directive, so the press dismisses the overlay instead of moving * it. Writing the anchor here is visible to that check straight away. * @param anchor - The new anchor element */ setAnchor(anchor: HTMLElement | null): void; /** * Called by tooltip content when pointer enters the tooltip. * @internal */ onTooltipHoverStart(): void; /** * Called by tooltip content when pointer leaves the tooltip. * @internal */ onTooltipHoverEnd(): void; /** * Set the tooltip id. */ setTooltipId(id: string): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵdir: _angular_core.ɵɵDirectiveDeclaration, "[ngpTooltipTrigger]", ["ngpTooltipTrigger"], { "tooltip": { "alias": "ngpTooltipTrigger"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpTooltipTriggerDisabled"; "required": false; "isSignal": true; }; "placement": { "alias": "ngpTooltipTriggerPlacement"; "required": false; "isSignal": true; }; "offset": { "alias": "ngpTooltipTriggerOffset"; "required": false; "isSignal": true; }; "showDelay": { "alias": "ngpTooltipTriggerShowDelay"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "ngpTooltipTriggerHideDelay"; "required": false; "isSignal": true; }; "flip": { "alias": "ngpTooltipTriggerFlip"; "required": false; "isSignal": true; }; "shift": { "alias": "ngpTooltipTriggerShift"; "required": false; "isSignal": true; }; "container": { "alias": "ngpTooltipTriggerContainer"; "required": false; "isSignal": true; }; "showOnOverflow": { "alias": "ngpTooltipTriggerShowOnOverflow"; "required": false; "isSignal": true; }; "anchor": { "alias": "ngpTooltipTriggerAnchor"; "required": false; "isSignal": true; }; "context": { "alias": "ngpTooltipTriggerContext"; "required": false; "isSignal": true; }; "useTextContent": { "alias": "ngpTooltipTriggerUseTextContent"; "required": false; "isSignal": true; }; "trackPosition": { "alias": "ngpTooltipTriggerTrackPosition"; "required": false; "isSignal": true; }; "position": { "alias": "ngpTooltipTriggerPosition"; "required": false; "isSignal": true; }; "scrollBehavior": { "alias": "ngpTooltipTriggerScrollBehavior"; "required": false; "isSignal": true; }; "cooldown": { "alias": "ngpTooltipTriggerCooldown"; "required": false; "isSignal": true; }; "hoverableContent": { "alias": "ngpTooltipTriggerHoverableContent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>; } /** * Apply the `ngpTooltip` directive to an element that represents the tooltip. This typically would be a `div` inside an `ng-template`. */ declare class NgpTooltip { /** * The unique id of the tooltip. */ readonly id: _angular_core.InputSignal; protected readonly state: { elementRef: _angular_core.ElementRef; id: _angular_core.WritableSignal; }; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵdir: _angular_core.ɵɵDirectiveDeclaration; } interface NgpTooltipState { /** Access the element's reference. */ readonly elementRef: ElementRef; /** The unique id of the tooltip. */ readonly id: Signal; } interface NgpTooltipProps { /** The unique id of the tooltip. */ readonly id?: Signal; } declare const NgpTooltipStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{ elementRef: ElementRef; id: _angular_core.WritableSignal; }>>; declare const ngpTooltip: ({ id: _id }: NgpTooltipProps) => { elementRef: ElementRef; id: _angular_core.WritableSignal; }; declare const injectTooltipState: { (): Signal<{ elementRef: ElementRef; id: _angular_core.WritableSignal; }>; (options: ng_primitives_state.StateInjectionOptions): Signal<{ elementRef: ElementRef; id: _angular_core.WritableSignal; } | null>; (options?: ng_primitives_state.StateInjectionOptions): Signal<{ elementRef: ElementRef; id: _angular_core.WritableSignal; }> | Signal<{ elementRef: ElementRef; id: _angular_core.WritableSignal; } | null>; }; declare const provideTooltipState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; interface NgpTooltipTextContentState { /** Access the component's context. */ readonly elementRef: ElementRef; /** The string content to display. */ readonly content: Signal; } interface NgpTooltipTextContentProps { } declare const NgpTooltipTextContentStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<{ elementRef: ElementRef; content: Signal; }>>; declare const ngpTooltipTextContent: ({}: NgpTooltipTextContentProps) => { elementRef: ElementRef; content: Signal; }; declare const injectTooltipTextContentState: { (): Signal<{ elementRef: ElementRef; content: Signal; }>; (options: ng_primitives_state.StateInjectionOptions): Signal<{ elementRef: ElementRef; content: Signal; } | null>; (options?: ng_primitives_state.StateInjectionOptions): Signal<{ elementRef: ElementRef; content: Signal; }> | Signal<{ elementRef: ElementRef; content: Signal; } | null>; }; declare const provideTooltipTextContentState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; interface NgpTooltipTriggerState { /** Access the tooltip template ref. */ readonly tooltip: WritableSignal | string | null>; /** * Whether the tooltip is disabled. This allows the tooltip to be enabled or disabled dynamically. * @default false */ readonly disabled: WritableSignal; /** * Define the placement of the tooltip relative to the trigger. * @default 'top' */ readonly placement: WritableSignal; /** * Define the offset of the tooltip relative to the trigger. * Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis. * @default 0 */ readonly offset: WritableSignal; /** * Define the delay before the tooltip is displayed. * @default 500 */ readonly showDelay: WritableSignal; /** * Define the delay before the tooltip is hidden. * @default 0 */ readonly hideDelay: WritableSignal; /** * Define whether the tooltip should flip when there is not enough space for the tooltip. * Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options. * @default true */ readonly flip: WritableSignal; /** * Configure shift behavior to keep the tooltip in view. * Can be a boolean to enable/disable, or an object with padding and limiter options. * @default undefined (enabled by default in overlay) */ readonly shift: WritableSignal; /** * Define the container in which the tooltip should be attached. * @default document.body */ readonly container: WritableSignal; /** * Define whether the tooltip should only show when the trigger element overflows. * @default false */ readonly showOnOverflow: WritableSignal; /** * Define an anchor element for positioning the tooltip. * If provided, the tooltip will be positioned relative to this element instead of the trigger. */ readonly anchor: WritableSignal; /** * Provide context to the tooltip. This can be used to pass data to the tooltip content. */ readonly context: WritableSignal; /** * Define whether to use the text content of the trigger element as the tooltip content. * When enabled, the tooltip will display the text content of the trigger element. * @default true */ readonly useTextContent: WritableSignal; /** * Define whether to track the trigger element position on every animation frame. * Useful for moving elements like slider thumbs. * @default false */ readonly trackPosition: WritableSignal; /** * Programmatic position for the tooltip. When provided, the tooltip * will be positioned at these coordinates instead of the trigger element. * Use with trackPosition="true" for smooth cursor following. */ readonly position: WritableSignal; /** * Defines how the tooltip behaves when the window is scrolled. * @default 'reposition' */ readonly scrollBehavior: WritableSignal<'reposition' | 'close'>; /** * Define the cooldown duration in milliseconds. * When moving from one tooltip to another within this duration, * the showDelay is skipped for the new tooltip. * @default 300 */ readonly cooldown: WritableSignal; /** * Whether hovering tooltip content keeps the tooltip open. * @default false */ readonly hoverableContent: WritableSignal; /** * The overlay that manages the tooltip * @internal */ readonly overlay: WritableSignal | null>; /** * The unique id of the tooltip. */ readonly tooltipId: Signal; /** * The open state of the tooltip. * @internal */ readonly open: Signal; /** * Whether the trigger element overflowed at the last `showOnOverflow` show attempt. * Only measured then, so it is `false` until the first such attempt and holds that * measurement afterwards. */ readonly hasOverflow: Signal; /** * Tracks whether pointer is currently over tooltip content. */ readonly contentHovered: Signal; /** * Current pointer grace polygon used while crossing trigger -> tooltip. */ readonly hoverBridgePolygon: Signal; /** * Show the tooltip programmatically (skips cooldown so multiple tooltips can coexist). */ show: () => void; /** * Hide the tooltip. Pass `true` to skip the hide delay. */ hide: (immediate?: boolean) => void; /** * Set the tooltip id. */ setTooltipId: (id: string) => void; /** Set the tooltip content. */ setTooltip: (tooltip: NgpOverlayContent | string | null) => void; /** Set whether the tooltip is disabled. */ setDisabled: (disabled: boolean) => void; /** Set the placement of the tooltip relative to the trigger. */ setPlacement: (placement: NgpPlacement) => void; /** Set the offset of the tooltip relative to the trigger. */ setOffset: (offset: NgpOffset) => void; /** Set the delay before the tooltip is displayed. */ setShowDelay: (showDelay: number) => void; /** Set the delay before the tooltip is hidden. */ setHideDelay: (hideDelay: number) => void; /** Set the flip behaviour. */ setFlip: (flip: NgpFlip) => void; /** Set the shift behaviour. */ setShift: (shift: NgpShift) => void; /** Set the container in which the tooltip should be attached. */ setContainer: (container: HTMLElement | string | null) => void; /** Set whether the tooltip only shows when the trigger element overflows. */ setShowOnOverflow: (showOnOverflow: boolean) => void; /** Set the anchor element the tooltip is positioned against. */ setAnchor: (anchor: HTMLElement | null) => void; /** Set the context passed to the tooltip content. */ setContext: (context: T | undefined) => void; /** Set whether the trigger's text content is used as the tooltip content. */ setUseTextContent: (useTextContent: boolean) => void; /** Set whether the trigger position is tracked on every animation frame. */ setTrackPosition: (trackPosition: boolean) => void; /** Set the programmatic position the tooltip is placed at. */ setPosition: (position: NgpPosition | null) => void; /** Set how the tooltip behaves when the window is scrolled. */ setScrollBehavior: (scrollBehavior: 'reposition' | 'close') => void; /** Set the cooldown duration in milliseconds. */ setCooldown: (cooldown: number) => void; /** Set whether hovering the tooltip content keeps it open. */ setHoverableContent: (hoverableContent: boolean) => void; /** * Called by tooltip content when pointer enters the tooltip. * @internal */ onTooltipHoverStart: () => void; /** * Called by tooltip content when pointer leaves the tooltip. * @internal */ onTooltipHoverEnd: () => void; } interface NgpTooltipTriggerProps { /** Access the tooltip template ref. */ readonly tooltip?: Signal | string | null>; /** * Whether the tooltip is disabled. This allows the tooltip to be enabled or disabled dynamically. * @default false */ readonly disabled?: Signal; /** * Define the placement of the tooltip relative to the trigger. * @default 'top' */ readonly placement?: Signal; /** * Define the offset of the tooltip relative to the trigger. * Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis. * @default 0 */ readonly offset?: Signal; /** * Define the delay before the tooltip is displayed. * @default 500 */ readonly showDelay?: Signal; /** * Define the delay before the tooltip is hidden. * @default 0 */ readonly hideDelay?: Signal; /** * Define whether the tooltip should flip when there is not enough space for the tooltip. * Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options. * @default true */ readonly flip?: Signal; /** * Configure shift behavior to keep the tooltip in view. * Can be a boolean to enable/disable, or an object with padding and limiter options. * @default undefined (enabled by default in overlay) */ readonly shift?: Signal; /** * Define the container in which the tooltip should be attached. * @default document.body */ readonly container?: Signal; /** * Define whether the tooltip should only show when the trigger element overflows. * @default false */ readonly showOnOverflow?: Signal; /** * Define an anchor element for positioning the tooltip. * If provided, the tooltip will be positioned relative to this element instead of the trigger. */ readonly anchor?: Signal; /** * Provide context to the tooltip. This can be used to pass data to the tooltip content. */ readonly context?: Signal; /** * Define whether to use the text content of the trigger element as the tooltip content. * When enabled, the tooltip will display the text content of the trigger element. * @default true */ readonly useTextContent?: Signal; /** * Define whether to track the trigger element position on every animation frame. * Useful for moving elements like slider thumbs. * @default false */ readonly trackPosition?: Signal; /** * Programmatic position for the tooltip. When provided, the tooltip * will be positioned at these coordinates instead of the trigger element. * Use with trackPosition="true" for smooth cursor following. */ readonly position?: Signal; /** * Defines how the tooltip behaves when the window is scrolled. * @default 'reposition' */ readonly scrollBehavior?: Signal<'reposition' | 'close'>; /** * Define the cooldown duration in milliseconds. * When moving from one tooltip to another within this duration, * the showDelay is skipped for the new tooltip. * @default 300 */ readonly cooldown?: Signal; /** * Whether hovering tooltip content keeps the tooltip open. * @default false */ readonly hoverableContent?: Signal; } declare const NgpTooltipTriggerStateToken: _angular_core.InjectionToken | null>; disabled: WritableSignal; placement: WritableSignal; offset: WritableSignal; showDelay: WritableSignal; hideDelay: WritableSignal; flip: WritableSignal; shift: WritableSignal; container: WritableSignal; showOnOverflow: WritableSignal; anchor: WritableSignal; context: WritableSignal; useTextContent: WritableSignal; trackPosition: WritableSignal; position: WritableSignal; scrollBehavior: WritableSignal<"reposition" | "close">; cooldown: WritableSignal; hoverableContent: WritableSignal; overlay: WritableSignal | null>; tooltipId: WritableSignal; open: Signal; hasOverflow: WritableSignal; contentHovered: WritableSignal; hoverBridgePolygon: Signal; show: () => void; hide: (immediate?: boolean) => void; setTooltipId: (id: string) => void; setTooltip: (newTooltip: string | NgpOverlayContent | null) => void; setDisabled: (isDisabled: boolean) => void; setPlacement: (newPlacement: NgpPlacement) => void; setOffset: (newOffset: NgpOffset) => void; setShowDelay: (delay: number) => void; setHideDelay: (delay: number) => void; setFlip: (shouldFlip: NgpFlip) => void; setShift: (shouldShift: NgpShift) => void; setContainer: (newContainer: HTMLElement | string | null) => void; setShowOnOverflow: (shouldShowOnOverflow: boolean) => void; setAnchor: (newAnchor: HTMLElement | null) => void; setContext: (newContext: unknown) => void; setUseTextContent: (shouldUseTextContent: boolean) => void; setTrackPosition: (shouldTrack: boolean) => void; setPosition: (newPosition: NgpPosition | null) => void; setScrollBehavior: (behavior: "reposition" | "close") => void; setCooldown: (duration: number) => void; setHoverableContent: (isHoverable: boolean) => void; onTooltipHoverStart: () => void; onTooltipHoverEnd: () => void; }>>; declare const ngpTooltipTrigger: ({ tooltip: _tooltip, disabled: _disabled, placement: _placement, offset: _offset, showDelay: _showDelay, hideDelay: _hideDelay, flip: _flip, shift: _shift, container: _container, showOnOverflow: _showOnOverflow, anchor: _anchor, context: _context, useTextContent: _useTextContent, trackPosition: _trackPosition, position: _position, scrollBehavior: _scrollBehavior, cooldown: _cooldown, hoverableContent: _hoverableContent, }: NgpTooltipTriggerProps) => { tooltip: WritableSignal | null>; disabled: WritableSignal; placement: WritableSignal; offset: WritableSignal; showDelay: WritableSignal; hideDelay: WritableSignal; flip: WritableSignal; shift: WritableSignal; container: WritableSignal; showOnOverflow: WritableSignal; anchor: WritableSignal; context: WritableSignal; useTextContent: WritableSignal; trackPosition: WritableSignal; position: WritableSignal; scrollBehavior: WritableSignal<"reposition" | "close">; cooldown: WritableSignal; hoverableContent: WritableSignal; overlay: WritableSignal | null>; tooltipId: WritableSignal; open: Signal; hasOverflow: WritableSignal; contentHovered: WritableSignal; hoverBridgePolygon: Signal; show: () => void; hide: (immediate?: boolean) => void; setTooltipId: (id: string) => void; setTooltip: (newTooltip: NgpOverlayContent | string | null) => void; setDisabled: (isDisabled: boolean) => void; setPlacement: (newPlacement: NgpPlacement) => void; setOffset: (newOffset: NgpOffset) => void; setShowDelay: (delay: number) => void; setHideDelay: (delay: number) => void; setFlip: (shouldFlip: NgpFlip) => void; setShift: (shouldShift: NgpShift) => void; setContainer: (newContainer: HTMLElement | string | null) => void; setShowOnOverflow: (shouldShowOnOverflow: boolean) => void; setAnchor: (newAnchor: HTMLElement | null) => void; setContext: (newContext: T | undefined) => void; setUseTextContent: (shouldUseTextContent: boolean) => void; setTrackPosition: (shouldTrack: boolean) => void; setPosition: (newPosition: NgpPosition | null) => void; setScrollBehavior: (behavior: "reposition" | "close") => void; setCooldown: (duration: number) => void; setHoverableContent: (isHoverable: boolean) => void; onTooltipHoverStart: () => void; onTooltipHoverEnd: () => void; }; declare const provideTooltipTriggerState: (opts?: { inherit?: boolean; }) => _angular_core.FactoryProvider; declare function injectTooltipTriggerState(options?: StateInjectionOptions): Signal>; /** * Where the tooltip is placed relative to its trigger. * @deprecated Identical to `NgpPlacement` from `ng-primitives/portal` - use that instead. * Will be removed in a future major. */ type NgpTooltipPlacement = NgpPlacement; export { NgpTooltip, NgpTooltipArrow, NgpTooltipArrowStateToken, NgpTooltipStateToken, NgpTooltipTextContentStateToken, NgpTooltipTrigger, NgpTooltipTriggerStateToken, injectTooltipArrowState, injectTooltipState, injectTooltipTextContentState, injectTooltipTriggerState, ngpTooltip, ngpTooltipArrow, ngpTooltipTextContent, ngpTooltipTrigger, provideTooltipArrowState, provideTooltipConfig, provideTooltipState, provideTooltipTextContentState, provideTooltipTriggerState }; export type { NgpTooltipConfig, NgpTooltipPlacement, NgpTooltipProps, NgpTooltipState, NgpTooltipTextContentProps, NgpTooltipTextContentState, NgpTooltipTriggerProps, NgpTooltipTriggerState };