import { AnnotationBehaviors, PdfItemType, PdfRect } from '../../pdf-viewer-api'; /** internal */ export interface PopupViewProps { maxPopupWidth: number; maxPopupHeight: number; minPopupWidth: number; minPopupHeight: number; currentUser: string; hideSubject: boolean; allowLockAnnotations: boolean; allowEditLockedAnnotations: boolean; onSelect: (id: number) => void; onClose: () => void; onDelete: (id: number) => void; onUpdatePosition: (id: number, top: number, left: number) => void; onUpdateSize: (id: number, width: number, height: number) => void; onUpdateColor: (id: number, color: string) => void; onLock: (id: number) => void; } /** internal */ export interface Popup { id: number; colorPalette: string[]; content: string; subject: string | null; color: string | null; isLocked: boolean; selected: boolean; itemType: PdfItemType; positionCalculated: boolean; modificationDate: Date | null; author: string; pdfRect: PdfRect; cssWidth: number; cssHeight: number; behaviors: AnnotationBehaviors; isReadOnly: () => boolean; } interface PopupViewState { selectedPopup: number | null; openPopups: Popup[]; maxPopupWidth: number; maxPopupHeight: number; minPopupWidth: number; minPopupHeight: number; currentUser: string; activeContent: string | null; activeSubject: string | null; clearFocus: boolean; stateChanged: boolean; hideSubject: boolean; } export interface PopupViewActions { getState(): PopupViewState; updateOpenPopups(openPopups: Popup[]): PopupViewState; setPositionCalculated(id: number): PopupViewState; selectPopup(id: number): PopupViewState; setFocus(id: number): PopupViewState; deselectPopup(): PopupViewState; updateSubjectAndContent(id: number): PopupViewState; stateChanged(hasChanged: boolean): PopupViewState; } export declare const createPopupView: (props: PopupViewProps, element: HTMLElement) => PopupViewActions; export {};