import { CSSProperties, Dispatch, ReactNode, Ref, SetStateAction } from 'react'; import { MiddlewareData } from '@floating-ui/react'; export type Offset = [number | null | undefined, number | null | undefined]; export interface RendererPopupProps { attributes: { placement: 'top' | 'bottom' | 'left' | 'right'; popoverPlacement?: 'left' | 'right' | 'top' | 'bottom' | 'left-bottom' | 'right-bottom' | 'center-bottom' | 'right-top' | 'left-top'; setArrowEl: Dispatch>; middlewareData: MiddlewareData; }; styles: CSSProperties; } export type IFloatingRendererPopup = (ref: Ref, props: Props) => ReactNode;