import * as i0 from '@angular/core'; import { DestroyRef } from '@angular/core'; declare class NcMouseTooltipServiceModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface NcMouseTooltipOptions { offsetX?: number; offsetY?: number; styles?: { [key: string]: string; }; } declare class NcMouseTooltipService { private tooltipElement; private renderer; private offset; private mouseMoveSubscription; private mousePosition; private defaultStyles; private readonly allowedTags; private readonly blockedTags; private readonly allowedGlobalAttributes; private readonly allowedAttributesByTag; private readonly document; private readonly destroyRef; private readonly rendererFactory; private readonly ngZone; private readonly registeredDestroyRefs; constructor(); /** * 初始化服务 */ init(destroyRef?: DestroyRef): void; /** * 显示tooltip * @param content tooltip内容 * @param options 可选配置,包括x、y偏移量和样式 */ show(content: string, options?: NcMouseTooltipOptions): void; /** * 隐藏tooltip */ hide(): void; /** * 销毁 */ destroy(): void; /** * 创建tooltip元素 * @param customStyles 自定义样式 */ private createTooltipElement; private sanitizeHtml; private sanitizeChildNodes; private sanitizeAttributes; private isAllowedAttribute; private isSafeAttributeValue; private isSafeUrl; private isSafeStyle; private unwrapElement; /** * 更新tooltip位置 */ private updatePosition; /** * 更新tooltip样式 * @param customStyles 自定义样式 */ private updateStyles; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { NcMouseTooltipService, NcMouseTooltipServiceModule }; export type { NcMouseTooltipOptions };