UNPKG

@i-novus/ui-core

Version:

Базовые UI компоненты

18 lines (17 loc) 980 B
import { useEffect } from 'react'; import type { ComputeTooltipPositions } from './types'; export declare const getScrollParent: (node: Element | null) => Element | null; export declare const useIsomorphicLayoutEffect: typeof useEffect; export declare const debounce: (func: (...args: any[]) => void, wait?: number, immediate?: boolean) => (this: (...args: any[]) => void, ...args: any[]) => void; export declare const computeTooltipPosition: ({ elementReference, tooltipReference, tooltipArrowReference, place, offset: offsetValue, strategy, middlewares, border, }: ComputeTooltipPositions) => Promise<{ tooltipStyles: { left: string; top: string; }; tooltipArrowStyles: {}; place: import("@floating-ui/utils").Placement; } | { tooltipStyles: {}; tooltipArrowStyles: {}; place: "left" | "right" | "top" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left-start" | "left-end"; }>;