import { ReactNode } from 'react'; import { type TextAnnotation } from '@recogito/text-annotator'; import { FloatingArrowProps, Placement } from '@floating-ui/react'; import './text-annotation-popup.css'; interface TextAnnotationPopupProps { ariaCloseWarning?: string; arrow?: boolean; arrowProps?: Omit; asPortal?: boolean; autoFocus?: boolean; placement?: Placement; popup(props: TextAnnotationPopupContentProps): ReactNode; onClose?(): void; } export interface TextAnnotationPopupContentProps { annotation: T; selected: { annotation: T; editable?: boolean; }[]; editable?: boolean; event?: PointerEvent | KeyboardEvent; } export declare const TextAnnotationPopup: (props: TextAnnotationPopupProps) => import("react").JSX.Element; /** For backwards compatibility **/ /** @deprecated Use TextAnnotationPopup instead */ export declare const TextAnnotatorPopup: (props: TextAnnotationPopupProps) => import("react").JSX.Element; export {};