/** * 根据元素宽高判断是否超出边界,超出边界则重新定义方向 */ export declare const getNewDirectionLocation: ({ scrollRoot, scrollRootOffset, childrenOffset, arrowDirection, tipOffset, arrowLocation, offsetSpacing, }: { scrollRoot: any; scrollRootOffset: any; childrenOffset: any; arrowDirection: any; tipOffset: any; arrowLocation: any; offsetSpacing: any; }) => { newArrowDirection: any; newArrowLocation: any; }; /** * 根据新的气泡位置和箭头位置 计算气泡位置以及箭头位置 */ export declare const getDirectionLocationStyle: ({ childrenOffset, arrowDirection, tipOffset, arrowLocation, offsetSpacing, }: { childrenOffset: any; arrowDirection: any; tipOffset: any; arrowLocation: any; offsetSpacing: any; }) => Promise<{ styles: { top: number; left: number; transform: string; visibility: string; }; childrenStyle: any; }>; /** * 获取气泡位置和箭头位置 */ export declare const getStylesAndLocation: ({ scrollRoot, childrenRef, tipRef, arrowDirection, arrowLocation, offsetSpacing, }: { scrollRoot?: Element; childrenRef?: React.RefObject; tipRef?: React.RefObject; arrowDirection: string; arrowLocation: string; offsetSpacing?: number; }) => Promise<{ styles: {}; childrenStyle: {}; newArrowDirection: string; newArrowLocation: string; } | { styles: { top: number; left: number; transform: string; visibility: string; }; childrenStyle: any; newArrowDirection: any; newArrowLocation: any; }>; export declare const triggerEventTransform: ({ trigger, click, show, hide }: { trigger: any; click: any; show: any; hide: any; }) => {}; /** * for example: placement = 'topLeft', return { direction: 'top', location: 'left' } * @param placement * @returns */ export declare const parsePlacement: (placement: any) => { direction: any; location: any; };