import * as i0 from '@angular/core'; import { ChangeDetectorRef, ElementRef, DestroyRef, AfterViewInit, OnChanges, Type, EventEmitter, ViewContainerRef, Renderer2, SimpleChanges, TemplateRef } from '@angular/core'; import { NzPresetColor } from 'ng-zorro-antd/core/color'; import { NzTSType, NgStyleInterface, NzSafeAny, NgClassInterface } from 'ng-zorro-antd/core/types'; import * as _angular_cdk_bidi from '@angular/cdk/bidi'; import { CdkConnectedOverlay, ConnectionPositionPair, ConnectedOverlayPositionChange } from '@angular/cdk/overlay'; import { Subject } from 'rxjs'; import { NzNoAnimationDirective } from 'ng-zorro-antd/core/animation'; import { PopoverConfig, PopConfirmConfig, NzConfigService } from 'ng-zorro-antd/core/config'; import { POSITION_TYPE } from 'ng-zorro-antd/core/overlay'; interface PropertyMapping { [key: string]: [string, () => unknown]; } type NzTooltipTrigger = 'click' | 'focus' | 'hover' | null; declare abstract class NzTooltipBaseDirective implements AfterViewInit, OnChanges { protected componentType: Type; config?: Required; abstract arrowPointAtCenter?: boolean; abstract directiveTitle?: NzTSType | null; abstract directiveContent?: NzTSType | null; abstract title?: NzTSType | null; abstract content?: NzTSType | null; abstract trigger?: NzTooltipTrigger; abstract placement?: string | string[]; abstract origin?: ElementRef; abstract visible?: boolean; abstract mouseEnterDelay?: number; abstract mouseLeaveDelay?: number; abstract overlayClassName?: string; abstract overlayStyle?: NgStyleInterface; abstract overlayClickable?: boolean; /** @deprecated Default is false, and customization is no longer supported. This will be removed in v22.0.0. */ cdkConnectedOverlayPush?: boolean; visibleChange: EventEmitter; /** * This true title that would be used in other parts on this component. */ protected get _title(): NzTSType | null; protected get _content(): NzTSType | null; protected get _trigger(): NzTooltipTrigger; protected get _placement(): string[]; protected get _visible(): boolean; protected get _mouseEnterDelay(): number; protected get _mouseLeaveDelay(): number; protected get _overlayClassName(): string | null; protected get _overlayStyle(): NgStyleInterface | null; protected get _overlayClickable(): boolean; private internalVisible; protected getProxyPropertyMap(): PropertyMapping; component?: NzTooltipBaseComponent; protected readonly destroy$: Subject; protected readonly triggerDisposables: VoidFunction[]; private delayTimer?; elementRef: ElementRef; protected hostView: ViewContainerRef; protected renderer: Renderer2; protected noAnimation: NzNoAnimationDirective | null; protected nzConfigService: NzConfigService; protected destroyRef: DestroyRef; protected platformId: Object; constructor(componentType: Type); ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; show(): void; hide(): void; /** * Force the component to update its position. */ updatePosition(): void; /** * Create a dynamic tooltip component. This method can be overridden. */ protected createComponent(): void; protected registerTriggers(): void; private updatePropertiesByChanges; private updatePropertiesByKeys; private initProperties; private updateComponentValue; private delayEnterLeave; private removeTriggerListeners; private clearTogglingTimer; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare abstract class NzTooltipBaseComponent { overlay: CdkConnectedOverlay; protected readonly noAnimation: NzNoAnimationDirective | null; protected readonly dir: i0.WritableSignal<_angular_cdk_bidi.Direction>; protected readonly cdr: ChangeDetectorRef; protected readonly elementRef: ElementRef; protected readonly destroyRef: DestroyRef; nzTitle: NzTSType | null; nzContent: NzTSType | null; nzArrowPointAtCenter: boolean; nzOverlayClassName: string; nzOverlayStyle: NgStyleInterface; nzOverlayClickable: boolean; nzBackdrop: boolean; nzMouseEnterDelay?: number; nzMouseLeaveDelay?: number; /** @deprecated Default is false, and customization is no longer supported. This will be removed in v22.0.0. */ cdkConnectedOverlayPush?: boolean; nzVisibleChange: Subject; set nzVisible(value: boolean); get nzVisible(): boolean; _visible: boolean; set nzTrigger(value: NzTooltipTrigger); get nzTrigger(): NzTooltipTrigger; protected _trigger: NzTooltipTrigger; set nzPlacement(value: POSITION_TYPE[]); preferredPlacement: string; origin: ElementRef; _classMap: NgClassInterface; _prefix: string; _positions: ConnectionPositionPair[]; constructor(); show(): void; hide(): void; updateByDirective(): void; /** * Force the component to update its position. */ updatePosition(): void; onPositionChange(position: ConnectedOverlayPositionChange): void; setOverlayOrigin(origin: ElementRef): void; onClickOutside(event: MouseEvent): void; /** * Hide the component while the content is empty. */ private updateVisibilityByTitle; protected updateStyles(): void; protected transformClassListToMap(klass: string): Record; /** * Empty component cannot be opened. */ protected abstract isEmpty(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare function isTooltipEmpty(value: string | TemplateRef | null): boolean; declare class NzTooltipDirective extends NzTooltipBaseDirective { title?: NzTSType | null; titleContext?: object | null; directiveTitle?: NzTSType | null; trigger?: NzTooltipTrigger; placement?: string | string[]; origin?: ElementRef; visible?: boolean; mouseEnterDelay?: number; mouseLeaveDelay?: number; overlayClassName?: string; overlayStyle?: NgStyleInterface; arrowPointAtCenter?: boolean; /** @deprecated Default is false, and customization is no longer supported. This will be removed in v22.0.0. */ cdkConnectedOverlayPush?: boolean; nzTooltipColor?: string; directiveContent?: NzTSType | null; content?: NzTSType | null; overlayClickable?: boolean; readonly visibleChange: EventEmitter; constructor(); protected getProxyPropertyMap(): PropertyMapping; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_arrowPointAtCenter: unknown; static ngAcceptInputType_cdkConnectedOverlayPush: unknown; } declare class NzTooltipComponent extends NzTooltipBaseComponent { protected _animationPrefix: string; nzTitle: NzTSType | null; nzTitleContext: object | null; nzColor?: string | NzPresetColor; protected _arrowStyleMap: NgStyleInterface; protected _contentStyleMap: NgStyleInterface; protected readonly zoomAnimationEnter: i0.Signal; protected readonly zoomAnimationLeave: i0.Signal; protected isEmpty(): boolean; protected updateStyles(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzTooltipModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { NzTooltipBaseComponent, NzTooltipBaseDirective, NzTooltipComponent, NzTooltipDirective, NzTooltipModule, isTooltipEmpty }; export type { NzTooltipTrigger, PropertyMapping };