export declare function initTpImg(): HTMLImageElement; export declare function getTpImg(): HTMLImageElement; export declare function getPropClass(property: any, params: any): any; export declare function isPx(val: any): any; export declare function isScale(val: any): any; export declare function hasClass(elem: any, cls: any): any; export declare function removeClass(elem: any, cls: any): void; export declare function addClass(elem: any, cls: string): void; export declare function hasControlKey(evnt: KeyboardEvent | MouseEvent | DragEvent): boolean; export declare function toCssUnit(val?: number | string | null, unit?: string): string; export declare function getDomNode(): { scrollTop: number; scrollLeft: number; visibleHeight: number; visibleWidth: number; }; /** * 检查触发源是否属于目标节点 */ export declare function getEventTargetNode(evnt: any, container: any, queryCls?: string, queryMethod?: (target: Element) => boolean): { flag: boolean; container: any; targetElem: any; } | { flag: boolean; container?: undefined; targetElem?: undefined; }; /** * 获取元素相对于 document 的位置 */ export declare function getOffsetPos(elem: any, container: any): any; export declare function getAbsolutePos(elem: any): { boundingTop: any; top: any; boundingLeft: any; left: any; visibleHeight: number; visibleWidth: number; }; export declare function getPaddingTopBottomSize(elem: HTMLElement): number; export declare function getPaddingLeftRightSize(elem: HTMLElement): number; export declare function scrollToView(elem: any): void; export declare function triggerEvent(targetElem: Element, type: string): void; export declare function isNodeElement(elem: any): elem is HTMLElement; interface PanelPlacementOptions { defaultTop?: number; defaultLeft?: number; placement?: '' | 'top' | 'bottom' | null; defaultPlacement?: '' | 'top' | 'bottom' | null; appendTo?: string | HTMLElement | ((params: any) => string | HTMLElement); teleportTo?: boolean; marginSize?: number; isMinWidth?: boolean; } /** * 通用定位计算 */ export declare function updatePanelPlacement(targetElem: HTMLElement | null | undefined, panelElem: HTMLElement | null | undefined, options: PanelPlacementOptions): { top: number; bottom: number; left: number; arrowLeft: number; style: Record; placement: "top" | "bottom"; }; export declare function getPopupWrapperElement(panelElem: HTMLElement | null | undefined): HTMLElement | null; export declare function getPopupContainer(appendTo: string | HTMLElement | ((params: any) => string | HTMLElement) | undefined): string | HTMLElement; export declare function getPopupAppendElement(appendTo: string | HTMLElement | ((params: any) => string | HTMLElement) | undefined): HTMLElement; export {};